Tabloid TechTuesday 24 November 2026 | Edition No. 1
Back to the paperPast editions
Tabloid Tech, Tuesday 24 November 2026AI
AI

Microsoft plugin trims AI coding agent costs by learning from past sessions

Microsoft Research has released TokenEconomizer, an open-source plugin that cut average costs by 18.4 to 30.9 per cent on coding benchmarks while task success held broadly steady.

EDITOR | Monday 16 November 2026 | World

A learner studies on a laptop at home
File photo.

Microsoft Research has published TokenEconomizer, an open-source plugin that reads the logs of an AI coding agent's earlier sessions in a repository and uses them to waste fewer tokens, the units AI services charge for, in later sessions. It does not change the agent or its underlying model.

Researchers profiled Claude Code on 60 SWE-Bench tasks and found three kinds of waste. After five or more completed tasks in a repository, 30 per cent of tool calls repeated an earlier action. The agent was given 23 tool descriptions each turn, and 16 were never used. The 17 per cent of tasks that failed made up 32 per cent of spending.

The plugin responds with one-line repository notes added only after several sessions confirm a pattern, removal of tools the history suggests will not be used, and a judge model that checks whether the agent is stuck and suggests another approach.

Across 277 SWE-Bench tasks from six repositories and five agent and model combinations, average cost fell by 18.4 to 30.9 per cent. Costs on Web-Bench were 16.0 to 21.2 per cent lower, and on security auditing tasks 6.4 to 19.6 per cent lower. Lowering reasoning effort saved similar or larger amounts but badly hurt performance.

The plugin needs no API key of its own and keeps what it learns on the developer's machine. The code is on GitHub at microsoft/TokenEconomizer.

Back to today's paper© 2026 CAQA. Developed by CAQA Online Media Solutions (OMS) Team.