Microsoft Research

TokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient

TokenEconomizer is an open‑source plugin developed by Microsoft Research that helps AI coding agents avoid repeating the same mistakes and reduce token usage. By learning from previous sessions, it cuts costs while keeping task success rates high. The tool represents a step toward agents that not only solve problems but also use computation more efficiently.

arXiv Computation and Language
Oct 19

TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents

arXiv:2610.22732v1 Announce Type: new Abstract: Advances in frontier coding agents have sharply increased the token costs of AI-assisted software engineering. Their token efficiency is typically eval...

By Aaron J. Li, Weijia Xu, Chandan Singh, Zixiao Chen, Jeevana Priya Inala, Charlotte Siska, Acar Tamersoy, Bin Yu, Ion Stoica, Michel Galley, Jianfeng Gao
arXiv AI
Oct 5

How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks

The paper presents a systematic study of token consumption in AI agents performing coding tasks. It finds that agentic tasks are far more expensive—about 1000 times more tokens than code reasoning or chat—primarily due to input tokens, and that token usage varies wildly, with accuracy peaking at moderate costs. Models differ significantly in efficiency, and current frontier models cannot reliably predict their own token usage, often underestimating it.

By Longju Bai, Zhemin Huang, Xingyao Wang, Jiao Sun, Rada Mihalcea, Erik Brynjolfsson, Alex Pentland, Jiaxin Pei
arXiv Computation and Language
Nov 6

How Do AI Agents Waste Your Money?

The paper presents a unified framework for measuring token waste in AI agents. It records agent trajectories, uses an LLM-as-a-Judge to identify removable text spans, and validates the waste by removing those spans and observing task outcomes. Experiments show that 41‑46% of reasoning tokens can be pruned with minimal performance loss across two benchmarks, revealing that token waste varies by task, agent setting, and harness rather than model alone.

By Huimin Zeng, Yuxuan Lu, Jesse Cai, Eric Hanchen Jiang, Di Wu, Po-Nien Kung, Wenbo Hu, Ziyi Wang, Dakuo Wang, Jiaxin Pei, Kai-Wei Chang
Towards Data Science
Aug 27

How to Work with AI Coding Agents

The article "How to Work with AI Coding Agents" offers a practical guide aimed at improving code quality rather than merely increasing quantity. It focuses on strategies and best practices for effectively collaborating with AI coding tools to produce better code. The post was originally published on Towards Data Science.

By Sara A. Metwalli
OpenAI Blog
Sep 6

Research acceleration: The view inside OpenAI

The article discusses how coding agents are transforming AI research within OpenAI. It presents early data on agent usage, experiment velocity, task complexity, and the resulting acceleration of research. The piece highlights the growing role of these agents in speeding up development and experimentation.

arXiv AI
Sep 18

SoL-Pi: Recursively Scaling Auto-Research Loops for Efficient Agent Harness

arXiv:2609. 20519v1 Announce Type: new Abstract: As coding agents move from supervised code completion to unattended, around-the-clock exploration, their work expands from isolated predictions into long trajectories of reasoning, tool use, and feedback.

By Haozhe Liu, Tian Ye, Sensen Gao, Qihang Cao, Yitong Li, Mingchen Zhuge, Duomin Wang, Ruihua Zhang, Ping Luo, Jiawang Bian, Lei Zhu, Ligeng Zhu, Enze Xie, Song Han
arXiv Computation and Language
Oct 22

The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages

The paper investigates how token consumption varies across programming languages for coding agents. Five recent models were evaluated on Python, Java, Rust, and OCaml, revealing significant differences in token usage that persist across models. Analysis of agent trajectories shows that agents often generate non‑compiling solutions in unfamiliar languages, revise passing solutions, plan in code comments, distrust provided tests, and prototype in Python to sidestep unfamiliar languages.

By Zixuan Wu, Carolyn Jane Anderson, Arjun Guha