Directory / Dev tool / TokenEconomizer
TokenEconomizer
An open-source plugin from UC Berkeley, Microsoft Research and Microsoft Security that makes coding agents cheaper in repos you work in often, without changing the agent. It learns repo facts from past sessions (micro-skills), stops loading tools that go unused (tool pruning) and nudges turns that are stuck in failure loops. Works with Claude Code, Codex, GitHub Copilot CLI and Pi, with experimental support for opencode, Cursor Agent, Factory Droid and others.
💲 Free and open source. Its own model calls run through your existing agent's plan or login and are counted in its reports; learned data stays local in ~/.tokeneconomizer. Source: github.com (checked Nov 17, 2026).
Pros & cons
👍 Pros
- 18.4-30.9% lower mean cost on 277 SWE-Bench tasks across five agent/model setups (authors' figures)
- No agent or model changes; fails open if anything breaks
- Each mechanism can be toggled and tuned
👎 Cons
- Savings come from repeated work in the same repo, so one-off repos gain little
- Research-stage project; install runs from a git clone and some agents are experimental
Latest release
Microsoft Research launch post
Microsoft Research published the TokenEconomizer write-up and paper, reporting cost reductions in every repository tested with task success roughly stable; the loop guard's judge can now run on Apple's on-device model. Source ↗
Ranked in
Alternatives to TokenEconomizer
Claude Code
Coding agentAnthropic's agentic coding tool — understands your codebase, edits files, runs commands, and helps you ship faster.
Grok Build (formerly Cursor)
AI code editorThe Cursor AI code editor, renamed Grok Build after SpaceX's acquisition: a VS Code-style IDE plus a rewritten Agents Window for running many coding agents in parallel, cloud agents, multiplayer Projects, hosted Apps, an Agents SDK and the Grok Build TUI terminal companion. Works with Grok, GPT, Claude, Gemini and open-weight models.
AI SDK (Vercel)
Agent frameworkA unified TypeScript SDK for building AI apps with modern streaming, fallbacks, and multi-model support.
Ratings are preliminary editorial opinions. Spotted something out of date? Tell us. Listed here? Get the badge. Some links are affiliate links; they never affect rankings.