SWE-bench Verified Explained: 2026 Methodology, Tiers, Caveats
The canonical coding-agent benchmark, with the methodology footnotes most coverage omits.
SWE-bench Verified is the canonical benchmark for coding agents as of 2026. Unlike HumanEval (164 toy functions, now saturated) or MBPP (basic Python, also saturated), SWE-bench tests whether an agent can solve real software engineering problems in real codebases. The task is practical and the evaluation is objective: either the failing test passes without breaking anything else, or it does not.
Origin and Construction
SWE-bench was created by Carlos Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan (Princeton University and the University of Chicago), released as a preprint in October 2023 (arXiv:2310.06770) and presented at ICLR 2024. The benchmark draws from 2,294 real GitHub issues across 12 popular Python repositories: Django, SymPy, Astropy, matplotlib, scikit-learn, pytest, requests, Flask, pylint, xarray, sphinx-doc, and seaborn.
Each task is a real bug report or feature request with an associated failing test. The benchmark records the repository state at the time the issue was open, the issue description, and the test that was added to verify the fix. The agent's job is to produce a git diff that makes the test pass without breaking anything already passing.
The repositories were chosen for diversity of domain (web frameworks, scientific computing, image processing, testing tools, documentation) and for having high-quality test suites that make evaluation reliable. All 12 are actively maintained open-source projects used in production.
SWE-bench vs Lite vs Verified
| Version | Tasks | Notes | Status |
|---|---|---|---|
| SWE-bench | 2,294 | Original. Some tasks unsolvable or under-specified. Scores noisy. | Superseded |
| SWE-bench Lite | 300 | Curated subset, lower noise. Used in 2024 papers. Less authoritative than Verified. | Legacy |
| SWE-bench Verified | 500 | Human-verified by OpenAI (Aug 2024). Each task confirmed solvable and clear. Canonical. | Use this |
When a paper or model card says “SWE-bench” without specifying which version, ask which. A Lite score and a Verified score are not comparable, even for the same model and harness.
SOTA Progression Timeline
| Date | Frontier Tier | Note |
|---|---|---|
| Oct 2023 | 1.96% (original SWE-bench) | Launch paper: Claude 2 with retrieval, no agent loop (Jimenez et al., arXiv:2310.06770). |
| May 2024 | 12.5% (original SWE-bench) | SWE-agent pass@1 with an agent-computer interface (Yang et al., arXiv:2405.15793). |
| Oct 2024 | 49.0% (Verified) | Upgraded Claude 3.5 Sonnet, up from 33.4% (Anthropic, 22 Oct 2024). |
| Feb 2025 | 63.7% (Verified, 489 tasks) | Claude 3.7 Sonnet on the 489 tasks Anthropic could run; 70.3% with its high-compute scaffold (Anthropic, 24 Feb 2025). |
| May 2025 | 72.7% (Verified) | Claude Sonnet 4; Opus 4 72.5%, both with a two-tool bash and editor scaffold (Anthropic, 22 May 2025). |
| Dec 2025 | 79.2% (Verified) | Top score on the official leaderboard: Sonar Foundation Agent and live-SWE-agent, both on Claude 4.5 Opus. Unchecked submissions; leaderboard read Nov 2026. |
The 2023 and May 2024 rows are on the original 2,294-task SWE-bench and are not directly comparable to Verified. Vendor rows are self-reported with the vendor's own scaffold; the Dec 2025 row is a leaderboard submission. Harness differences move scores by several points.
How It Is Actually Scored
The evaluation harness gives the agent access to a Docker container running the target repository at the exact commit before the fix. The agent has access to the repository files, the issue description, and a test runner. It is not given the failing test directly; it must discover the test, understand the issue, and produce a patch.
Success requires two things simultaneously. First, all fail_to_pass tests (the tests that were failing before the fix) must now pass. Second, all pass_to_pass tests (tests that were already passing) must still pass. This prevents trivially invalid patches; you cannot delete the failing test or disable all tests to score a pass.
The evaluation does not check whether the patch is good code, only whether it passes tests. This is both the benchmark's strength (objective, reproducible) and its limitation: a test suite is not a complete specification of correct behaviour.
Known Limitations
Python only
All 12 repositories are Python. Performance on JavaScript, Go, Rust, or TypeScript codebases is unknown and potentially very different.
Test flakiness
Some tests pass or fail non-deterministically due to timing, resource availability, or randomness. Flaky tests inflate or deflate scores depending on the run.
Contamination risk
These are real public issues. Their solutions exist in the same repository's git history. Any model trained after the issue was closed may have seen the solution.
Production gap
A patch that passes tests is not necessarily production-ready. It might introduce security vulnerabilities, performance regressions, or violate style conventions that tests do not cover.
How to Interpret a SWE-bench Score
Reader Questions
Q.01Is SWE-bench the best coding benchmark?+
Q.02What is the difference between SWE-bench and HumanEval?+
Q.03Can small models do well on SWE-bench Verified?+
Q.04Is SWE-bench gameable?+
Q.05What agentic harness should I compare?+
Sources
- [1] Jimenez et al., SWE-bench · arxiv.org/abs/2310.06770 · 2023
- [2] SWE-bench Verified Leaderboard · swebench.com
- [3] Anthropic, Claude 3.5 Sonnet upgrade (22 Oct 2024), Claude 3.7 Sonnet (24 Feb 2025) and Claude 4 (22 May 2025) announcements · anthropic.com/news/claude-4 · read Nov 2026
- [4] Yang et al., SWE-agent (arXiv:2405.15793) and SWE-smith (arXiv:2504.21798) · arxiv.org/abs/2504.21798
- [5] SWE-agent GitHub · github.com/princeton-nlp/SWE-agent