In this article you will learn:
- what TokenEconomizer is, and how it differs from Headroom
- what it saved in two weeks of my daily work in Claude Code
- why Microsoft measured far more than I did
Quick answer
- In my way of working, TokenEconomizer saved tokens, but cheap ones: under 0.5% of the bill. A warm prompt cache already does almost all of the saving.
- Only one of its three mechanisms paid off: a shorter list of tools. You can have that without the plugin.
- It costs almost nothing to run, and unlike Headroom, it doesn't break Claude Code's Remote Control.
- Microsoft's 18-31% comes from a benchmark of many tasks in the same repositories. Varied daily work with a warm prompt cache is a different world.
- One more month to confirm, then it most likely goes. This post gets an update with the new numbers.
It saved about $12 in two weeks
TokenEconomizer ran in my Claude Code from 8 November. Two weeks of my telemetry and the plugin's own ledger:
Under 0.5% of the bill
| The work it watched | ~$2,600 |
|---|---|
| Estimated saving | ~$12 |
| What it cost to run | under $1 |
The saving is a sliver of the work, and the plugin's own cost is a sliver of the saving. So on paper it pays for itself - just not enough to notice on a bill, or in my subscription's 5-hour window 😅
The main reason is the prompt cache. About 98% of what my sessions send to the model is read back from the cache, at a twentieth of the input price or less. A tool that trims the prompt trims the cheapest part of the bill.
So before you install a token-saving plugin, check how much of your input already comes from the cache (Claude Code's OpenTelemetry export reports it). In the high 90s, a plugin that trims the prompt is fighting over crumbs.
What is TokenEconomizer and how does it work?
TokenEconomizer is an open-source plugin from Microsoft Research and UC Berkeley, for Claude Code, Codex, the GitHub Copilot CLI and Pi. It learns from your past sessions in a repository to cut waste in the next ones:
- Micro-skills (repository facts) remember facts about the repository, such as the command that runs its tests, and state them at the start of a session.
- Tool pruning (a shorter tool list) leaves out the tools you never use, so their definitions stop riding along with every request.
- The loop guard watches for a turn stuck in the same failures, asks a small model whether it's really stuck, and nudges the agent to try another way.
All three work through Claude Code's hooks and settings, beside the session.
Headroom
TokenEconomizer
off
works
Why it replaced Headroom: Remote Control
Before TokenEconomizer, I ran Headroom, which compresses what an agent sends. Over three months it removed 1.3% of my tokens, worth a few percent of a 5-hour window by my estimate.
What made me drop it was where it sits: it's a proxy between Claude Code and Anthropic's API. Remote Control works only when Claude Code talks to the API directly, and I need it. I'm not always at my PC, and from my phone I approve edits, stop a session, or type "continue" when the 5-hour limit resets.
TokenEconomizer leaves that path alone: Remote Control from my phone was the first thing I checked, and it worked. The lesson: before you install anything that sets ANTHROPIC_BASE_URL, check what it switches off.
The one saving: a shorter list of tools
Every request carries the definitions of the tools the agent can use. Claude Code already keeps most of them out of the prompt and loads them by name when they're needed, but a few large built-in tools always ride along. TokenEconomizer proposed leaving out the ones I don't use. I measured the prompt both ways:
The prompt at the start of a session, in tokens
| Every tool | 55,074 |
|---|---|
| Proposed tools left out | 38,177 |
About 17,000 tokens fewer on every request. It sounds like a lot, but those tokens are almost always read from the cache, at the cheapest price there is. The list was on in only some of my sessions; even in every one of them, the saving would have been about 3%.
You don't need the plugin for this. It writes a plain deny list into Claude Code's settings, and you can write the same list yourself, or pass --disallowed-tools to a single run. /context shows what your tools take up.
Facts and the loop guard: almost nothing to do
From 13 November I ran micro-skills in the mode that learns only from failures repeated across sessions; in nine days it learned none. The facts it would learn are the ones I already keep in each repository's instructions for agents.
The loop guard stepped in 14 times in about 25,000 requests. I read the first eight in the transcripts:
| What the nudge did | Times |
|---|---|
| Helped a little | 3 |
| No effect | 2 |
| False alarm | 3 |
The false alarms came from long turns where I was steering the work myself, and from hook output after edits that looked like failures. A loop guard makes sense for an agent left alone for hours. With a current model, it rarely had a real loop to catch.
Why Microsoft measured 18-31%, and I didn't
The number in TokenEconomizer's README holds under its own conditions. The authors ran SWE-Bench tasks from a few repositories, each task as its own session, one repository's tasks in a row, starting with nothing learned. For Claude Code, they measured 24% lower cost with Sonnet 5 and 31% with Opus 4.8.
Many short tasks in the same few repositories is exactly where learning pays: the same facts, unused tools and kinds of loops keep coming back.
My two weeks were the opposite: long sessions on varied work across dozens of repositories, newer models (Opus 5.5 and Fable 5.2), and a warm prompt cache almost all the time. There was little waste of the kind TokenEconomizer removes.
If your agents run many similar tasks in the same repositories, your result can be closer to Microsoft's. Mine wasn't.
Harnesses are catching up
This part is my reading, not something the data proves: many add-ons for AI coding are fading, for two reasons.
Harnesses like Claude Code take what works and build it in: loading tools only when they're needed is now Claude Code's own job, and that was most of what a tool list cost. And models got much smarter: they repeat fewer mistakes and loop less, which leaves little for a fact list or a loop guard to do. Even if these tools made sense once, they matter less with every release.
I've stopped using the other tools from this series too: caveman, RTK, Graphify and Headroom. The full case is for the series' closing post.
What this data doesn't show
- Answer quality. I measured cost, not whether the plugin made the work better or worse.
- A control group. The plugin ran the whole time, so there is no week of the same work without it.
- What I pay. The dollars are API prices. On a subscription, a saving means a little more room in the 5-hour window, not a smaller invoice.
- Every session. The plugin couldn't read about a fifth of its sessions, many of them short empty starts.
- A supported version. The plugin lists Claude Code up to 2.1.310, and I ran 2.1.322. That may explain part of the empty fact list.
- Headroom like for like. Its numbers come from the summer, other models, and no telemetry of mine.
- The loop guard's real value. Eight nudges judged by reading transcripts are an impression, not a measurement.
Final thoughts
In my way of working, TokenEconomizer added almost nothing, and nowhere near what Microsoft's benchmark shows. A warm prompt cache already does almost all of the saving. The plugin costs almost nothing and leaves Remote Control alone, so I'll give it one more month, to confirm that I can remove it.
On 23 December 2026, I'll refresh the numbers in this post. If they look like these, it goes.
I hope this was a meaningful read - if so, let me know in the comments. And if TokenEconomizer saved you more, I'd love to see your numbers :)
What's next
The closing post of this series: what actually saves tokens in AI coding, and why harnesses and smarter models are making most add-ons unnecessary. See you there!


