mlsanityData to 7 Oct 2026

TrajAudit: Automated Failure Diagnosis for Agentic Coding Systems

arXiv 2605.26563 ↗First posted 26 May 2026cs.SEcited by 11

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

  1. 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?17 Nov
  2. 2025Who is Introducing the Failure? Automatically Attributing Failures of Multi-Agent Systems via Spectrum Analysis17 Sep
  3. 2025AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?3 Sep
  4. 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories23 Jun
  5. 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents26 May
  6. 2025TRAIL: Trace Reasoning and Agentic Issue Localization13 May
  7. 2025CompileAgent: Automated Real-World Repo-Level Compilation with Tool-Integrated LLM-based Agent System7 May
  8. 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr
  9. 2025Interactive Debugging and Steering of Multi-Agent AI Systems3 Mar
  10. 2024AgentOps: Enabling Observability of LLM Agents8 Nov
  11. 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep
  12. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
3 more
  1. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  3. 2023ChatDev: Communicative Agents for Software Development16 Jul

Other references · 27

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  5. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
  6. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  7. 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,348
  8. 2023GAIA: a benchmark for General AI Assistantscited by 1,084
  9. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  10. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  11. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  12. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
15 more
  1. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
  2. 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
  3. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  4. 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 134
  5. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  6. 2017Autonomous Agents Modelling Other Agents: A Comprehensive Survey and Open Problemscited by 126
  7. 2024LLM Multi-Agent Systems: Challenges and Open Problemscited by 119
  8. 2021LogBERT: Log Anomaly Detection via BERTcited by 114
  9. 2023A Survey of Learning-based Automated Program Repaircited by 55
  10. 2023L2MAC: Large Language Model Automatic Computer for Extensive Code Generationcited by 30
  11. 2022Deep Learning for Anomaly Detection in Log Data: A Surveycited by 27
  12. 2025Exploring Autonomous Agents: A Closer Look at Why They Fail When Completing Taskscited by 20
  13. 2024Selective Prompt Anchoring for Code Generationcited by 16
  14. 2025Traceability and Accountability in Role-Specialized Multi-Agent LLM Pipelinescited by 10
  15. 2025EpMAN: Episodic Memory AttentioN for Generalizing to Longer Contextscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 11.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026XAI for Coding Agent Failures: Transforming Raw Execution Traces into Actionable Insights
  2. 2025An Empirical Study on Failures in Automated Issue Solving
  3. 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories
  4. 2026TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectories
  5. 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code
  6. 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectories
  7. 2026AgentDebugX: An Open-Source Toolkit for Failure Observability, Attribution, and Recovery in LLM Agents
  8. 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure