TokenEconomizer

Reduces token usage for coding agents by learning from prior sessions

Free tier

Free plan
Open source
Card required
Not stated
Sign-up needed
Not stated
Watermark on free output
Not stated
Commercial use allowed
Not stated

Free and open source under Apache-2.0

Checked 10 Nov 2026 against github.com

What it does

TokenEconomizer is an open‑source plugin that makes coding agents cheaper to run in repositories you work in frequently. It learns facts about a repository from repeated failures and model reviews, stores them locally, and injects them at the start of future sessions. The plugin also prunes unused tools and intervenes when a turn gets stuck, reducing redundant token consumption. It works with Claude Code, Codex, GitHub Copilot CLI, Pi, and experimental support for other agents. The learned data stays on the user's machine, and the plugin runs without altering the underlying agent model.

Best for

  • developers using AI coding assistants
  • teams running repeated code generation in the same repo
  • projects aiming to lower LLM token costs
  • users wanting automatic tool pruning
  • situations where agents get stuck in loops

Generate codeFind and fix bugsReview codeExplain code

Platforms and access

Command lineSelf-hosted

Open source under the Apache-2.0 licence: github.com/microsoft/TokenEconomizer.

Alternatives

Change log

  • 10 Nov 2026 Listed in the directory