fq CLI

The CLI decodes binary formats with jq-style queries so an agent can inspect file structure and extract selected fields.

  • 10,626 ★ on the repository
  • Last commit
CLI

Minimal access

Why this level

  • The CLI reads selected local files; extracted fields may contain sensitive information later shown to the agent.
All reasons and checks

wader/fq

Install

Manual install

brew install wader/tap/fq

First package-manager Install method for macOS. The preceding text also offers official binary downloads.

Access and checks

How we review

Minimal accessThe tool runs nothing and makes no network calls.

  • The CLI reads selected local files; extracted fields may contain sensitive information later shown to the agent.

This is third-party code. Review the repository files before installing.

What it does

fq makes binary files queryable from the terminal. Users open a file, inspect decoded structure and select fields with jq-like expressions. Nested formats and byte ranges can be explored inside complex containers. An agent can diagnose authorized files, retrieve metadata and explain structural fields. Batch execution and an interactive autocomplete environment accompany the structural hex view.

Who it is for. File-format analysts investigating binary data without writing a dedicated decoder for each query.

Good fit when

  • A media container needs metadata and technical-field inspection.
  • An agent compares two authorized binary structures.
  • A nested format needs a specific section extracted.
  • Repeated analysis needs a saved query expression.

Not a fit when

  • The task requires automatic program-logic decompilation.
  • The format has no available decoder.
  • Extracted secrets must not reach a model or report.

Example request

Inspect this file copy with fq and show only technical metadata, excluding embedded content.

Limitations

Decoding depends on format support; inspect the decoder list before analysis. Expressions follow jq, so complex queries require understanding its rules and the fq manual. Output can reveal private metadata or fields; select only necessary values before sending them to an agent. Slicing and transformations need boundary and result checks: keep originals and do not replace them with extracted fragments without verification.

How to disable. Exit fq and remove it from analysis scripts. Originals remain unless output was separately redirected over them.

FAQ

How do I inspect decoded data?

Run `fq . file`, replacing `file` with the path to the file you want to inspect.

Can I view bytes alongside structure?

Yes. fq includes a structural hex viewer.

Where is the local manual?

Use `man fq`.

Are nested containers supported?

Yes, depending on the available decoders for those formats.

Do I need to know jq?

Not for basic inspection, but its expression language helps with complex queries.

Discussion

No questions or reviews yet.

CLI tools

The Go CLI reads and edits YAML, JSON and related formats for targeted agent-assisted configuration transformations.

CLIExtended access16.2KRepository stars

jnv is an interactive JSON viewer that copies a reviewed filter or its result so a manually checked query can move into a script.

CLIExtended access6.1KRepository stars

The interactive viewer explores JSON with field suggestions so users can verify an agent’s expression and returned data.

CLIExtended access7.2KRepository stars

The CLI selects and changes JSON, YAML and other structured values so agents can transform data with one query language.

CLIExtended access8.1KRepository stars

The CLI imports CSV and JSON into SQLite, runs SQL and reshapes tables for agent-assisted local data preparation.

CLIExtended access2.2KRepository stars

The CLI runs SQL over CSV, JSON and other tabular files so agents can join exports and select output formats.

CLIExtended access2.2KRepository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
fq (this card)no10,626
Binary Ninja MCPnonot required456exposes executable-code decompilation and analysis inside Binary Ninja
yqno16,229The Go CLI reads and edits YAML, JSON and related formats for targeted agent-assisted configuration transformations.

README in short

Decoders cover images, audio, archives and network data, with bit-level decoding and data concatenation.

README badge

Report a problem

Foxx AIfq
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.