Microsoft open-sources TokenEconomizer, cutting coding agent costs 18–31%

aigclink · x · 2026-11-16

Microsoft open-sourced TokenEconomizer, a black-box cost-control tool for coding agents that cuts task costs by 18.4%–30.9% for Codex, Claude Code and others. It targets wasted tokens from repeated repo exploration, idle tool definitions, and failed retry loops.

Three mechanisms: Micro-skills distills reusable project knowledge from history and injects it into later sessions (off by default); Tool Pruning drops long-unused tool definitions from context; Failure-loop Intervention detects retry loops and injects corrective hints.

It works via existing plugins/hooks/config — no model or agent core changes — and supports Claude Code, Codex, Copilot CLI and Pi.

Related event: Microsoft Open-Sources TokenEconomizer, Cutting Coding Agent Costs Up to 31%(2 posts)→

Original post →

More from coding & agent

coding & agent channel →