Las dos versiones están alineadas bloque a bloque, en el orden del texto: titular, lo esencial y después párrafo a párrafo. Cuando la traducción ha fusionado o dividido un párrafo, la casilla correspondiente queda vacía — nunca emparejamos dos pasajes a ojo.
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.
Cada día, un desarrollador encarga un error a un agente de programación con IA en un proyecto que el agente ya conoce. El agente empieza de cero: averigua cómo ejecutar las pruebas, carga herramientas que nunca usará y a veces repite un enfoque que había fallado el día anterior. Cada paso se factura, y la factura no deja de crecer. Microsoft Research, junto con UC Berkeley, ha publicado TokenEconomizer, un plugin de código abierto que hace que el agente aprenda de sus sesiones anteriores en el mismo repositorio. En pruebas con 277 correcciones reales de errores, redujo los costes entre un 18,4 % y un 30,9 % en varios agentes de programación, y los costes bajaron en todos los repositorios probados.
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.
Los agentes se facturan por token, los fragmentos de texto que envían a su modelo y reciben de él. El equipo analizó primero Claude Code en 60 correcciones de errores de SWE-Bench, un banco de pruebas de errores reales en proyectos Python de código abierto. Tres tipos de desperdicio aparecían una y otra vez. A partir de cinco tareas completadas en un repositorio, el 30 % de las llamadas a herramientas repetía una acción de una tarea anterior en ese mismo repositorio, mientras que solo el 7 % coincidía con una acción de otro repositorio. El agente recibía 23 descripciones de herramientas en cada turno, y 16 de ellas no se llamaban nunca. Por último, el 17 % de las tareas fallidas consumía el 32 % del gasto.
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 lee el registro de cada sesión terminada y actúa mediante tres mecanismos, usando solo interfaces que el agente ya expone. Las microhabilidades son notas de una línea sobre el repositorio, que se añaden al contexto inicial del agente solo después de que varias sesiones confirmen un patrón, y se retiran si pruebas posteriores las contradicen. La poda de herramientas elimina las que el historial sugiere que no harán falta, conservando las herramientas básicas para ejecutar comandos y editar archivos; las herramientas eliminadas pueden restaurarse. Cuando un agente tropieza una y otra vez con el mismo error, un modelo juez decide si de verdad está bloqueado. Si lo está, recibe una nota breve que sugiere otro enfoque, y si sigue bloqueado, se avisa al desarrollador en lugar de detener el trabajo.
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.
Partiendo sin historial, el plugin redujo el coste medio por tarea entre un 18,4 % y un 30,9 % en cinco combinaciones de agente y modelo, en seis repositorios. Las primeras tareas pueden costar más mientras aprende, pero en todos los repositorios los costes acumulados bajaron por debajo de los del modo por defecto a partir de la sexta tarea. Reducir el esfuerzo de razonamiento del modelo ahorró cantidades similares o mayores, pero provocó una degradación notable del rendimiento. Los índices de éxito son el matiz: Microsoft los describe como globalmente estables, y Pass@1 subió en cuatro de las cinco configuraciones, mientras que la configuración con mayor ahorro perdió un punto. En Web-Bench, un banco de pruebas de desarrollo web, los costes fueron entre un 16,0 % y un 21,2 % inferiores. Las ganancias son menores en las auditorías de seguridad, donde cada tarea se encuentra en un repositorio nuevo y las notas específicas del repositorio no se aplican: allí los costes bajaron entre un 6,4 % y un 9,3 %, según MarkTechPost. Las cifras proceden de mediciones de los propios autores.
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.
Para un desarrollador que ya paga por agentes de programación, el plugin es de código abierto, funciona junto al agente que utiliza y no requiere ni un modelo nuevo ni cambios en el agente. Los ahorros comunicados ya incluyen el coste de las propias llamadas del plugin a su modelo. La ganancia crece con el uso: la misma corrección de un error, en el mismo proyecto, cuesta menos cuanto más haya trabajado allí el agente. Los equipos que trabajan día a día sobre una misma base de código son los que más pueden ganar, mientras que las tareas puntuales en repositorios nuevos ganan menos.