Le due versioni sono allineate blocco per blocco, nell’ordine del testo: titolo, l’essenziale, poi paragrafo per paragrafo. Quando la traduzione ha fuso o diviso un paragrafo, la casella corrispondente resta vuota — non accostiamo mai due passaggi a occhio.
Every day, a developer hands a bug to an AI coding agent in a project the agent has already seen. The agent starts again from zero: it works out how to run the tests, loads tools it will never use and sometimes retries an approach that failed the day before. Each step is billed, and the bill keeps growing. Microsoft Research, with UC Berkeley, has released TokenEconomizer, an open-source plugin that makes the agent learn from its earlier sessions in the same repository. In tests on 277 real bug fixes, it lowered costs by 18.4% to 30.9% across several coding agents, and costs fell in every repository tested.
Ogni giorno uno sviluppatore affida un bug a un agente di programmazione IA in un progetto che l'agente conosce già. L'agente riparte da zero: scopre come eseguire i test, carica strumenti che non userà mai e a volte riprova un approccio che il giorno prima non aveva funzionato. Ogni passaggio viene fatturato, e il conto continua a salire. Microsoft Research, con UC Berkeley, ha rilasciato TokenEconomizer, un plugin open source che fa imparare all'agente dalle sessioni precedenti nello stesso repository. Nei test su 277 correzioni reali di bug, riduce i costi del 18,4% al 30,9% su diversi agenti di programmazione, e i costi sono scesi in ogni repository testato.
Agents are billed per token, the chunks of text they send to and receive from their model. The team first profiled Claude Code on 60 bug fixes from SWE-Bench, a benchmark of real bugs in open-source Python projects. Three kinds of waste came up again and again. Once a repository had at least five completed tasks, 30% of tool calls repeated an action from an earlier task in that same repository, while only 7% matched an action from another repository. The agent received 23 tool descriptions on every turn, and 16 of them were never called. Finally, the 17% of tasks that failed took 32% of the spending.
Gli agenti sono fatturati per token, cioè per i frammenti di testo che inviano al proprio modello e ricevono da esso. Il team ha inizialmente analizzato Claude Code su 60 correzioni di bug tratte da SWE-Bench, un benchmark di bug reali in progetti Python open source. Sono emersi tre tipi di spreco, più volte. Una volta che un repository contava almeno cinque attività completate, il 30% delle chiamate agli strumenti ripeteva un'azione di un'attività precedente nello stesso repository, mentre solo il 7% corrispondeva a un'azione di un altro repository. L'agente riceveva 23 descrizioni di strumenti a ogni turno, e 16 di esse non venivano mai chiamate. Infine, il 17% delle attività fallite assorbiva il 32% della spesa.
TokenEconomizer reads the log of each finished session and acts through three mechanisms, using only interfaces the agent already exposes. Micro-skills are one-line notes about the repository, added to the agent's starting context only after several sessions have confirmed a pattern, and withdrawn if later evidence contradicts them. Tool pruning removes tools the history suggests will not be needed, keeping the core tools for running commands and editing files; removed tools can be restored. When an agent keeps hitting the same error, a judge model decides whether it is truly stuck. If so, it receives a short note suggesting another approach, and if it is still stuck, the developer is alerted rather than the work being stopped.
TokenEconomizer legge il registro di ogni sessione conclusa e agisce attraverso tre meccanismi, usando solo le interfacce che l'agente già espone. Le micro-competenze sono note di una riga sul repository, aggiunte al contesto iniziale dell'agente solo dopo che più sessioni hanno confermato uno schema, e ritirate se prove successive le smentiscono. Lo sfoltimento degli strumenti rimuove quelli che la cronologia suggerisce non serviranno, mantenendo gli strumenti di base per eseguire comandi e modificare file; gli strumenti rimossi possono essere ripristinati. Quando un agente continua a incontrare lo stesso errore, un modello giudice decide se sia davvero bloccato. In tal caso riceve una breve nota che suggerisce un altro approccio; se resta bloccato, viene avvisato lo sviluppatore invece di interrompere il lavoro.
Starting with no history, the plugin lowered the average cost per task by 18.4% to 30.9% across five agent-model combinations on six repositories. Early tasks can cost more while it learns, but cumulative costs dropped below the default in every repository by the sixth task. Lowering the model's reasoning effort saved similar or larger amounts, but led to substantial performance degradation. Success rates are the nuance: Microsoft describes them as broadly stable, and Pass@1 rose in four of the five settings, while the setting with the largest saving lost one point. On Web-Bench, a web-development benchmark, costs were 16.0% to 21.2% lower. Gains are smaller on security audits, where each task sits in a new repository and the repository-specific notes do not apply: costs fell 6.4% to 9.3% there, according to MarkTechPost. The figures come from the authors' own measurements.
Partendo senza cronologia, il plugin ha ridotto il costo medio per attività del 18,4% al 30,9% su cinque combinazioni agente-modello, in sei repository. Le prime attività possono costare di più mentre il sistema impara, ma i costi cumulativi sono scesi sotto il valore di default in ogni repository già alla sesta attività. Abbassare lo sforzo di ragionamento del modello ha fatto risparmiare cifre simili o maggiori, ma ha comportato un sostanzioso calo delle prestazioni. Sul fronte del tasso di successo la sfumatura c'è: Microsoft lo descrive come sostanzialmente stabile, e il Pass@1 è salito in quattro delle cinque configurazioni, mentre quella con il risparmio maggiore ha perso un punto. Su Web-Bench, un benchmark di sviluppo web, i costi sono stati inferiori del 16,0% al 21,2%. I guadagni sono minori negli audit di sicurezza, dove ogni attività si trova in un nuovo repository e le note specifiche del repository non si applicano: lì i costi sono scesi del 6,4% al 9,3%, secondo MarkTechPost. Le cifre provengono dalle misurazioni degli autori.
For a developer who already pays for coding agents, the plugin is open source, works alongside the agent they use, and requires neither a new model nor changes to the agent. Reported savings already include the cost of the plugin's own model calls. The gain builds with use: the same bug, in the same project, costs less the more the agent has already worked there. Teams working day after day on one codebase stand to gain most, while one-off tasks in fresh repositories gain less.
Per uno sviluppatore che già paga gli agenti di programmazione, il plugin è open source, funziona insieme all'agente che usa e non richiede né un nuovo modello né modifiche all'agente. I risparmi dichiarati includono già il costo delle chiamate al modello del plugin stesso. Il vantaggio cresce con l'uso: lo stesso bug, nello stesso progetto, costa meno quanto più l'agente ha già lavorato lì. I team che lavorano giorno dopo giorno su una stessa base di codice sono quelli che guadagnano di più, mentre le attività occasionali in repository nuovi ne traggono meno vantaggio.