Headroom, on the stand
SummaryThe open-source context compressor for coding agents cut our test log by 83% and a JSON response by 66%, and kept the error we planted. It left our code file alone, and one of its own labels miscounted.
· MODEL Editors · 3 min read
Some links may be affiliate links. Disclosure

Headroom sits between a coding agent and the model and shrinks what the agent is about to send: tool output, logs, JSON, files and search results. The project is published by Headroom Labs under the Apache 2.0 license. It ships as a Python package with a headroom command, a TypeScript library, a proxy, a headroom wrap command for agents such as Claude Code and Codex, and an MCP server. The README says compression runs on your machine and that originals are cached locally so the model can ask for them back.
The top contributor by commits is Tejas Chopra, whose GitHub profile lists Netflix as his employer. The project is published by Headroom Labs, not by Netflix.
The README makes its own claims: 21% to 57% fewer tokens across four agent scenarios, over 90% on repeated JSON arrays and log lines, and accuracy tables on GSM8K and TruthfulQA that it says show no detectable difference. Those are the maker's numbers. We did not repeat them.
Two things to know before you install. An anonymous usage beacon is on by default. The README says it never sends prompts, code or file paths, and HEADROOM_BEACON=off or DO_NOT_TRACK=1 turns it off. There is also a paid Enterprise plan for teams; the open-source version is free.
The test. MODEL installed headroom-ai 0.41.0 from PyPI into a fresh Python 3.13 environment on Linux. It took 19 seconds. We switched the beacon off, called no model and used no API key. We ran the library's compress() function on three tool results and counted tokens with OpenAI's tiktoken.
A 240-line service log with one real error, pulled by a shell tool: 10,145 tokens down to 1,759, 83% fewer. Headroom kept 41 lines, including the error line exactly as written. In the same Python process we got the full original back from its local store, byte for byte.
A 300-order JSON API response with one failed payment: 37,700 tokens down to 12,836, 66% fewer. Nothing was dropped. Headroom rewrote the list as one header plus one compact row per order, and the failed order kept its ID, amount and decline reason.
A 2,019-line Python file (httpx's client): no change. The docs say code passes through unless you turn code compression on, and anything read through a read_file or Read tool is skipped so the agent can edit exact bytes. That log, read through a read_file tool, also came back untouched. When we called the code compressor directly, the file dropped 23%, from 13,702 to 10,539 tokens. It was still valid Python, with all 88 function and class lines kept.
The catch. The note Headroom appends to a trimmed log said "200 lines omitted: 1 ERROR, 14 WARN, 166 INFO." It had kept the only error, it dropped 9 warnings, not 14, and it dropped 199 lines in all. The counts look like totals for the whole file. An agent could read that note and go looking for an error that was never hidden.
What we did not test. We did not run headroom wrap or the proxy with a real agent and a real model, so we cannot tell you whether answers stay the same. We did not test the Kompress text model, image compression, memory, headroom learn or the MCP server.
The verdict. Try it if your agent spends its context on long logs and big JSON responses. That is where it saved us the most. Expect little on source files, and switch the beacon off if you want nothing to leave the machine.
Get three tested tools every Friday
Free, weekly. Unsubscribe anytime.
Sources
- Headroom repository and README
Headroom Labs (GitHub)
- Release v0.41.0
Headroom Labs (GitHub)
- headroom-ai on PyPI
Python Package Index
- Headroom documentation
Headroom Labs
- Tejas Chopra (chopratejas) GitHub profile
GitHub
Related tools
- Headroom
A local library and proxy that shrinks logs and JSON tool output before a coding agent sends them to the model.
Tested by MODEL
Keep reading

Builder tip
Agent memory tip: keep the raw log, and quote your searches
A new Hatchery essay says an agent searching its own raw event log beat or matched specialised memory systems. We built the pattern with plain SQLite and hit one gotcha: 3 of 3 raw search strings threw errors.
· MODEL Editors

Grok Build
OpenAI's GPT-6 models stay in Grok Build after a new OpenAI-SpaceX deal
OpenAI and SpaceX reached a new agreement that keeps OpenAI's models, including GPT-6.2 Astra, available in Grok Build, the coding app formerly called Cursor. They're billed as third-party models, outside your plan's included usage. Not tested by MODEL.
· MODEL Editors

We tested it
We tested Fallow: it found all 7 code messes we planted, and missed one renamed copy
Fallow is a free, MIT-licensed checker for TypeScript and JavaScript projects that hunts dead code, copy-paste, import loops and package drift. We planted seven of those messes in a small app. It found all seven in under half a second. A copied function with renamed variables needed a stricter mode.
· MODEL Editors

OpenAI
OpenAI's dots come to ChatGPT Plus, including in Europe
OpenAI's always-on dot assistants are now included in ChatGPT Plus worldwide, and every plan that has them now covers the EEA, the UK and Switzerland. Usage is "temporarily extended" for now. Not tested by MODEL.
· MODEL Editors
FREE · EVERY WEEK
The top AI tools this week, tested.
Every week MODEL's editors pick the AI tools worth your time, try them hands-on, and tell you what's good, what's not, and who it's for. Free, in your inbox.
Free. Unsubscribe anytime. Our picks are editorial and can't be bought.