Zstandard (zstd)
$ zstd Official Low Riskzstd 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.
brew install zstd Binary compression and streaming decompression run directly on local files/pipes; MCP adds zero value.
Agent-Readiness Checklist
Local Probe EvidenceFCRS-1.0 6-Dimension Breakdown
Clean POSIX flags (-l, -t, -d, -c, -q) and deterministic exit codes, though no --json metadata mode.
- Non-interactive stdio streaming (
-dc) and quiet-qmode
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
Available everywhere (brew, apt, apk, winget) and widely preinstalled on modern Linux.
- Standard system package across macOS, Linux, and Windows
Industry-leading speed/ratio trade-off for logs, build artifacts, and tarballs.
- Multi-threaded compression (
-T0) and fast streaming decompression
Official Meta OSS reference implementation of IETF RFC 8878.
- Official
facebook/zstdupstream repository
Thorough man page and zstd --help covering compression levels and frame flags.
- Built-in man page and official manual
Security, Auth & Guardrails
None required; operates purely on local files or stdio.
100% free, offline, and open-source (BSD-3-Clause).
# 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
.zst frame metadata without decompressing zstd -lv bundle.tar.zst
Prints compressed size, uncompressed size, ratio, and checksum presence.
zstd -t bundle.tar.zst
Validates frame checksums without writing decompressed output to disk.
Controlled Writes & Previews
-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/-tchecks. - + Ubiquitous, ultra-fast streaming compression standard.
Caveats & Pitfalls
- ! Outputs progress indicators on stderr unless
-qis passed. - ! Decompressing without
-fmay prompt if target exists unless non-TTY.