← all writing
02 · 01 Dec 2026 · 6 MIN READ

Give agents the issue text and they fix 75% of bugs; without it, 4.8%

Hand Sol 5.6 a repository plus the GitHub issue texts for its known bugs and it fixes 75.3% of them. Hand it the same repository with no hints and the instruction to find and fix whatever is broken, and it fixes 4.8%. Same model, same code, same bugs, same hidden tests.

That gap is the core result of SWE-sweep, a new benchmark from Kilian Lieret, Ofir Press, John Yang and colleagues, mostly at Meta FAIR. I think it is the most useful benchmark paper I've read this month, because it measures the thing many of us quietly assume agents can already do: walk into a codebase and maintain it.

Every popular benchmark hands the agent the hard part

SWE-bench and its descendants start from an issue. Someone has already noticed the bug, described the symptom, often pointed at the module. The agent's job is to turn a diagnosis into a patch. That's a real skill, and models are now very good at it.

But the pitch for background agents has drifted. "Point it at the repo overnight and let it clean up" is a workflow people are actually running, with Claude Code in a loop or Codex on a schedule. SWE-sweep tests that pitch directly. Each task is a single commit of a real project where many real bugs coexist, chosen with SZZ-style bug-lifetime estimates so the maximum number of later-fixed bugs are live at once. The agent gets no issue, no location, nothing but "find and fix as many bugs as you can." Each fix is scored against the hidden tests from the PR that eventually fixed it, plus the existing suite to catch regressions.

The scale is serious: 4,068 bugs across 100 repositories and 22 languages, including NumPy, OpenCV and Lean 4. The pipeline started from 704,386 candidate bug fixes and kept 0.6%. A three-model panel had to agree unanimously that each bug is discoverable from the code alone, which threw out roughly 40% of candidates, and four human reviewers accepted 98% of a 50-bug sample.

Discovery, not repair, is where the 95% goes

The headline table is brutal. On mini-SWE-agent with up to 1,000 steps and 12 hours per repository:

A low number on a new benchmark proves little by itself. What makes this paper worth reading is the ablation on 20 repositories (684 bugs), where the authors add information step by step without changing the task. For Sol 5.6:

The line-range rows are the ones that matter. They reveal nothing about the expected behaviour. They only tell the agent where to spend its time. Yet location plus focus alone took Sol from 4.8% to 39.2%, and Luna 5.6 from 2.0% to 31.3%. The authors put it bluntly:

Identifying the bug is the challenging part.

The behaviour data says the same thing from another angle. By action 140, Sol had read 18.5% of the files containing gold fixes but edited only 6.2% of them, and fully resolved bugs in 1.7%. Agents walk straight past the bug. Only 17.3% to 27.9% of the files touched in submitted patches were bug-relevant at all.

More thinking and more harness didn't buy discovery

Two things I expected to help mostly didn't. Opus 5 burned the most output tokens and read an average of 159 files per repository, and still landed mid-table. Native harnesses weren't the fix either: Sol scored 1.6% in the Codex harness against 2.9% in mini-SWE-agent, and Opus scored 1.1% in Claude Code against 1.0% in mini-SWE-agent. Whatever separates finding from fixing, it isn't the product scaffolding we ship today.

Brute force helps, but flattens fast. Ten fresh Luna agents run one after another on the same working tree climbed from 1.6% to 3.5% on the five most bug-dense repos; the union of ten independent runs reached 4.1%. There's also a quieter warning for long unattended runs: 42 trajectories lost a bug they had already fixed, 19 runs ended below their own best checkpoint, and a median of 25% to 38% of actions came after the last real gain. A sweeping agent that doesn't checkpoint can talk itself back out of good work.

Where I'd push back

The benchmark's definition of a bug is narrow by design: reported, fixed by a merged PR, and shipped with a test. That under-counts the real bugs in any codebase, which the authors acknowledge, and it means an agent can find a genuine defect and get zero credit for it. Hidden tests can also be stricter than the bug requires; a stricter check flagged up to 12.4% of bugs as possibly needing more evidence. And "discoverable from the code alone" was judged by LMs, which may skew toward bugs that look like bugs to models.

None of that rescues the headline, though. Even if the true discovery rate were double, the contrast with 75% given an issue would stand. Difficulty also climbs steeply with size: Sol resolved 13.4% in repos under 100k lines and 1.2% above 500k, which is exactly where most of us would want the help.

Spend your effort on the pointer, not the patch

The practical lesson runs against how many teams are wiring up background agents. If repair is cheap once the agent knows where to look, the leverage is upstream: in whatever produces the pointer.

For an overnight maintenance loop, I'd stop asking one agent to "find and fix bugs" in a large repo. Split it. Use cheap, noisy signals to generate candidate locations first: failing or flaky tests, static analyzer output, recent churn, fuzzers, error logs from production. Then dispatch one fresh sub-agent per candidate with only that pointer in context. The one-run-per-bug rows in this paper are basically an argument for that orchestration pattern: separate runs added no information, yet doubled Sol's score over a single run with the same line ranges.

It also changes how I read agent eval claims. A resolve rate on an issue-driven benchmark tells you about the second half of the job. If a vendor sells autonomous maintenance, the number to ask for looks like SWE-sweep's, not SWE-bench's.

My guess is that the next big jump here won't come from a bigger model reading more files. It'll come from harnesses that treat bug-finding as its own search problem, with tools that produce hypotheses to check, and reserve the frontier model for the part it already does well.


Working on something similar?

Say hello — I read every email.