Improving Repair Agents with Cause-Chain Diagnoses
Marius Smytzek, Martin Eberlein, Lars Grunske, Andreas Zeller
Key points
From the paper's conclusion- We evaluate FORECAST on all 300 issues of SWE-bench Lite with five repair agents and two models, the commercial Claude Haiku 4.5 and the open-weight Qwen3.5.
Abstract
Repair agents resolve a growing share of real-world issues. Starting with the same information as a developer reading a bug report, they have to find out how the program fails before actually fixing it. We present FORECAST, which provides repair agents with a diagnosis of the failure. From the executions of passing and failing tests, FORECAST infers a cause chain, a short sequence of execution features, such as conditions or data flow, that explains how the failing runs diverge. FORECAST appends this cause chain to the issue an agent receives. It thus works with any agent that builds its prompts from the issue, without modifying the agent. We evaluate FORECAST on all 300 issues of SWE-bench Lite with five repair agents and two models, the commercial Claude Haiku 4.5 and the open-weight Qwen3.5. With the cause-chain diagnosis, every agent resolves significantly more issues. Over all agents, the share of resolved issues rises from 48.5% to 70.9% for Haiku 4.5 and from 31.2% to 56.1% for Qwen3.5. The open-weight model with the diagnosis thus surpasses the commercial model without it. The gains persist across repeated runs and for agents that already run the tests the diagnosis is derived from.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From Faulty Claims to Incorrect Patches: An Empirical Study of Task-Grounded Reasoning in Coding AgentsarXiv · 2026
- Inquest: Log-Guided Root-Cause Code Localization with a Staged AgentarXiv · 2026
- Agent Error Dataset: Scaling 50,000 Error--Diagnosis Pairs for Failure Analysis and Error-Aware Post-TrainingarXiv · 2026
- Poison Valleys: Diagnosing Path-Dependent Failure in LLM Code RepairarXiv · 2026
- AgentRx: Diagnosing AI Agent Failures from Execution TrajectoriesOpen MIND · 2026
- From Software History to Executable Regression Tasks: A System for Evaluating Software AgentsarXiv · 2026