| What it is | Compresses tool outputs, logs, files and RAG chunks before they reach the LLM | Cuts the command output AI coding agents read | Skill and local proxy that make coding agents answer shorter and read smaller tool output | Local code knowledge graph that gives AI coding tools precise review context over MCP |
| Features | - compress() library for Python and TypeScript
- local proxy with zero code changes
- headroom wrap for Claude Code, Codex, Cursor, Aider, OpenCode, Cline and more
- MCP server with compress, retrieve and stats tools
- reversible compression: originals cached locally and retrieved on demand
- cross-agent memory shared by Claude, Codex, Gemini and Grok
- headroom learn writes corrections from failed sessions to CLAUDE.md or AGENTS.md
- output token reduction
| - compresses output of 100+ commands (git, tests, builds, logs, diffs) by up to 90%
- under 25 ms per command, single binary with no dependencies
- rtk init hooks for Claude Code, GitHub Copilot, Cursor, Gemini CLI, Codex, Mistral Vibe, Factory Droid and more (18 tools)
- rtk gain savings dashboard with graphs, history and JSON export
- rtk discover to find missed savings
- shareable pipelines: route heavy reads to cheaper models, clean API traffic without breaking prompt caching
- RTK Pro gateway with cost tracking, secret and personal data detection, policies and audit
| - short answer style with code, commands and errors kept verbatim (/caveman, /ultracave, /megacave)
- local proxy that compresses logs, JSON, CSV, YAML and test output, with originals recoverable
- Auto model and effort routing (free account)
- Blocks code mode, waste fixes and compressed browsing
- one-command setup for Claude Code, Codex, Gemini CLI, OpenCode and 30+ agents
| - Tree-sitter graph of functions, classes, imports, calls and tests
- blast radius and risk score for a change
- incremental updates via hooks and watch mode
- MCP server and CLI
- local SQLite, no cloud service
- GitHub Action
|
| Limitations | - An anonymous telemetry beacon is on by default (compression ratios, counters, provider and model IDs, OS); it can be turned off with HEADROOM_TELEMETRY=off or DO_NOT_TRACK=1.
- Saves little on short conversational prompts and prose.
- The headroom CLI and proxy ship only in the PyPI package; the npm package is the TypeScript SDK alone.
| - Another, unrelated project named rtk exists on crates.io.
| - Its rules add about 1,160 input tokens, and with per-request pricing (GitHub Copilot) shorter answers save nothing.
- HTML tool output has no compressor yet.
| |