TokenEconomizer review
TokenEconomizer is a plugin that lowers the cost of running coding agents by learning from past sessions in the same repository.
TL;DR
TokenEconomizer is a plugin from Microsoft Research and collaborators that cuts the running cost of coding agents like Claude Code, Codex, Copilot CLI and Pi. It is for developers who use the same agent on the same repositories often. It learns repository facts, prunes unused tools and redirects stuck turns, without changing the agent itself.
- 6.1kGitHub stars
- +1.2knew stars, week of Nov 8
- #7in Coding agents this week
TokenEconomizer at a glance
- Category
- Coding agents
- Maintained by
- Microsoft (organization, @microsoft on GitHub)
- License
- Apache 2.0
- Language
- Python, Shell, TypeScript
- Repository
- github.com/microsoft/TokenEconomizer
- Latest release
- v0.1.0 on GitHub, Oct 26, 2026
- First published
- Oct 13, 2026
What TokenEconomizer does
- TokenEconomizer learns repository facts, such as working command spellings or required build steps, and states them at the start of each session.
- TokenEconomizer confirms a fact only after three sessions support it, and drops it when later sessions contradict it.
- TokenEconomizer removes tools that go unused across prompts and sessions through the agent's own settings, and one command brings them back.
- TokenEconomizer uses a judge model to detect turns stuck in repeated failures and sends the agent a short redirect note.
- TokenEconomizer never stops a turn itself; if a turn stays stuck, it tells you how to stop it.
- TokenEconomizer computes cost with cache pricing and includes its own model calls in its reports.
How it works
TokenEconomizer installs as a plugin into your coding agent and runs through its hooks. Its model calls, the fact proposer and the loop guard's judge, run through your own agent on the same plan or login. It leaves the agent's model, weights and code alone. Learned data stays on your machine in ~/.tokeneconomizer, and if the plugin fails, your session continues as if it were not installed.
How to install and start using TokenEconomizer
For Claude Code
claude plugin install tokeneconomizer@tokeneconomizerFor Codex
codex plugin add tokeneconomizer@tokeneconomizerFor Pi
pi install git:github.com/microsoft/TokenEconomizerRequirements
- Python 3.10 or newer on PATH.
- A supported coding agent, signed in any way it supports; no separate API key is needed.
- A supported agent version, such as Claude Code 2.1.300 to 2.1.310 or Codex 0.153.1 to 0.164.0.
First steps
- Clone the repository and add it as a plugin marketplace with an absolute path, then install the plugin in your agent.
- Start the agent in one of your repositories and trust the folder when asked.
- In Claude Code or Copilot CLI, run /tokeneconomizer:status to confirm the install; a short status block appears if it worked.
- Once per machine, and after agent updates, run /tokeneconomizer:toolprune refresh-catalog so tool pruning can consider all loaded tools.
Who TokenEconomizer is for
- Developers who run Claude Code, Codex, Copilot CLI or Pi repeatedly on the same repositories.
- Teams that want lower agent costs without changing the agent's model or code.
- Users who want cost reports that include cache pricing and the plugin's own model calls.
Limitations to know
- TokenEconomizer support for opencode, Cursor Agent, Grok Build, Hermes Agent, Antigravity CLI and Factory Droid is experimental.
- TokenEconomizer tool pruning is not available on Grok Build, Antigravity CLI or Factory Droid.
- TokenEconomizer support for Cursor Agent and Antigravity CLI is macOS and Linux only.
- TokenEconomizer's savings build over repeated sessions in a repository, since each repository starts with nothing learned.
Is TokenEconomizer growing? Usage data
In the week of Nov 8–14, 2026, TokenEconomizer ranked #13 on the Devtoolwatch Board and #7 in Coding agents, with a momentum score of 92 out of 100.
Show the weekly numbers
| Week of | New stars |
|---|---|
| Aug 23, 2026 | – |
| Aug 30, 2026 | – |
| Sep 6, 2026 | – |
| Sep 13, 2026 | – |
| Sep 20, 2026 | – |
| Sep 27, 2026 | – |
| Oct 4, 2026 | – |
| Oct 11, 2026 | 0 |
| Oct 18, 2026 | 222 |
| Oct 25, 2026 | 3k |
| Nov 1, 2026 | 1.7k |
| Nov 8, 2026 | 1.2k |
The Board ranks tools by four signals each week: new stars, new stars for the repo's size, added downloads and download growth beyond the market. How the ranking works.
TokenEconomizer alternatives
Other AI coding agents on the Board in the week of Nov 8–14, 2026, by momentum:
| Rank | Tool | Stars | Downloads/wk |
|---|---|---|---|
| #1 | DSH GoDSH Go is an unofficial Android app for DeepSeek Harness that runs DSH on your phone or connects to DSH on a computer. | 22.7k | – |
| #2 | OpenMausBotOpenMausBot is an open-source desktop chat app where each contact is a local Claude, Codex, or Grok CLI agent with its own computer. | 22.8k | – |
| #3 | OpenFilmOpenFilm is an open source AI video agent that lets coding agents write films as web pages, with a local browser editor called Studio. | 7.1k | – |
| #4 | dsh-superagentdsh-superagent is a research-prototype proactive coding agent for one GitHub repository, packaged as a bundle for DeepSeek Harness. | 23.1k | – |
| #5 | OpenBotOpenBot is an open-source, self-hosted template for AI coworkers that each get their own browser, files and granted tools, with every… | 12.3k | – |
| #6 | OpenBotOpenBot is a local-first desktop workspace for persistent AI teammates such as Codex, Claude, and Grok, each with its own workspace. | 7.8k | – |
Recent TokenEconomizer releases
- v0.1.0, Oct 26, 2026
TokenEconomizer FAQ
Is TokenEconomizer free and open source?
Yes. TokenEconomizer's source code is on GitHub (microsoft/TokenEconomizer) under the Apache 2.0 license, so you can use it for free.
How do I install TokenEconomizer?
Run claude plugin install tokeneconomizer@tokeneconomizer. The install section above has the other options from the project's README.
Is TokenEconomizer still maintained?
Yes. The microsoft/TokenEconomizer repository was last updated on Nov 12, 2026, and the latest release, v0.1.0 on GitHub, came out on Oct 26, 2026.
How popular is TokenEconomizer?
TokenEconomizer has 6.1k GitHub stars as of Nov 15, 2026. It gained 1.2k new stars in the week of Nov 8–14, 2026, against a 12-week average of 1.2k a week. That made it #7 among AI coding agents on the Devtoolwatch Board.
What are the best alternatives to TokenEconomizer?
Other AI coding agents on the Devtoolwatch Board in the week of Nov 8–14, 2026, by momentum: DSH Go (#1), OpenMausBot (#2), OpenFilm (#3), dsh-superagent (#4), OpenBot (#5). The alternatives table above has their numbers.
Does TokenEconomizer change my coding agent?
No. TokenEconomizer leaves the agent's model, weights and code alone. It adds facts to the context at session start and removes tools through the agent's own settings.
Does TokenEconomizer need its own API key?
No. TokenEconomizer needs no API key of its own and never handles credentials. Its model calls run through your own agent, on the same plan or login.
Where does TokenEconomizer store what it learns?
TokenEconomizer keeps what it learns on your machine, in ~/.tokeneconomizer.
Will TokenEconomizer stop a stuck agent turn?
No. TokenEconomizer's loop guard sends at most one redirect per turn by default. If the turn is still stuck, it tells you how to stop it; stopping is your call.
What happens if TokenEconomizer fails during a session?
If any part of TokenEconomizer fails, your session carries on as if the plugin were not installed. The plugin also announces each action in one line.
Sources
TokenEconomizer README badge
Maintainers can show the tool's weekly Board rank in their README:
[](https://index.devtoolwatch.com/tools/microsoft-tokeneconomizer/)How this page is made: Devtoolwatch writes each review from the project's README, releases, package metadata and website, with an AI model, then checks every claim against the source it cites and drops what the sources don't support. The numbers come from Devtoolwatch's daily GitHub snapshots, GitHub's stargazer history, and the npm and PyPI download APIs. Spotted an error? Email [email protected].