Devtoolwatch BoardGet it every Monday

TokenEconomizer review

TokenEconomizer is a plugin that lowers the cost of running coding agents by learning from past sessions in the same repository.

Updated Nov 15, 2026. Review written Nov 15, 2026 from the project's own sources; usage data refreshed every Monday.

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.

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@tokeneconomizer

For Codex

codex plugin add tokeneconomizer@tokeneconomizer

For Pi

pi install git:github.com/microsoft/TokenEconomizer

Requirements

  • 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

  1. Clone the repository and add it as a plugin marketplace with an absolute path, then install the plugin in your agent.
  2. Start the agent in one of your repositories and trust the folder when asked.
  3. In Claude Code or Copilot CLI, run /tokeneconomizer:status to confirm the install; a short status block appears if it worked.
  4. 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.

New GitHub stars per week for TokenEconomizer5 weeks from Oct 11, 2026: 0, 222, 3k, 1.7k, 1.2k new stars, an average of 1.2k a week.Aug 23week of Nov 8
New GitHub stars per week for the last 12 weeks, from GitHub's stargazer history (today's stargazers by the week they starred).
Show the weekly numbers
New GitHub stars per week for TokenEconomizer
Week ofNew stars
Aug 23, 2026–
Aug 30, 2026–
Sep 6, 2026–
Sep 13, 2026–
Sep 20, 2026–
Sep 27, 2026–
Oct 4, 2026–
Oct 11, 20260
Oct 18, 2026222
Oct 25, 20263k
Nov 1, 20261.7k
Nov 8, 20261.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:

Coding agents ranked by momentum, the week of Nov 8–14, 2026
RankToolStarsDownloads/wk
#1DSH 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–
#2OpenMausBotOpenMausBot 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–
#3OpenFilmOpenFilm 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–
#4dsh-superagentdsh-superagent is a research-prototype proactive coding agent for one GitHub repository, packaged as a bundle for DeepSeek Harness.23.1k–
#5OpenBotOpenBot is an open-source, self-hosted template for AI coworkers that each get their own browser, files and granted tools, with every…12.3k–
#6OpenBotOpenBot is a local-first desktop workspace for persistent AI teammates such as Codex, Claude, and Grok, each with its own workspace.7.8k–

All AI coding agents, ranked

Recent TokenEconomizer releases

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

  1. microsoft/TokenEconomizer on GitHub
  2. TokenEconomizer README
  3. Release v0.1.0 (Oct 26, 2026)
  4. Devtoolwatch Board, the week of Nov 8–14, 2026

TokenEconomizer README badge

Maintainers can show the tool's weekly Board rank in their README:

Devtoolwatch badge for TokenEconomizer

[![Devtoolwatch](https://index.devtoolwatch.com/badge/microsoft-tokeneconomizer.svg)](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].