Headroom open-sources a local-first way to cut agent token use by up to 95%
eyishazyer · x · 2026-07-23
Headroom compresses agent context to cut token use by 60–95%
An ex-Netflix engineer has open-sourced Headroom under Apache 2.0, a local-first repository that compresses everything an agent reads before sending it to the model.
- It targets tool outputs, long logs, RAG chunks, files, code, and conversation history.
- The author claims it can reduce JSON token usage by 60–95% and coding-agent tokens by about 15–20%.
- It keeps original files on your machine and lets the agent fetch them again when needed.
- It can plug into Claude Code, Codex, Cursor, Aider, and Copilot via a library, proxy, or MCP server.
- Reported benchmarks say accuracy was preserved on tasks like GSM8K and TruthfulQA.
More from coding & agent
- Atomic Agent targets local open-model use with 1,000+ skills and MCP servers — eyishazyer · 2026-07-23
- video-use edits raw footage into final.mp4 by reading transcripts, not frames — alex_verem · 2026-07-23
- Citrolabs opens ego-lite, a browser for humans and AI agents to work in parallel — citrolabs · 2026-07-23
- Alibaba open-sources open-code-review, a hybrid LLM agent for line-level code review — alibaba · 2026-07-23
- Codex feels cleaner on a blank project than inside a messy legacy codebase — Individual-Carob5593 · 2026-07-23
- LoHoSearch turns a 7.62M-entity knowledge graph into a harder benchmark for search agents — 美团技术团队 · 2026-07-23