hexyl
$ hexyl Community Low Riskhexyl renders binary files and stdin streams as an aligned hex and ASCII table, coloring NULL, printable ASCII, whitespace, and non-ASCII bytes. With -n (--length), -s (--skip), and --color never, agents can inspect binary headers cleanly without overflowing context.
brew install hexyl Binary header and byte-slice inspection belongs in local hexyl -n <bytes> commands with zero MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Runs non-interactively with -n byte limits, -s offsets, and --color never, though output is an ASCII box table with no --json mode.
- Supports
--color never,-n/--length, and-s/--skip - Unicode box-drawing table output only (no JSON)
Strictly read-only binary viewer with zero write or network capabilities.
- Pure read-only inspection
Single static Rust binary available via Homebrew, apt, dnf, Scoop, cargo, and GitHub releases across macOS, Linux, and Windows.
- Cross-platform binary from
sharkdp
Fast, bounded byte-slice inspection (-n, -s, negative offsets) superior to unbounded hexdump/xxd defaults.
- Human-friendly offset/ASCII layout with SI/IEC byte suffixes
Maintained by sharkdp (author of bat, fd, hyperfine) under MIT/Apache-2.0.
- Reputable
sharkdpRust ecosystem project
Clear README and --help output documenting byte units, --border, and --color.
- Self-contained README and man page
Security, Auth & Guardrails
None required; reads local files or stdin read-only.
100% free, offline, and open-source (MIT / Apache-2.0).
# hexyl Agent Rules - ALWAYS pass `-n <bytes>` (e.g., `-n 256`) when inspecting unknown binaries so large files do not flood stdout. - Pass `--color never` when capturing `hexyl` output for LLM reasoning.
Agent-Ready Command Recipes
Safe Read-Only Queries
hexyl -n 128 --color never ./firmware.bin
Reads only the first 128 bytes via -n and disables ANSI escapes with --color never for clean agent parsing.
hexyl -s 0x100 -n 64 --color never ./archive.dat
Skips to hex offset 0x100 (-s) and prints 64 bytes read-only.
Strengths for Agents
- + Strictly read-only with bounded
-nlength and-soffset flags. - +
--color neverproduces clean plain-text hex/ASCII dumps across all OSes.
Caveats & Pitfalls
- ! No
--jsonoutput; emits Unicode box-drawing borders unless--border=noneis specified. - ! Dumping large binaries without
-nquickly exhausts context windows.