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

jp (JMESPath)

$ jp Official Low Risk
JMESPath · Database & Data · Apache-2.0 · macos / linux / windows

Official command-line implementation (jp) of the JMESPath query specification. Evaluates expressions against JSON files (-f) or stdin and prints JSON or unquoted strings (-u) with zero external dependencies.

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

Runs JMESPath projections locally in milliseconds (jp -u)—ideal for filtering large JSON payloads before they enter agent 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

Outputs valid JSON by default, supports -u / --unquoted for scalar extraction, reads -f or stdin non-interactively, and returns clean exit codes.

  • Native JSON stdout and -u raw string mode
  • Supports -f <filename> and JP_UNQUOTED env var
Trust & Safety 25 / 25

Strictly read-only stream filter with no file-mutation flags, network calls, or shell execution primitives.

  • Pure read-only JMESPath expression evaluator
Setup & Portability 15 / 15

Single static Go binary available via Homebrew, go install, and GitHub Releases across macOS, Linux, and Windows.

  • Distributed via brew install jp and static binaries
Utility & Efficiency 12 / 15

Standardized JMESPath syntax matches AWS CLI (--query) and Ansible filters, though less expressive than jq for arbitrary transforms.

  • Implements full JMESPath specification
Maintenance & Lineage 7 / 10

Official JMESPath organization repo under Apache-2.0; feature-complete spec means infrequent releases.

  • Official jmespath/jp repository
Docs & Verifiability 8 / 10

Well-documented JMESPath grammar and interactive tutorial at jmespath.org, plus concise --help.

  • Official spec and tutorial at jmespath.org

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; operates purely on local JSON files and stdin/stdout streams.

Side Effects
Read-Only
Cost & Quotas

Apache-2.0 open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# jp (JMESPath) Agent Rules
- Prefer `jp -f <file> '<expr>'` or stdin piping to project only needed fields.
- Pass `-u` (`--unquoted`) when extracting scalar strings for shell variables.

Agent-Ready Command Recipes

Safe Read-Only Queries

Project nested fields from stdin
jp -u 'items[*].name' < data.json

Extracts matching field values as unquoted text or JSON without loading the full document.

Filter JSON array elements from file
jp -f data.json "items[?status=='active'].{id: id, name: name}"

Reads data.json directly via -f and projects only active items into compact JSON objects.

Strengths for Agents

  • + 100% read-only JSON projection with zero side effects.
  • + Identical query language to aws --query, simplifying cross-tool agent prompts.
  • + -u (--unquoted) avoids extra quote-stripping in shell pipelines.

Caveats & Pitfalls

  • ! Cannot perform multi-step mutations or stream NDJSON as flexibly as jq.
  • ! Upstream jmespath/jp receives minimal maintenance updates.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI