TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Advances in frontier coding agents have sharply increased the token costs of AI-assisted software engineering. Their token efficiency is typically evaluated on isolated tasks, whereas real-world developers use them to continuously build, update, and maintain large-scale projects. This mismatch motivates us to evaluate agents over sequences of realistic coding tasks, where we find that agents exhibit recurring environment-dependent token costs that existing methods struggle to reduce. To minimize these costs, we introduce TokenEconomizer, an external controller that cuts environment-specific token costs over a sequence of tasks. These cuts come from determining (i) which operational micro-skills to inject, (ii) which persistently irrelevant tools to prune, and (iii) when to intervene in unproductive failure loops. Across Claude Code, Codex, and GitHub Copilot CLI paired with frontier models, TokenEconomizer reduces the average token cost by 18.4-30.9% with comparable task success. Savings hold in every repository under every tested agent-model setting and generalize to diverse domains such as sequential web development and security auditing, where costs fall by 6.4-21.2% depending on task structure. Our work establishes adaptive black-box cost control as a promising direction for reducing token costs of coding agents in realistic settings.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 45 of its 52 references that are in the map. Submitted 15 Oct 2026.
Builds on
45 of 52 references.
Closest ancestors · 9
Same direction, newest first
- 2026DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Tasks8 Jul
- 2026Squeez: Task-Conditioned Tool-Output Pruning for Coding Agents4 Apr
- 2026Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCP28 Mar
- 2026SWE Context Bench: A Benchmark for Context Learning in Coding9 Feb
- 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep
- 2025Web-Bench: A LLM Code Benchmark Based on Web Standards and Frameworks12 May
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
- 2024Executable Code Actions Elicit Better LLM Agents1 Feb
Other references · 36
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,483
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 1,067
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 1,000
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 809
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2024Agent Workflow Memorycited by 482
- 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 421
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 363
- 2023Large Language Models as Tool Makerscited by 332
24 more
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 324
- 2025SkillWeaver: Web Agents can Self-Improve by Discovering and Honing Skillscited by 233
- 2026Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skillscited by 228
- 2026CoEvoSkills: Self-Evolving Agent Skills via Co-Evolutionary Verificationcited by 159
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 157
- 2023AutoMix: Automatically Mixing Language Modelscited by 150
- 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 140
- 2024AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Callscited by 134
- 2025Inducing Programmatic Skills for Agentic Taskscited by 127
- 2026SkillX: Automatically Constructing Skill Knowledge Bases for Agentscited by 88
- 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 71
- 2026SkillGen: Verified Inference-Time Agent Skill Synthesiscited by 38
- 2024ReposVul: A Repository-Level High-Quality Vulnerability Datasetcited by 37
- 2026SkillCraft: Can LLM Agents Learn to Use Tools Skillfully?cited by 34
- 2025Improving Code Localization with Repository Memorycited by 26
- 2026CODESKILL: Learning Self-Evolving Skills for Coding Agentscited by 21
- 2025SWE-Bench-CL: Continual Learning for Coding Agentscited by 19
- 2026BAGEN: Are LLM Agents Budget-Aware?cited by 16
- 2025Runaway is Ashamed, But Helpful: On the Early-Exit Behavior of Large Language Model-based Agents in Embodied Environmentscited by 13
- 2026Doomed from the Start: Early Abort of LLM Agent Episodes via a Recall-Controlled Probe Cascadecited by 11
- 2025Agent-Environment Alignment via Automated Interface Generationcited by 7
- 2026AgentStream: How Well Do Self-Evolving LLM Agents Perform Under Streaming Tasks?cited by 7
- 2026Test-Time Learning with an Evolving Librarycited by 4
- 2026FastCode: Fast and Cost-Efficient Code Understanding and Reasoningcited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Termination Lag: Coding Agents Solve Early but Stop Latecited by 0
- 2026Termination Lag: Coding Agents Solve Early but Stop Late11 Nov 2026
Similar, not cited
Close in wording, no citation either way
- 2026Can your AI agent be cheaper? Investigating the effects of task specifications on token spend in agentic coding tasks
- 2026Token Reduction Is Not Cost Reduction
- 2026How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks
- 2026Analyzing and Mitigating Cost-Inefficient Behaviors in Coding Agents
- 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages
- 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents
- 2026On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents
- 2025More with Less: An Empirical Study of Turn-Control Strategies for Efficient Coding Agents