Directory / Dev tool / TokenEconomizer

T

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.

Visit github.com ↗
Our rating
★ 4.1 / 5 preliminary
Pricing
Free · from $0
Category
Dev tool
For
Builder
Last updated
Nov 17, 2026

💲 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

Nov 16, 2026

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

⌨️ AI code editors & coding agents🤖 AI agents & agent frameworks

Alternatives to TokenEconomizer

C

Claude Code

Coding agent
★ 4.8

Anthropic's agentic coding tool — understands your codebase, edits files, runs commands, and helps you ship faster.

Builder Paid · from $20/mo
G

Grok Build (formerly Cursor)

AI code editor
★ 4.8

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

BuilderVibe coder Freemium · from $8/mo
A

AI SDK (Vercel)

Agent framework
★ 4.7

A unified TypeScript SDK for building AI apps with modern streaming, fallbacks, and multi-model support.

Builder Free

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.