TL;DR
Today’s AI coding agents are remarkably good at fixing bugs—provided a human first notices the failure, diagnoses it, and hands them a neat issue report. SWE-sweep flips the script by dropping agents into massive, real-world codebases with zero hints and asking them to autonomously hunt down and fix as many bugs as possible. Even the best frontier models find and resolve fewer than 5% of these hidden defects, revealing a massive chasm between an AI tool that follows tickets and an autonomous software maintainer.
What Problem Does This Paper Address?
If you have kept an eye on AI benchmarks lately, you might get the impression that software engineering is nearly "solved." On popular benchmarks like SWE-bench, coding agents routinely crush real-world GitHub issues.
There is a catch, though: those benchmarks do the hardest part of the job for the AI. Waiting for a human to encounter a failure, isolate the symptoms, and write up a bug report means the problem is already framed. True autonomous maintenance requires an agent to figure out what is broken before deciding how to fix it. Unlike traditional security fuzzers that just look for obvious program crashes, real maintenance requires reading a repository's documentation, types, and existing tests to infer intended behavior—distinguishing genuine logical flaws from quirky-but-intentional features. Prior to this work, we had no way to measure how well AI handles unguided, repository-scale bug discovery and repair.
Methods
To build an unguided debugging testbed without fabricating synthetic bugs, the authors mine real software history. Similar to SWE-bench, they scrape GitHub for merged pull requests (PRs) paired with closed issues and unit tests. However, instead of creating one isolated task per bug, they reconstruct a single "buggiest commit" per repository where dozens of bugs coexist simultaneously.
Here is how the pipeline works:
- Time-traveling for bugs: Using the SZZ algorithm—a classic software engineering heuristic that runs
git blameon lines modified by a bug-fix PR to see when those lines were last touched—the authors estimate each bug's "lifetime" (from creation to merge). Overlapping these timelines reveals the historical commit with the highest concentration of concurrent bugs. - Patch rebasing: Because fixes made months later rarely apply cleanly to an older base commit, an LM rebases the ground-truth patches and hidden PR tests onto that starting commit, verifying that the tests fail before the fix and pass afterward.
- Filtering for "discoverability": It isn't fair to grade an agent on a bug that relies on secret external context. Three frontier LMs independently audit every candidate (requiring unanimous agreement) to ensure the expected behavior can be inferred purely from the repository’s docs, types, or mathematical semantics. Human reviewers audited a sample and agreed with the LMs 98% of the time.
During evaluation, agents run inside a terminal harness (mini-SWE-agent) for up to 1,000 steps or 12 hours, submitting one unified patch graded against both the hidden bug-specific tests and the original test suite to catch regressions.
Datasets
The paper introduces SWE-sweep (no training datasets are used). It features 4,068 bugs across 100 open-source repositories spanning 22 programming languages—including heavyweights like numpy, pandas, opencv, duckdb, and lean4. Repositories range from 6,000 to 1.9 million lines of code, containing anywhere from 4 to 239 concurrent bugs (40.7 on average). Unlike SWE-bench (one specified issue per run) or recent proactive benchmarks that point agents to specific defective files, SWE-sweep provides zero fault-localization hints across entire codebases.
Key Insights and Ideas
- Discovery, not repair, is the true bottleneck: When the authors run an ablation giving the top model the original GitHub issue descriptions, its solve rate skyrockets from 4.8% to 75.3% (on a 20-repo subset). Simply handing over the buggy filenames doubles performance, and providing line ranges doubles it again. Today's models know how to code; they just don't know where to look or what to question.
- Looking right at a bug isn't enough to see it: Agents spend most of their trajectories reading code and routinely walk right past defects without recognizing them. By step 140, the top model reads 18.5% of the files containing ground-truth bugs and edits 6.2%, yet resolves all bugs in only 1.7% of them. Furthermore, roughly 72%–83% of the files agents do choose to edit aren't relevant to any known bug.
- Fixing multiple bugs at once causes self-sabotage: Juggling dozens of fixes in one long trajectory is treacherous. Across evaluated runs, 42 trajectories accidentally broke a bug they had already fixed earlier in the session, and 19 runs finished with a worse score than their own mid-run peak.
Key Results
Evaluating 7 frontier models across 10 configurations shows that SWE-sweep is brutally hard:
- Top leaderboard scores: OpenAI's GPT-5.6 Sol (xhigh) takes first place by resolving just 4.7% of all bugs at an average inference cost of $72.30 per repo (~$7,230 total). Luna 5.6 (xhigh) lands second at 2.5% for a much thriftier $2.24 per repo, while Anthropic's Claude Opus 5 (xhigh) resolves 1.3% at $53.63 per repo.
- Scale hurts: For Sol 5.6, resolution rates drop from 13.4% on repositories under 100k lines of code down to 1.2% on codebases exceeding 500k lines.
- Test-time scaling helps, with diminishing returns: On the 5 buggiest repos, chaining 10 sequential Luna 5.6 (xhigh) runs boosts bug recovery from 1.6% to 3.5%, while taking the union of 10 independent runs reaches 4.1%.
Limitations and Future Work
Because SWE-sweep relies on historical GitHub issues paired with merged PRs, it inevitably under-counts the true number of bugs in a codebase. If a human never reported a bug—or maintainers never merged a tested fix—it isn't in the benchmark. Consequently, if an agent discovers and fixes a genuine, previously unreported bug in the wild, SWE-sweep won't reward it (though the regression suite ensures it isn't penalized, provided existing tests still pass). Future work will need ways to objectively verify novel bug fixes when no historical ground-truth patch exists.
Summary updated