The token saver I vetted and never installed
Layer 2 of my token-saving plan has no number. I never installed it.
Every layer I did run got a result, even when the result was zero. Layer 0, the plugin diet, moved the first request of a session by 79 tokens out of 35.9k (one run each way). Layer 2 was Headroom, a proxy that compresses tool output, logs and history before they reach Claude. I read part of it, decided against it and measured nothing. What I have is a decision. I can't tell you whether Headroom saves a single token.
The bundle had changed
My spec listed three tools for the job: Headroom for input compression, RTK for shell output and tokensave for code navigation. Headroom was supposed to bundle the other two. The spec also carried a stop rule: if the version I installed didn't bundle them, stop and ask before installing either one separately.
Version 0.45.0, the current release when I checked, went up on PyPI the evening of November 21 (Central time). Headroom had dropped RTK back in 0.34.0 (August) and had already retired tokensave in favor of Serena by 0.33.0 (July). Serena is a code-navigation tool my spec had ruled out by name to avoid overlap. The stop rule fired before anything was installed.
What I read in 0.45.0
Reading costs nothing, so I did that part. I pulled the source distribution, confirmed its SHA-256 matched the one PyPI lists, and read six files: the hooks, two telemetry files, the update check, the offline switch and the wrap claude command, then searched the rest of the package for a few specific things. Four things turned up:
- On by default, a telemetry beacon to a workers.dev address. Four settings turn it off (
HEADROOM_BEACON=off,HEADROOM_TELEMETRY=off,DO_NOT_TRACK=1orHEADROOM_OFFLINE=1). I didn't verify what the payload holds. - The update check goes to pypi.org, and the full install downloads models from huggingface.co.
-
wrap claudepoints Claude Code at the proxy throughANTHROPIC_BASE_URL. With--project-settingsit also writes that,ENABLE_TOOL_SEARCHand a SessionStart hook into.claude/settings.local.json, and it may edit~/.claude.json. -
headroom learnreads Claude Code session logs under~/.claude/projects, for the current project by default and for every project with--all.
The repo is headroomlabs-ai/headroom under Apache-2.0, and the v0.45.0 tag points at commit ce0460c. I couldn't verify who stands behind the GitHub organization.
A proxy reads everything
Most things I install read files. A proxy sees every prompt, every response and every credential, and wrap claude is the command that points Claude Code at it. Part of this one is compiled. I read six of its Python files and never opened the binary.
I could read the beacon and switch it off. The compiled core ships as a binary. Its Rust source is in the sdist, and I didn't read that or check that the wheel was built from it. My spec already required telemetry off and the proxy bound to 127.0.0.1, and neither check tells me what a compiled binary does with the prompts it receives.
What I didn't check
I skipped the checks a real verdict would need: a diff of the source distribution against the git tag, a look inside the compiled wheel, the output shaper's code path and how it detects auth mode. RTK still exists as its own project (rtk-ai/rtk), and I didn't examine that either.
The spec also demanded cache checks for this layer. The same large tool output compressed twice had to hash identically, and each request had to start with the previous one byte for byte, because a compressor that rewrites earlier messages breaks the prompt cache. The first post in this series is about what a missed cache costs. I never ran either check.
Limits
This covers one version, 0.45.0, on one machine. A later release could fix all of it, or add more. I didn't measure compression, so Headroom may well cut real cost for someone with a different workload and a different tolerance for a compiled binary in the path of every prompt. And I read six Python files closely and searched the rest only for specific strings, so whatever I missed is in the rest.
Layer 2 stays empty
On the night of November 22 I told the session to skip Layer 2. Nothing was installed, so there was nothing to remove, and the findings stay in my plan file in case I revisit it.
My spec said stop and ask. The session stopped and asked, and I said no.
原文:https://www.a8q9.cn/en/article/the-token-saver-i-vetted-and-never-installed-777112.html