Compress tool output and logs before they reach the LLM
Compresses tool output, logs, files, and RAG chunks before they reach the LLM. Compression runs locally; the README states that no prompt or file content is sent out to be compressed.
- README example: 10,144 tokens down to 1,260 tokens, with the same
FATALfinding preserved. - Four ways to use it: a Python or TypeScript library, a proxy, an agent wrapper (
headroom wrap claude), and an MCP server. - README claims: 20% fewer tokens for coding agents, 60-95% fewer for JSON.
try
headroom wrap claude