jaq
$ jaq Community Low Riskjaq is a fast, memory-safe Rust implementation of the jq filter language with minimal dependencies and strict semantics. Supports standard -r, -c, -e, -M flags alongside newer multi-format input/output flags (like --from yaml) to shrink large data payloads cleanly.
brew install jaq jaq filters massive JSON payloads in shell pipelines significantly faster than C jq before data reaches LLM context.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
JSON-native with -c, -r, -e, -M flags and auto-disabled ANSI colors on non-TTY pipes, plus deterministic exit codes.
- Supports
-c,-r,-e,-M, and non-TTY monochrome output
Pure memory-safe Rust stream/file filter with zero network calls, zero credential access, and zero file writes.
- Read-only memory-safe Rust filter
Tiny single binary via brew install jaq, cargo install jaq, and GitHub releases across macOS, Linux, and Windows.
- Static binary via Homebrew and Cargo
Noticeably faster than C jq on multi-megabyte JSON payloads while cutting agent token consumption drastically.
- High-throughput Rust JSON filtering for shell pipelines
Actively maintained by Michael Färber (01mf02/jaq) under MIT license.
- Active
01mf02/jaqrepository under MIT license
Clear README and jaq --help documenting filter semantics and differences from C jq.
- Clear CLI reference and
jqcomparison in README
Security, Auth & Guardrails
None required; pure offline filter over stdin or local files.
MIT open-source Rust CLI; 100% free and offline.
# jaq Agent Rules - Pipe large JSON files or API outputs through `jaq -c` to strip unused fields before reading. - Verify `jaq` version if using `--from`/`--to` format flags (added in newer releases) vs pure JSON.
Agent-Ready Command Recipes
Safe Read-Only Queries
jaq -c '[.data[] | {id, name}]' payload.json Projects only id and name as single-line compact JSON (-c) to save context tokens.
jaq -r -e '.token' response.json
Prints raw unquoted text (-r) and exits non-zero (-e) if .token is null or false.
Strengths for Agents
- + Significantly faster execution and lower memory overhead than C
jqon large JSON files. - + Memory-safe Rust binary with instant startup and deterministic
-c/-r/-esemantics. - + Preserves
jqfilter familiarity while fixing several subtlejqcorner cases.
Caveats & Pitfalls
- ! Some less-common
jqstdlib builtins or module flags (--argjsonvs newer versions) differ slightly from upstreamjq. - ! Less ubiquitously pre-installed on stock CI images than C
jq.