Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

jaq

$ jaq Community Low Risk
Michael Färber · Database & Data · MIT · macos / linux / windows

jaq 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.

FCRS-1.0 Score
93 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install jaq
CLI vs MCP Decision CLI Only

jaq filters massive JSON payloads in shell pipelines significantly faster than C jq before data reaches LLM context.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

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
Trust & Safety 25 / 25

Pure memory-safe Rust stream/file filter with zero network calls, zero credential access, and zero file writes.

  • Read-only memory-safe Rust filter
Setup & Portability 14 / 15

Tiny single binary via brew install jaq, cargo install jaq, and GitHub releases across macOS, Linux, and Windows.

  • Static binary via Homebrew and Cargo
Utility & Efficiency 15 / 15

Noticeably faster than C jq on multi-megabyte JSON payloads while cutting agent token consumption drastically.

  • High-throughput Rust JSON filtering for shell pipelines
Maintenance & Lineage 8 / 10

Actively maintained by Michael Färber (01mf02/jaq) under MIT license.

  • Active 01mf02/jaq repository under MIT license
Docs & Verifiability 8 / 10

Clear README and jaq --help documenting filter semantics and differences from C jq.

  • Clear CLI reference and jq comparison in README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; pure offline filter over stdin or local files.

Side Effects
Read-Only
Cost & Quotas

MIT open-source Rust CLI; 100% free and offline.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Compactly project large JSON arrays
jaq -c '[.data[] | {id, name}]' payload.json

Projects only id and name as single-line compact JSON (-c) to save context tokens.

Extract raw string fields and fail on null
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 jq on large JSON files.
  • + Memory-safe Rust binary with instant startup and deterministic -c / -r / -e semantics.
  • + Preserves jq filter familiarity while fixing several subtle jq corner cases.

Caveats & Pitfalls

  • ! Some less-common jq stdlib builtins or module flags (--argjson vs newer versions) differ slightly from upstream jq.
  • ! Less ubiquitously pre-installed on stock CI images than C jq.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI