← all repositories
mvanhorn/cli-printing-press

Reverse-Engineer a Site, Print a Go CLI for Agents

It researches APIs, reverse-engineers undocumented endpoints from browser traffic, and prints domain-aware Go CLIs with local SQLite stores so AI agents spend fewer tokens.

4.2k stars Go Coding AssistantsAgents
cli-printing-press
Velocity · 7d
+46
★ / day
Trend
accelerating
star history

What it does

CLI Printing Press is a Go-based generator that builds custom CLIs and MCP servers for any API—or any website. It reads official docs, audits existing community tools, and can capture browser traffic to reverse-engineer endpoints that lack published specs. The output is a local-first Go binary paired with a Claude Code skill, built around the idea that a good CLI should be muscle memory for an agent, not a documentation scavenger hunt.

The interesting bit

The project treats every API as having a “secret identity”—a non-obvious use case hidden in the data—and bakes that insight into the generated tool. Instead of thin wrappers around REST endpoints, it produces SQLite-backed binaries with compound commands like stale or bottleneck that join across resources offline, plus agent-native ergonomics like auto-JSON output, typed exit codes, and a --compact mode to shave tokens.

Key highlights

  • Sniffs undocumented APIs by capturing live browser traffic—no OpenAPI spec required.
  • Generates both a Cobra CLI (<api>-pp-cli) and an MCP server (<api>-pp-mcp) from the same spec.
  • Local SQLite store with FTS5 search and incremental sync; compound SQL queries run offline in milliseconds.
  • Four mechanical verification checks (scorecard, dogfood, proof-of-behavior, live smoke test) attempt to catch hallucinated paths before shipping.
  • --compact output and typed exit codes (0/2/3/4/5/7) designed specifically for agent consumption.

Caveats

  • The curated workflow is tightly coupled to Claude Code; the skills are the primary interface and are only tested there, though a Codex offload mode exists.
  • You need both the generator binary and the Claude Code skills installed together; either half alone is intentionally incomplete.
  • The “Codex mode” that cuts Opus token use by 60% falls back to local generation if Codex fails three consecutive times.

Verdict

Worth a look if you want AI agents to interact with internal or undocumented APIs without hand-rolling SDKs. Skip it if you don’t use Claude Code or need a simple, human-first wrapper rather than an agent-optimized, SQLite-heavy toolchain.

Frequently asked

What is mvanhorn/cli-printing-press?
It researches APIs, reverse-engineers undocumented endpoints from browser traffic, and prints domain-aware Go CLIs with local SQLite stores so AI agents spend fewer tokens.
Is cli-printing-press open source?
Yes — mvanhorn/cli-printing-press is open source, released under the MIT license.
What language is cli-printing-press written in?
mvanhorn/cli-printing-press is primarily written in Go.
How popular is cli-printing-press?
mvanhorn/cli-printing-press has 4.2k stars on GitHub and is currently accelerating.
Where can I find cli-printing-press?
mvanhorn/cli-printing-press is on GitHub at https://github.com/mvanhorn/cli-printing-press.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.