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

Zstandard (zstd)

$ zstd Official Low Risk
Meta / Yann Collet (OSS) · Files & Search · BSD-3-Clause · macos / linux / windows

zstd delivers high-speed, high-ratio Zstandard compression and decompression. Agents can safely inspect archive headers with -lv, verify checksums with -t, and stream uncompressed bytes with -dc without touching disk.

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

Binary compression and streaming decompression run directly on local files/pipes; MCP adds zero value.

Agent-Readiness Checklist

Local Probe Evidence
— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md
Version
—
Startup
1 ms
Exit Codes (help / invalid)
— / —
NO_COLOR Clean / Non-TTY Safe
Yes / Safe

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Clean POSIX flags (-l, -t, -d, -c, -q) and deterministic exit codes, though no --json metadata mode.

  • Non-interactive stdio streaming (-dc) and quiet -q mode
Trust & Safety 24 / 25

Keeps input files intact by default unless --rm is passed; -l and -t are strictly read-only.

  • Preserves source files by default; checksum verification via -t
Setup & Portability 15 / 15

Available everywhere (brew, apt, apk, winget) and widely preinstalled on modern Linux.

  • Standard system package across macOS, Linux, and Windows
Utility & Efficiency 14 / 15

Industry-leading speed/ratio trade-off for logs, build artifacts, and tarballs.

  • Multi-threaded compression (-T0) and fast streaming decompression
Maintenance & Lineage 10 / 10

Official Meta OSS reference implementation of IETF RFC 8878.

  • Official facebook/zstd upstream repository
Docs & Verifiability 8 / 10

Thorough man page and zstd --help covering compression levels and frame flags.

  • Built-in man page and official manual

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates purely on local files or stdio.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

100% free, offline, and open-source (BSD-3-Clause).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# zstd Agent Rules
- Use `-l` and `-t` for read-only inspection; pass `-k` (`--keep`) and never `--rm` when compressing.
- Pass `-q` to suppress progress bars in headless shells, and verify `-f` is only used when overwriting intentionally.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect .zst frame metadata without decompressing
zstd -lv bundle.tar.zst

Prints compressed size, uncompressed size, ratio, and checksum presence.

Verify archive integrity read-only
zstd -t bundle.tar.zst

Validates frame checksums without writing decompressed output to disk.

Controlled Writes & Previews

Compress a file while preserving the original (-k)
zstd -k -q artifact.tar -o artifact.tar.zst

Creates .zst output cleanly while -k (--keep) guarantees the source file is not deleted.

Strengths for Agents

  • + Preserves original files by default (unlike gzip), and supports read-only -l/-t checks.
  • + Ubiquitous, ultra-fast streaming compression standard.

Caveats & Pitfalls

  • ! Outputs progress indicators on stderr unless -q is passed.
  • ! Decompressing without -f may prompt if target exists unless non-TTY.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI