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

xh

$ xh Community Med Risk
ducaale (OSS) · Browser & Web · MIT · macos / linux / windows

xh mirrors HTTPie's ergonomic key=value and key:=json syntax in a static Rust binary. Agents get instant startup, --offline previews, --curl command translation, and clean non-TTY stdout formatting.

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

xh combines HTTPie ergonomics with curl-class startup speed, making it ideal for tight agent API test loops without MCP overhead.

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

Combines --offline, --curl, --check-status, --pretty=none, and automatic non-TTY plain JSON output with sub-10ms Rust startup.

  • Supports --offline, --curl, --check-status, and --pretty=none
Trust & Safety 22 / 25

Built-in --offline and --curl dry-run modes let agents verify payloads safely before sending writes.

  • --offline and --curl preview requests without network side effects
Setup & Portability 14 / 15

Single static Rust binary available via brew, cargo, and GitHub releases across macOS, Linux, and Windows.

  • Zero-dependency static binary across all major OSes
Utility & Efficiency 15 / 15

Eliminates both curl quoting friction and HTTPie Python startup overhead.

  • HTTPie-compatible JSON request DSL at native compiled speed
Maintenance & Lineage 9 / 10

Well-maintained OSS project (ducaale/xh) under MIT license.

  • Active ducaale/xh GitHub repository
Docs & Verifiability 9 / 10

Clean --help, README flag tables, and HTTPie parity.

  • Clear README and --help output

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Supports optional --session JSON files and --netrc; otherwise holds credentials only in process memory.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Free, MIT open-source single Rust binary.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# xh Agent Rules
- Always pass `--check-status` and `--timeout=15` on automated API calls.
- Use `--offline` or `--curl` first when constructing non-trivial `POST`/`PATCH`/`DELETE` requests.

Agent-Ready Command Recipes

Safe Read-Only Queries

Fetch JSON cleanly with status checking
xh --check-status --pretty=none GET https://api.github.com/zen

Disables colors/formatting for piping and exits non-zero on 4xx/5xx responses.

Translate a request into an equivalent curl command
xh --curl POST https://httpbin.org/post name=agent count:=2

Prints a portable curl command offline without executing the network request.

Controlled Writes & Previews

Post structured JSON with timeout protection
xh --check-status --timeout=15 POST https://httpbin.org/post ok:=true env=staging

Sends a typed JSON payload with a 15-second timeout and strict HTTP status checking.

Strengths for Agents

  • + Millisecond Rust startup with HTTPie's ergonomic JSON request syntax.
  • + Includes both --offline and --curl modes for safe verification and shell portability.
  • + Cleanly suppresses ANSI formatting when piped to jq or captured by agents.

Caveats & Pitfalls

  • ! HTTP 4xx/5xx responses still exit 0 unless --check-status is supplied.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI