A coding agent that spent yesterday finding the right test command can spend today finding it again. Researchers at UC Berkeley and Microsoft have put a price on some of that repetition: in their evaluation of 277 bug-fixing tasks, a plugin that reused lessons from earlier sessions cut costs by 18.4% to 30.9% across the agents tested.
The team described the open-source project, TokenEconomizer, on November 16. Rather than retrain the model, the plugin turns completed sessions into guidance for future work in the same repository. That distinction matters for teams choosing between a cheaper model and a cheaper way to run the model they already use.
The result is not a discount on every API call. A team working repeatedly in one codebase has past sessions to learn from; a first visit to an unfamiliar repository is a different proposition. A useful comparison would track cost per successfully completed fix, not merely tokens per session. A shorter session that leaves a bug unresolved is no bargain.