The Token Problem
Every AI agent has a hidden tax. Tool outputs logs RAG chunks files conversation history all consume tokens. Headroom a new open-source project currently #1 on GitHub Trending with 3500 stars today solves this.
How It Works
Headroom compresses everything your AI agent reads before it reaches the LLM. Tool outputs logs RAG chunks files conversation history. Same answers fraction of the tokens.
Live example from their README. 10144 tokens compressed to 1260 tokens and the same answer was found.
Four Ways to Use It
Library - compress in Python or TypeScript inline in any app
Proxy - headroom proxy port 8787 zero code changes
Agent Wrap - headroom wrap claude codex cursor aider copilot
MCP Server - for any MCP client
What Makes It Special
Reversible Compression CCR. Originals never deleted LLM retrieves on demand. Cross-Agent Memory shared store across Claude Codex Gemini with auto-dedup.…