A compressor per format
JSON, code (AST-aware, in 9 languages), logs and plain text each get their own compressor.
HarnessUp / Alternatives / Headroom
Honest questionGood instinct, mostly. If your agent is drowning in logs, JSON and search results, Headroom squeezes them before the model reads them. But it does it from inside the traffic path, and what the agent reads is only part of the bill.
youI wrapped Claude Code with Headroom. My logs shrink before the model sees them. Tokens solved, right?
HarnessUpSmart move. Tool output is a big leak.
youSo... solved?
HarnessUpOne faucet squeezed. Let me show you the others still leaking.
80 thousand stars on GitHub agree. It compresses what the agent reads (tool output, logs, files, RAG chunks and history) before it reaches the model, and the compression runs on your own machine.
★ 80k
stars · 19 agents listed
respect.
JSON, code (AST-aware, in 9 languages), logs and plain text each get their own compressor.
Originals are cached locally, and the model can fetch them back with headroom_retrieve.
Apache-2.0 license, no price tag.
Python library, local proxy, MCP server, or one command: headroom wrap claude.
Agent drowning in tool output? Try it, seriously.
Headroom squeezes what the agent reads. Its own benchmark is upfront about the range: 21% to 57% fewer input tokens on four agent scenarios, and little on prose. The rest of the bill never goes through a compressor:
To do that with Claude Code, headroom wrap claude starts a local proxy and routes the agent through it, so every request, auth included, passes through that process. It also sends an anonymous usage beacon by default, without prompts or code; HEADROOM_BEACON=off turns it off.
Headroom squeezes one faucet hard. Others are still leaking.
HarnessUp also shrinks what the agent reads: Command Ceiling cuts a 40K-line log down to the part that matters, and Code Finder returns a map instead of a whole file. The difference is where it acts: at the agent's documented hooks, never between you and the model.
And when a parser isn't sure, the output passes through untouched: better to save nothing than to hand the model the wrong thing. The original always stays recoverable.
Squeezing is good. Staying out of the path is better.
Both keep the original. Only one stays out of the traffic path: if HarnessUp goes down, the agent just keeps working.
It keeps both ends: a long output comes back with its first and last lines, where the command and the error usually are. A line is never cut in half.
The original stays on disk: the full output is saved to a file, and the agent opens it only when the part that was cut matters.
No proxy in the middle: it acts on the agent's own commands, through its hooks. If HarnessUp stops, the commands just come back whole. On the tasks it covers, Command Ceiling cut 56%.
That's why HarnessUp cuts at the hook instead of standing in the middle.
# Command Ceiling, a real cut from our own session, 11/22/2026
output 114 lines, 2 KB
delivered first 15 + last 25 lines
cut 74 lines (−65%)
original ~/.harnessup/command-output/b5edb06f09.txt
# the original stays on disk:
# the agent opens it only if it needs to
HarnessUp has an engine for every leak. Each number was measured on the tasks that engine covers.
Builds and commits at the end of the task, without spending a model turn.
The expensive model only decides. Tests, search and reading go to a cheap model.
Flags the exact turn where starting fresh costs less than continuing.
Straight to the point. No walls of text, no intro.
Big file? It returns a map of functions and lines, not the whole file.
A 40K-line log shrinks to the part that matters.
Builds on your machine and shows the error before the next turn.
Reduction measured per engine, on the tasks it covers. 26 tools are savings-only.
No beating around the bush. Where Headroom doesn't show up, it's not a flaw: it's just not its job.
| What you want | Headroom | HarnessUp |
|---|---|---|
| Main focus | A context-compression library, local proxy and MCP server | Savings, control and security for the agent |
| Find things in the code | Not its thing | ✓Code Finder: file map, −59% |
| Cut huge logs and output | ✓Compresses tool output, logs, files and history: 21% to 57% fewer input tokens in its own benchmark | ✓Command Ceiling, −56% |
| Answers without fluff | Output shaper, off by default; its 31.7% is labeled an estimate | ✓Response Diet, −64% |
| Know when to start a fresh session | Not its thing | ✓Renew Session, −73% |
| Build and commit without spending a turn | Not its thing | ✓Build Now, Smart Commit, First Pass |
| Send grunt work to a cheap model | Not its thing | ✓Cheap Swarm |
| Remember the project's decisions and pitfalls | Not its thing | ✓Context Graph and Fresh Context |
| Measure how much you spend and where it leaks | The project's own seeded benchmark: four agent scenarios, plus accuracy evals | ✓Deep Scan, free on Basic |
| Protect passwords, history and files | Not its thing | ✓Secret Lock, Git Shield, No Delete, Checkpoint |
| How it acts | A proxy in the traffic path, or a library inside your code | Hooks at tool-call boundaries, original always recoverable |
| Your login and keys | With wrap, the agent's requests and their auth go through the local proxy | Never in the path. HarnessUp never reads your token |
| Does your code leave the machine? | Compression runs locally; an anonymous usage beacon is on by default, without prompts or code | No. 0 bytes leave your machine |
| Agents | Claude Code, Codex, Cursor, Aider, Copilot and 14 more | Claude Code and Codex |
| Price | Free, Apache-2.0 | Basic free forever. Pro from US$ 6/mo billed yearly |
Headroom details taken from its public repository in November 2026. Spotted something outdated? Write to help@harnessup.dev and we'll fix it.
Nobody here is trashing a good tool.
Yes. They work at different layers: Headroom wraps the agent with a local proxy or runs as a library, HarnessUp plugs in through the agent's hooks. Let Headroom squeeze tool output and let HarnessUp handle sessions, builds, answers and the rest of the bill. If you turn on Headroom's output shaper, pick it or Response Diet for the answers, not both.
According to its README, yes: originals are cached locally and the model can pull them back with headroom_retrieve, for as long as the configured retention lasts.
Because a proxy sits between you and the model, with your keys and your login. HarnessUp works only through the agent's documented hooks, never sits in the credential path and never reads your token. If it goes down, the agent just keeps working.
Real token counts from your own transcripts, on your own sessions. Headroom's headline numbers come from its own seeded benchmark. HarnessUp records every turn, and Deep Scan shows how much you spent and where it leaked.
7 days with everything on. No card. No signup. Installs in about 1 minute.
irm https://harnessup.dev/install.ps1 | iexPaste it into your agent and ask it to install. That's it.