mdcat
$ mdcat Community Low Riskmdcat renders CommonMark Markdown to ANSI terminal output with syntax-highlighted code blocks, clickable links, and inline images in supported terminal emulators. Designed primarily for human terminal viewing rather than machine parsing; pass --no-pager to guarantee direct stdout output without spawning a pager.
brew install mdcat Strictly a local terminal pretty-printer; agents should read raw .md files directly rather than rendering ANSI output through mdcat.
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
Built for human ANSI terminal formatting rather than agent consumption; --no-pager and --no-colour prevent hangs and escape noise, but there is no JSON output and -p opens an interactive pager.
- Human-facing ANSI/image renderer with no
--jsonmode --no-pagerdisables interactive pager blocking
Strictly read-only terminal viewer with zero filesystem writes or credentials.
- Read-only file inspection
Single Rust binary installable via Homebrew, Cargo, and GitHub releases across macOS, Linux, and Windows.
brew install mdcatandcargo install mdcat
Helpful when presenting formatted Markdown to humans in a terminal, though redundant for coding agents that already parse raw Markdown.
- Primarily serves human terminal readability
Community-maintained Rust tool (swsnr/mdcat) under MPL-2.0.
- Open-source
swsnr/mdcatrepository
Clear README and man page documenting terminal capabilities and --no-pager / -p flags.
- Documented in GitHub README
Security, Auth & Guardrails
None required; read-only local Markdown renderer.
100% free, offline, and MPL-2.0 open-source.
# mdcat Agent Rules - Prefer reading raw `.md` files directly instead of invoking `mdcat` inside an LLM loop. - If invoking `mdcat` for a user terminal preview, pass `--no-pager` (and avoid `-p`) so it never blocks in `less`.
Agent-Ready Command Recipes
Safe Read-Only Queries
mdcat --no-pager --no-colour README.md
Prints rendered Markdown directly to stdout without ANSI colors or an interactive pager.
Strengths for Agents
- + Strictly read-only with zero risk of modifying Markdown files.
- + Fast single Rust binary with
--no-pagerand--no-colourescape hatches.
Caveats & Pitfalls
- ! Passing
-p(--paginate) or invoking asmdlessspawns an interactive pager that blocks non-TTY agents. - ! Output is ANSI-styled text for human terminals, adding noise if consumed by an LLM.