Benchmarks · Coding & software engineering

SWE-bench

also: SWE-bench Verified, SWE-bench Multilingual

Can a model resolve a real, unseen GitHub issue by editing a codebase so that the project's own hidden tests pass?

Princeton & StanfordReleased 10 October 2023Saturating

SWE-bench asks the question that a coding demo cannot: not whether a model can write plausible code, but whether it can fix a real problem in a real, large codebase that it has never seen. Each task is an actual issue filed against a popular open-source Python project, paired with the pull request that eventually resolved it. The model is handed the whole repository and the issue text, and must produce a patch — the patch counts only if the project’s own test suite, hidden from the model, passes afterwards.

When Princeton and Stanford researchers released it in 2023, the best available system solved under 2% of tasks, and the benchmark looked almost hopeless. What followed became one of the clearest illustrations of how fast agentic coding advanced: Cognition’s Devin cleared 13.86% in early 2024, and by late 2025 frontier models were resolving more than three-quarters of the human-screened “Verified” subset that OpenAI introduced to clean up the original set’s ambiguous tasks.

That progress is also the benchmark’s problem. As scores approached saturation, attention shifted to harder measures — Scale AI’s SWE-bench Pro, built from unseen commercial code, dropped the same top models to around 23% — and researchers cautioned that a passing patch is not the same as a mergeable one: METR found many SWE-bench-passing pull requests would be rejected by human reviewers. Even so, SWE-bench remains the single most-cited yardstick for whether an AI system can do software engineering rather than merely talk about it.

The set

2,294 issue–pull-request pairs drawn from 12 popular Python repositories; a submission is scored only if the repo's real unit tests pass after the model's patch is applied. OpenAI's 2024 'Verified' subset of 500 human-screened tasks became the version everyone reports.

Example

Instance astropy__astropy-12907 from SWE-bench Verified, verbatim: 'Modeling's separability_matrix does not compute separability correctly for nested CompoundModels. Consider the following model: ... If I make the model more complex ... Suddenly the inputs and outputs are no longer separable? This feels like a bug to me, but I might be missing something?' The model gets the full astropy repository and must produce a patch that makes the issue's hidden regression tests pass.huggingface.co

Where it stands

Top models cluster near and above 80% on Verified; harder successors (SWE-bench Pro, SWE-bench Multilingual) now carry the signal, and in early 2026 OpenAI said it would stop reporting on Verified.

How the top score changed hands

  1. October 2023Claude 21.96%Best model at launch — the benchmark was built to be nearly impossible.
  2. March 2024Devin (Cognition)13.86%First agent to clear 10% unassisted, a jump from roughly 2%.
  3. August 2024GPT-4o33.2%On the new human-screened 'Verified' subset OpenAI introduced.
  4. October 2024Claude 3.5 Sonnet49.0%
  5. March 2025Gemini 2.5 Pro63.8%
  6. May 2025Claude Opus 4 / Sonnet 472.5% / 72.7%
  7. September 2025Claude Sonnet 4.577.2%
  8. November 2025Claude Opus 4.5state-of-the-art

Current best: Claude Opus 4.5 — state-of-the-art Most recent SOTA claim from a primary release announcement (Nov 2025); later frontier models report higher but are not yet independently confirmed here.

In the timeline · 40 entries · showing 16 most notable

More coding & software engineering benchmarks