[Paper Review] XAI for Coding Agent Failures: Transforming Raw Execution Traces into Actionable Insights
The paper presents a structured XAI pipeline that converts raw coding-agent execution traces into interpretable explanations, visualizations, and actionable fixes, achieving higher accuracy and faster failure comprehension than raw traces or generic LLM explanations.
Large Language Model (LLM)-based coding agents show promise in automating software development tasks, yet they frequently fail in ways that are difficult for developers to understand and debug. While general-purpose LLMs like GPT can provide ad-hoc explanations of failures, raw execution traces remain challenging to interpret even for experienced developers. We present a systematic explainable AI (XAI) approach that transforms raw agent execution traces into structured, human-interpretable explanations. Our method consists of three key components: (1) a domain-specific failure taxonomy derived from analyzing real agent failures, (2) an automatic annotation system that classifies failures using defined annotation schema, (3) a hybrid explanation generator that produces visual execution flows, natural language explanations, and actionable recommendations. Through a user study with 20 participants (10 technical, 10 non-technical), we demonstrate that our approach enables users to identify failure root causes 2.8 times faster and propose correct fixes with 73% higher accuracy compared to raw execution traces. Importantly, our structured approach outperforms ad-hoc state of the art models explanations by providing consistent, domain-specific insights with integrated visualizations. Our work establishes a framework for systematic agent failure analysis, addressing the critical need for interpretable AI systems in software development workflows
Motivation & Objective
- Develop a domain-specific taxonomy of coding agent failures.
- Automate the annotation of failures using a structured scheme.
- Build a hybrid explanation system with visual, textual, and actionable outputs.
- Empirically validate whether structured XAI outperforms raw traces and generic explanations.
Proposed method
- Derive a failure taxonomy from 32 real-world coding agent failures across varied experimental conditions.
- Create an automatic annotation system using GPT-4 with function-calling for structured outputs and confidence scoring.
- Develop an integrated XAI pipeline that generates execution-flow visualizations, natural language explanations, and counterfactual/recommendation analyses.
- Evaluate the approach through a user study (N=20) comparing against raw traces and general-purpose LLM explanations.

Experimental results
Research questions
- RQ1What failure patterns occur in coding agents solving HumanEval tasks?
- RQ2Can automated annotation accurately classify failures into a domain-specific taxonomy?
- RQ3Do structured XAI explanations improve understanding, accuracy of root-cause identification, and quality of fixes compared with raw traces and generic LLM explanations?
- RQ4How do visualizations, explanations, and recommendations affect technical and non-technical users?
Key findings
- Iterative Refinement Failures dominate (56% of 32 failures); exceeded iteration limits without progress is the most common pattern.
- Automatic classifier accuracy: 82.1% (26/32) with higher accuracy (90.5%) on high-confidence predictions and substantial agreement (Cohen’s kappa = 0.76).
- Our XAI system yields faster failure comprehension (2.8x) and higher root-cause accuracy (89% technical, 76% non-technical) vs baselines.
- Technical participants’ root-cause accuracy improved from 42% (raw) to 89% (Our XAI); non-technical improved from 18% (raw) to 76% (Our XAI).
- Fix proposals are rated higher under Our XAI (4.3/5 technical, 3.8/5 non-technical) than baselines.
- Users reported higher confidence with Our XAI (6.1/7 technical, 5.6/7 non-technical).

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.