A new study of 1,200 agent trajectories reveals that coding agents frequently exhibit three cost-inefficient behaviors: subsumed retrieval, similar script generation, and test re-execution. These patterns impact up to 98% of tasks, driving unnecessary token consumption. The authors evaluate mitigation strategies like structure-aware retrieval and synthesized skills across 10,000 held-out trajectories to reduce this overhead.
- Subsumed retrieval, similar script generation, and test re-execution are the primary drivers of cost inefficiency.
- These wasteful behaviors affect between 79% and 98% of all coding agent tasks analyzed.
- Structure-aware retrieval and agent-synthesized skills offer viable paths to reduce token spend.
- Optimizing agent behavior is critical for scaling coding assistants without exponential cost growth.