Pandoc
$ pandoc Community Low RiskPandoc (pandoc) is the Swiss-army knife of markup conversion, translating between dozens of document formats including Markdown, CommonMark, HTML, LaTeX, Word .docx, EPUB, and Pandoc's structured JSON AST (-t json). Pure local execution and deterministic stdin/stdout pipelines make it ideal for coding agents.
brew install pandoc Pandoc converts local files directly via zero-latency stdin/stdout pipes and AST JSON (-t json), with no need for an MCP bridge.
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
Pure non-interactive Unix filter supporting stdin/stdout, -t json AST export, and deterministic exit codes.
-t jsonoutputs full document AST for programmatic inspection- Never prompts interactively on stdin/stdout
Offline local processor with --sandbox mode to restrict file I/O when handling untrusted documents.
- Built-in
--sandboxflag blocks external file/URL inclusion - Zero network or credential surface by default
Prebuilt static Haskell binaries via Homebrew, apt, winget, Chocolatey, and GitHub releases across all major OSes.
brew install pandocand standalone installers
Unmatched breadth across 40+ document formats, Lua filters, citations, and --pdf-engine backends.
- Converts Markdown, DOCX, HTML, LaTeX, Typst, EPUB, and JSON AST
Decades-long gold standard (jgm/pandoc) with steady releases and huge ecosystem adoption.
- Actively maintained on GitHub under GPL-2.0-or-later
Exhaustive official User's Guide (MANUAL.html) and --list-* introspection flags.
- Official manual at pandoc.org/MANUAL.html
Security, Auth & Guardrails
No credentials required; operates purely on local files and stdin/stdout streams.
Free open-source software (GPL-2.0-or-later); PDF export may optionally use TeX Live or Typst.
# Pandoc Agent Rules - Always write converted artifacts to a separate output path via `-o` rather than overwriting source documents. - For PDF output, check whether `typst`, `weasyprint`, or LaTeX (`--pdf-engine`) is installed before invoking. - Use `--sandbox` when processing untrusted external Markdown/HTML inputs.
Agent-Ready Command Recipes
Safe Read-Only Queries
pandoc README.md -t json
Parses a Markdown document into Pandoc's structured JSON AST on stdout without writing files.
pandoc --list-output-formats
Enumerates all compiled target document formats locally.
Controlled Writes & Previews
pandoc report.md -o dist/report.docx
Generates a formatted Word .docx file at dist/report.docx from Markdown.
Strengths for Agents
- + Zero-prompt Unix filter design with
-t jsonAST output and--sandboxsafety mode. - + Unmatched format coverage (Markdown, DOCX, HTML, LaTeX, EPUB, Typst).
- + Cross-platform standalone binary with rich
--list-input-formats/--list-output-formatsintrospection.
Caveats & Pitfalls
- ! PDF generation requires an external
--pdf-enginesuch asxelatex,typst, orweasyprint. - ! GPL-2.0-or-later license applies if embedding Haskell internals directly.