# SWE-bench Lite: test-derived failure diagnoses lift five coding agents' fix rates

A tool that compares passing and failing test runs, then adds a short account of where the failure departs to the bug report, helped every agent tested. An open-weight model given that account beat Claude Haiku 4.5 working without it.

- Category: Code
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-11-25
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/swe-bench-lite-test-derived-failure-diagnoses-lift-five-coding-agents-fix-rates

## The study

Improving Repair Agents with Cause-Chain Diagnoses (preprint, not peer reviewed). arXiv 2611.30574. https://arxiv.org/abs/2611.30574

## At a glance

- What it shows: Repair agents, AI tools that try to fix software bugs on their own, fixed far more real bugs when the bug report came with a short, automatically made account of how the failing run differs from working runs. Across five agents, the share fixed rose from about half to about 71% with Claude Haiku 4.5, and from about 31% to 56% with the open model Qwen3.5.
- What it does not show: It does not show the method works when no test already reproduces the bug, or on languages other than Python. It is a preprint, tested only on a public benchmark that the models may have seen in training.
- Why it matters: The gain comes from better input, not a new agent or a bigger model, so it could be added to existing tools. A cheaper open model with the diagnosis did better than a commercial one without it.

## What the study shows

The authors, from CISPA and Humboldt-Universität zu Berlin, built a tool they call FORECAST. It runs a program's failing tests and the passing tests that touch the same code. It records fine detail of each run, such as which conditions held and where values were set and used.

It then picks the observations that best separate the failing runs from the passing ones and lists them in the order they happen. The authors call this list a cause chain. Each item names a file and line and carries a score for how sharply it separates the runs. No language model is used to make it.

The chain is simply appended to the issue text an agent receives. The agent itself is not changed. Any agent that builds its prompts from the issue therefore sees it.

They tested this on all 300 issues of SWE-bench Lite, a standard benchmark of real GitHub bugs in 12 Python projects. Five agents of different designs ran with two models, the commercial Claude Haiku 4.5 and the open-weight Qwen3.5 27B, each with and without the diagnosis. That made 6,000 repair attempts, all judged by the official SWE-bench test harness.

The authors report that every agent fixed significantly more issues with the diagnosis, with both models. Over all agents the share rose from 48.5% to 70.9% with Haiku and from 31.2% to 56.1% with Qwen3.5. Gains per agent ranged from 8 to 45 percentage points. For each issue lost with the diagnosis, agents gained about 11 (Haiku) or 30 (Qwen3.5). Repeated runs kept the gains.

Several checks point to the content of the chain doing the work. Two agents already ran the same developer tests and still gained. Giving one agent the raw failing test output instead recovered only about 40% of the gain. Handing agents the chain from a different bug gave results about equal to no diagnosis. Shuffling the order or keeping only the locations lost most of the gain.

Patches stayed as small as before. Tokens used per fixed issue fell by about 60% with Haiku and 50% with Qwen3.5. Computing a diagnosis took a median of 40 minutes of machine time per issue. This is a preprint and has not been peer reviewed.

## Our reading

In our reading, the striking point is where the gain comes from. Nothing about the agents or models changed. They simply received a more useful bug report, and the effect was larger than the gap between the two models.

The controls are better than usual for this kind of study. The unrelated-diagnosis test rules out the idea that any structured hint helps. The test-output test suggests the gain is not just from seeing the tests. Order mattered, while wording did not, which suggests agents use the sequence of where the run goes wrong.

A practical example: a team whose continuous integration flags a failing test could run this diagnosis overnight, attach it to the ticket, and let an agent attempt the fix in the morning. That fits the study's set-up, where a reproducing test already exists. On readiness, we rate this level III, open source available: the code is public under Apache 2.0, but we found no documented use by a named organisation.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/swe-bench-lite-test-derived-failure-diagnoses-lift-five-coding-agents-fix-rates

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
