# TokenEconomizer review

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

Devtoolwatch Board, the week of Nov 8–14, 2026. Canonical page: https://index.devtoolwatch.com/tools/microsoft-tokeneconomizer/

## 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](https://index.devtoolwatch.com/categories/coding-agents/)
- **Maintained by:** Microsoft (organization, [@microsoft](https://github.com/microsoft) on GitHub)
- **License:** Apache 2.0
- **Language:** Python, Shell, TypeScript
- **Repository:** [github.com/microsoft/TokenEconomizer](https://github.com/microsoft/TokenEconomizer)
- **Latest release:** [v0.1.0](https://github.com/microsoft/TokenEconomizer/releases/tag/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 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

- 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.

## Usage data (the week of Nov 8–14, 2026)

- Board rank: #13 overall, #7 in Coding agents, momentum score 92
- New GitHub stars per week (last 12 weeks): Aug 23: n/a; Aug 30: n/a; Sep 6: n/a; Sep 13: n/a; Sep 20: n/a; Sep 27: n/a; Oct 4: n/a; Oct 11: 0; Oct 18: 222; Oct 25: 3k; Nov 1: 1.7k; Nov 8: 1.2k

## TokenEconomizer alternatives

| Rank | Tool | Stars | Downloads/wk |
|---|---|---|---|
| #1 | [DSH Go](https://index.devtoolwatch.com/tools/ccch1mneyyy-dsh-go/) | 22.7k | – |
| #2 | [OpenMausBot](https://index.devtoolwatch.com/tools/milind-soni-openmausbot/) | 22.8k | – |
| #3 | [OpenFilm](https://index.devtoolwatch.com/tools/openfilm-openfilm/) | 7.1k | – |
| #4 | [dsh-superagent](https://index.devtoolwatch.com/tools/deepseek-ai-dsh-superagent-prototype/) | 23.1k | – |
| #5 | [OpenBot](https://index.devtoolwatch.com/tools/copilotkit-openbot/) | 12.3k | – |
| #6 | [OpenBot](https://index.devtoolwatch.com/tools/nightly-labs-openbot/) | 7.8k | – |

## 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](https://github.com/microsoft/TokenEconomizer)
2. [TokenEconomizer README](https://github.com/microsoft/TokenEconomizer/blob/main/README.md)
3. [Release v0.1.0 (Oct 26, 2026)](https://github.com/microsoft/TokenEconomizer/releases/tag/v0.1.0)
4. [Devtoolwatch Board, the week of Nov 8–14, 2026](https://index.devtoolwatch.com/)
