Agentic AI
New Framework Tracks Hidden Failures in AI Coding Agents to Improve Performance
Researchers propose an observability system that records the messy runtime behavior of AI coding assistants—retries, fallbacks, and abandoned attempts—to optimize how they work in real development workflows.
AI coding agents are becoming commonplace in software development, but the field has no reliable way to understand and improve how they behave in practice. While datasets typically capture final outputs—code patches, commits, benchmark scores—they ignore the chaotic middle stages where things go wrong: abandoned sessions, retried tasks, fallback routing, and failed strategies that ultimately drive up costs and hurt reliability.
The Problem with Invisible Workflows#
Current artifact datasets are blind to what actually happens during development. Failed attempts, decision pathways, and operational hiccups disappear from the record once a task finishes or gets abandoned. This gap means engineers have no behavioral evidence to coach agents on real-world performance, optimize workflows at their breaking points, or measure the true cost of routing decisions.
A New Observability Architecture#
The research team proposes a structured transaction schema designed to capture these runtime dynamics as observable, analyzable records. This framework enables three concrete improvements:
- Behavioral coaching grounded in evidence from actual failures and retries
- Workflow optimization focused on the specific stages where tasks tend to break down
- Cost-aware routing that measures total task expense rather than individual request prices
Proof of Concept: Agent Token Manager#
The researchers built a prototype called Agent Token Manager (Atm) to demonstrate feasibility. This local-first system reconciles records from API gateways and agent transcripts without requiring prompt content to be shipped to external data collectors—a critical privacy consideration.
Open Challenges Ahead#
Three key research problems remain unsolved for scaling these mechanisms across diverse systems: matching trace records without centralized request IDs, linking outcomes across asynchronous workflows, and determining whether an intervention actually caused a change in behavior. The authors argue that treating the connection between sessions and final artifacts as essential infrastructure is foundational to understanding and optimizing agent performance at scale.

