TrajAudit: Automated Failure Diagnosis for Agentic Coding Systems
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Agentic systems have been widely studied to automate coding tasks such as bug fixing and feature implementation. As these systems increasingly operate on complex codebases, understanding where and why they fail becomes essential for iterative refinement and operational reliability. Existing automated failure diagnosis approaches leverage textittask execution trajectories, yet they struggle with trajectories produced by repository-level coding agents due to two key properties. First, these trajectories are often long, spanning many execution steps, making it difficult for LLMs to track the causal chain of failure over the execution history. Second, these trajectories are laden with noise, containing substantial low-signal observations such as redundant program structures and verbose code context, which can interfere with LLM reasoning. To address these challenges, we propose textitTrajAudit, an automated failure diagnosis framework specifically for trajectories produced by repository-level coding agents. TrajAudit employs an investigator agent supported by two modules: one reduces failure-irrelevant noisy context through semantic saliency folding, and the other derives preliminary diagnostic guidance from test failure reports as prior knowledge to help LLMs focus on likely failure regions. The investigator agent can further invoke tools to inspect folded content on demand, enabling a focused investigation without losing access to the full trajectory context. We also introduce textitRootSE, a benchmark of 102 real-world instances from repository-level coding tasks, each annotated with the earliest decisive error step and a justification. Experiments on RootSE show that TrajAudit outperforms the strongest baselines by 10.8% and 21.6% in exact failure localization accuracy in the with- and without-reference settings, respectively, demonstrating its effectiveness.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 42 of its 68 references that are in the map. First posted on arXiv 26 May 2026.
Builds on
42 of 68 references.
Closest ancestors · 15
Same direction, newest first
- 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?17 Nov
- 2025Who is Introducing the Failure? Automatically Attributing Failures of Multi-Agent Systems via Spectrum Analysis17 Sep
- 2025AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?3 Sep
- 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents26 May
- 2025TRAIL: Trace Reasoning and Agentic Issue Localization13 May
- 2025CompileAgent: Automated Real-World Repo-Level Compilation with Tool-Integrated LLM-based Agent System7 May
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr
- 2025Interactive Debugging and Steering of Multi-Agent AI Systems3 Mar
- 2024AgentOps: Enabling Observability of LLM Agents8 Nov
- 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
3 more
Other references · 27
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,348
- 2023GAIA: a benchmark for General AI Assistantscited by 1,084
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
15 more
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 134
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2017Autonomous Agents Modelling Other Agents: A Comprehensive Survey and Open Problemscited by 126
- 2024LLM Multi-Agent Systems: Challenges and Open Problemscited by 119
- 2021LogBERT: Log Anomaly Detection via BERTcited by 114
- 2023A Survey of Learning-based Automated Program Repaircited by 55
- 2023L2MAC: Large Language Model Automatic Computer for Extensive Code Generationcited by 30
- 2022Deep Learning for Anomaly Detection in Log Data: A Surveycited by 27
- 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
- 2024Selective Prompt Anchoring for Code Generationcited by 16
- 2025Traceability and Accountability in Role-Specialized Multi-Agent LLM Pipelinescited by 10
- 2025EpMAN: Episodic Memory AttentioN for Generalizing to Longer Contextscited by 4
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 11
- 2026What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agentscited by 5
- 2026LEDGER: Claim-to-Evidence Trace Graphs for Auditing LLM Agentscited by 4
- 2026SearchAuditor: Auditing and Attributing Failures in Long-Horizon Search Agentscited by 1
- 2026LongRCA Bench: Root-Cause Localization in Long-Horizon Agent Trajectoriescited by 1
- 2026The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Taskscited by 1
- 2026Agent System Operations: Categorization, Challenges, and Future Directionscited by 0
- 2026Towards Risk-free AI Agent Deploymentcited by 0
- 2026Between the Commits: Process, Error, and Claim Reliability in a Wholly AI-Authored Codebasecited by 0
- 2026Learning When and How to Intervene: A Hindsight-Distilled Sentinel for Coding Agentscited by 0
- 2026Agent Error Dataset: Scaling 50,000 Error--Diagnosis Pairs for Failure Analysis and Error-Aware Post-Trainingcited by 0
- 2026Agent Error Dataset: Scaling 50,000 Error--Diagnosis Pairs for Failure Analysis and Error-Aware Post-Training30 Sep 2026
- 2026Learning When and How to Intervene: A Hindsight-Distilled Sentinel for Coding Agents30 Sep 2026
- 2026Between the Commits: Process, Error, and Claim Reliability in a Wholly AI-Authored Codebase24 Sep 2026
- 2026LEDGER: Claim-to-Evidence Trace Graphs for Auditing LLM Agents19 Aug 2026
- 2026The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Tasks17 Aug 2026
- 2026Towards Risk-free AI Agent Deployment17 Aug 2026
- 2026LongRCA Bench: Root-Cause Localization in Long-Horizon Agent Trajectories15 Aug 2026
- 2026SearchAuditor: Auditing and Attributing Failures in Long-Horizon Search Agents5 Aug 2026
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories10 Jul 2026
- 2026What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agents7 Jul 2026
- 2026Agent System Operations: Categorization, Challenges, and Future Directions1 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2026XAI for Coding Agent Failures: Transforming Raw Execution Traces into Actionable Insights
- 2025An Empirical Study on Failures in Automated Issue Solving
- 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories
- 2026TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectories
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code
- 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories
- 2026AgentDebugX: An Open-Source Toolkit for Failure Observability, Attribution, and Recovery in LLM Agents
- 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure