Directory · Coding agents
TokenEconomizer
Plugin that cuts coding agent costs in frequently used repos by learning repo facts, pruning unused tools, and redirecting stuck loops.
★ 8,195 stars · last updated 2026-11-25 · Free, open source · View on GitHub
Best for
- Developers who run Claude Code, Codex, Copilot CLI or Pi repeatedly in the same repositories
- Reducing token spend without changing the agent or model
- Teams wanting cache-aware cost reporting that includes plugin overhead
- Researchers studying cost control for coding agents
Install
git clone https://github.com/microsoft/TokenEconomizer.git
claude plugin marketplace add "$PWD/TokenEconomizer"
claude plugin install tokeneconomizer@tokeneconomizer
Our take
Research project from Microsoft Research and UC Berkeley with an accompanying paper reporting 18.4 to 30.9% lower mean cost on SWE-Bench tasks across five agent and model combinations. It works through three toggleable mechanisms (micro-skills, tool pruning, failure-loop intervention), stores learned data locally in ~/.tokeneconomizer, and runs its own model calls through your existing agent login. Support is pinned to specific agent version ranges, opencode support is experimental, and Codex and Pi use different install commands documented in the README.
Similar coding agents
- Open Interpreter: Terminal coding agent forked from OpenAI Codex, tuned to emulate provider harnesses for low-cost open models like Kimi K3 and GLM.
- AI Agents in Depth (深入理解 AI Agent): Open-source book by Bojie Li on AI agent design and engineering, with 10 chapters and 109 companion experiments in Python.
- Codewhale: Open-source Rust terminal coding agent that works with 40+ model providers or local models, with approvals, receipts and undo.
- Reasonix: Open-source coding agent for terminal, desktop, browser and editor that reads code, edits files and runs commands with any OpenAI-compatible model.
- DSH Go: Unofficial Android client for DeepSeek Harness that runs the agent on-device or remotely controls DSH on your computer.
- Qwen Code: Open-source terminal coding agent with IDE, desktop, web, and chat interfaces, supporting Qwen, OpenAI, Anthropic, Gemini, and local models.