What is SWE-bench? Verified, Pro and what the scores mean
Wendy Zhang · · 9 min read
Almost every coding-model launch quotes a SWE-bench number. The best published score went from under 2% on the original set in 2023 to around 80% on the Verified subset by early 2026. Reading those numbers well means knowing what a task is, which variant was run, what wrapped the model, and what critics have found about memorization.
SWE-bench is a benchmark that tests whether an AI system can resolve real GitHub issues. Each task gives the system a Python repository at a past commit and an issue description; the system writes a patch, and the task counts as resolved only if hidden tests from the original fix pass in Docker while existing tests keep passing. It was introduced by researchers at Princeton and the University of Chicago in 2023 with 2,294 tasks from 12 repositories, and its variants include Lite, Verified, Multimodal, Multilingual and Scale AI’s SWE-Bench Pro.
What SWE-bench is and where it came from
SWE-bench was introduced in the October 2023 paper “SWE-bench: Can Language Models Resolve Real-World GitHub Issues?” by Carlos E. Jimenez, John Yang and colleagues at Princeton University and the University of Chicago, and presented at ICLR 2024. The idea was to stop testing models on self-contained puzzles and test them on the work software engineers actually do: read an issue, find the relevant code in a large repository, and change it without breaking anything else.
The authors mined merged pull requests from 12 popular Python repositories, kept the ones that resolved an issue and changed tests, and ended up with 2,294 tasks. At publication the best model, Claude 2, resolved 1.96% of them. That gap between “writes good functions” and “fixes real issues” is what made the benchmark matter, and it is why progress on it became a headline metric once coding agents arrived.
How a SWE-bench task is scored
Each task instance is a snapshot of a repository plus the issue that was fixed. The dataset card for Verified lists the fields; the important ones look like this:
instance_id repo_owner__repo_name-PR-number
repo owner/name on GitHub
base_commit the commit before the fix
problem_statement the issue title and body
patch the gold fix from the merged PR (hidden from the model)
test_patch the test changes from the same PR (hidden from the model)
FAIL_TO_PASS tests that fail before the fix and must pass after it
PASS_TO_PASS tests that pass before and must still pass afterThe system under test sees the repository at base_commit and the problem_statement, and nothing from the fix. It produces a patch. The harness then applies that patch in a Docker container (the evaluation moved to a fully containerized harness in June 2024 for reproducibility), adds the hidden test changes, and runs two groups of tests. FAIL_TO_PASS tests failed before the original fix and passed after it, so they check the issue is solved. PASS_TO_PASS tests passed both before and after, so they check nothing else broke. A task is resolved only when the required tests pass; if the patch doesn’t apply, the container fails or the run times out, it counts as an error.
Running it yourself takes a JSONL file with one patch per task and the harness from the MIT-licensed repository. The docs show this command for Lite; swap in princeton-nlp/SWE-bench for the full set:
{"instance_id": "<instance id>", "model_name_or_path": "example-agent", "model_patch": "diff --git a/... b/..."}pip install swebench
python -m swebench.harness.run_evaluation \
--dataset_name princeton-nlp/SWE-bench_Lite \
--predictions_path predictions.jsonl \
--max_workers 8 \
--run_id my_evaluation_runResults land in logs/evaluation/<run_id>/, with a report.json, test output and the applied patch.diff for every instance, which is the place to look when a score seems too good or too bad.
Note what the score rewards: a patch that makes specific tests pass. A fix that solves the issue in a different but valid way can fail a test that checks one particular implementation, and a fix that passes the tests can still be unidiomatic, slow or unmaintainable. The test suite is the whole judge.
SWE-bench variants: Lite, Verified, Multimodal, Multilingual and Pro
“SWE-bench” on a model card can mean any of several datasets, and scores across them are not comparable.
| Variant | Size | What it is | Notes |
|---|---|---|---|
| SWE-bench (Full) | 2,294 tasks, 12 Python repos | The original test set from merged pull requests (2023) | Noisy: includes underspecified issues and unfair tests |
| SWE-bench Lite | 300 tasks | A cheaper subset filtered toward self-contained, single-file fixes | Useful for quick, low-cost runs |
| SWE-bench Verified | 500 tasks | Human-validated subset built with OpenAI (August 2024) | The most quoted score; OpenAI stopped reporting it in February 2026, citing contamination |
| SWE-bench Multimodal | 617 tasks in the paper; v2 has 480 open tasks | JavaScript issues with screenshots and visual bugs in 17 front-end libraries | Tests whether agents handle visual, user-facing software |
| SWE-bench Multilingual | 300 tasks, 42 repos | C, C++, Go, Java, JavaScript, TypeScript, PHP, Ruby and Rust | Checks whether Python-tuned agents generalize |
| SWE-Bench Pro (Scale AI) | 1,865 tasks, 41 repos (642 in the current public set) | Longer tasks; reference fixes average 107 lines across 4 files | Copyleft and private repos to resist contamination |
Lite filters out tasks with images, links, short problem statements, multi-file edits, gold patches over three hunks, or tests that check error messages, then samples 300. Verified came from a different worry: that many original tasks were unfair. OpenAI had 93 experienced Python developers review 1,699 sampled tasks and dropped 68.3% of them for underspecified issues, tests that could reject valid solutions, or other problems, leaving 500. In OpenAI’s August 2024 write-up, GPT-4o resolved 33.2% of Verified with the Agentless scaffold, against 16% on the original set, a reminder that the dataset alone can double a score.
Multimodal (ICLR 2025) moved to 17 JavaScript libraries for interfaces, diagrams, charts and maps, where issues often include screenshots. Systems that did well on Python struggled; the best at publication resolved 12%. A fully open v2 with 480 tasks followed in September 2026. Multilingual adds 300 tasks from 42 repositories in nine languages.
SWE-Bench Pro, from Scale AI (September 2025), targets longer tasks: 1,865 problems from 41 actively maintained repositories, with reference solutions averaging 107.4 lines across 4.1 files. Its public and held-out sets come from repositories under strong copyleft licenses as a legal deterrent to training on them, and a commercial set uses private startup codebases. As of November 2026, Scale’s leaderboard reports results on the public set and a private set, and keeps a held-out set unpublished.
How to read a SWE-bench leaderboard score
A line like “72% on SWE-bench Verified” compresses several choices. Four questions unpack it.
Which dataset?
Full, Lite, Verified, Multimodal, Multilingual and Pro have different difficulty, and Pro’s public and commercial sets differ again. A number without the variant name is not interpretable.
Model or agent?
SWE-bench scores an entire system: the model plus the scaffold that lets it browse files, run commands, retry and choose a patch. The same model can score very differently inside different agents, which is why the official leaderboards include a bash-only view that runs every model in mini-swe-agent, an agent of roughly 100 lines whose only tool is bash. Holding the scaffold fixed makes the model the main variable. Vendor-reported numbers come from the vendor’s own scaffold and settings, which the fine print of a model card or launch post describes.
How many attempts, at what cost?
The harness grades one patch per task. A system that generates many candidates and picks one with its own tests or a verifier is still submitting one patch, but it has spent far more compute to get there than a single-shot run. Leaderboards that report cost per task next to the resolve rate make that trade-off visible.
Is the model remembering the answer?
SWE-bench tasks come from public repositories that are almost certainly in training data. The SWE-Bench Illusion (Liang, Garg and Zilouchian Moghaddam, 2025) tested this directly. Given only the issue text, with no repository structure, state-of-the-art models identified the buggy file path with up to 76% accuracy on SWE-bench, against up to 53% on repositories outside it. Verbatim 5-gram reproduction of functions reached up to 35% on SWE-bench Verified and Full, versus up to 18% on similar benchmarks. The authors argue some of the progress on Verified reflects memorization rather than reasoning.
OpenAI reached a similar conclusion in February 2026. Auditing 138 Verified tasks that o3 did not consistently solve, it found 59.4% had material problems with their tests or descriptions, and that all frontier models it tested could reproduce the original human-written fix or verbatim problem details for some tasks. It noted that reported state of the art had moved only from 74.9% to 80.9% over the previous six months, stopped reporting Verified, and recommended SWE-Bench Pro.
A SWE-bench score measures a whole agent system on one dataset variant: the model, its scaffold, the number of attempts and the compute spent. Verified scores also carry contamination risk, documented by the SWE-Bench Illusion paper (2025) and OpenAI’s February 2026 audit. Compare scores only on the same variant and, where possible, the same scaffold.
None of this makes the benchmark useless. Differences of tens of points between systems on the same variant and scaffold still say something real. Differences of a point or two near the top of Verified say very little.
Using SWE-bench scores to choose a coding agent
For a team picking an agent, public scores are a shortlist, not a decision. Prefer the variant closest to your stack: Multilingual or Pro for Go, TypeScript or Java work, Multimodal for front-end code. Compare entries run with the same scaffold, or compare agents as products if that is what you will actually use, and look at cost per task alongside the resolve rate.
Then borrow SWE-bench’s method on your own code, which no model has seen. Pick ten or twenty recently closed issues whose fixes came with tests. For each, check out the commit before the fix, give the agent the issue text, and run the tests from the real fix against its patch. Read the patches that pass, too: the harness only checks tests, and your reviewers will care about readability, scope and whether the change matches how the codebase does things. A small private benchmark like this answers the question public leaderboards can’t, which is how an agent performs on your repositories.
SWE-bench vs Terminal-Bench
Terminal-Bench, a Stanford and Laude Institute collaboration published at ICLR 2026, asks a different question. Instead of patching a repository to satisfy an issue’s tests, an agent gets a container and a terminal and must finish a task drawn from real workflows: building Linux from source, training a model, reverse engineering a binary. Each task has its own environment, a human-written reference solution and tests that check the final state of the container. The paper’s Terminal-Bench 2.0 set has 89 tasks, and frontier models and agents scored below 65% on it at publication.
The two complement each other. SWE-bench is narrower and closer to everyday pull request work in an existing codebase; Terminal-Bench covers the broader operational skill of getting things done at a command line, including environment setup and tool use that SWE-bench’s harness handles for the agent. A coding agent that scores well on one and poorly on the other is telling you which kind of work to give it.
What SWE-bench does not measure: code review
SWE-bench grades the author. It asks whether a system can produce a patch that passes tests, and says nothing about whether a system can look at someone else’s patch and find what is wrong with it. That second skill matters more as agents write a larger share of the code, because the tests an agent satisfies can be tests it wrote itself.
Review is measured differently. The question is precision (how many reported problems are real) and recall (how many real problems are found) on pull requests with labeled defects. ReviewBench, an open benchmark built by GitHub, does this across 219 real pull requests. In its default view, which counts high-severity findings, HeyDeer has the highest precision on the board; the ReviewBench write-up has the figures and caveats. The agent-written PR benchmark ran two reviewers over 16 pull requests built by eight coding agents, and the Elo evaluation compares single-pass reviewers on real internal pull requests by useful findings rather than comment counts. For running a comparison on your own code, see how to evaluate AI code review.
Reviewing agent-written code with HeyDeer
A coding agent that tops SWE-bench still benefits from a second reader. HeyDeer is an AI code review agent for GitHub pull requests that reviews each push separately from the agent that wrote it and checks every finding against the code before posting it. The AI-generated code review setup lets the agent read the review, fix the findings and push again. Before a pull request exists, heydeer review from the HeyDeer CLI reviews the branch and its uncommitted changes against the default branch.
Sources
- Jimenez et al., SWE-bench: Can Language Models Resolve Real-World GitHub Issues? (ICLR 2024)
- SWE-bench on GitHub (README and news)
- SWE-bench leaderboards
- SWE-bench docs: Evaluation guide
- Hugging Face: princeton-nlp/SWE-bench_Verified dataset card
- SWE-bench Lite
- SWE-bench Multilingual
- OpenAI: Introducing SWE-bench Verified (August 2024)
- OpenAI: Why we no longer evaluate SWE-bench Verified (February 2026)
- Yang et al., SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains? (ICLR 2025)
- Deng et al., SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks? (2025)
- Scale AI: SWE-Bench Pro public leaderboard
- Liang et al., The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reason (2025)
- mini-swe-agent on GitHub
- Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfaces (ICLR 2026)
- Terminal-Bench leaderboard
Frequently asked questions
What is SWE-bench?
SWE-bench is a benchmark of real GitHub issues used to measure how well AI models and coding agents fix bugs and implement changes in existing codebases. A system receives a repository and an issue, produces a patch, and is scored by running the tests from the original fix in Docker. The original 2023 set has 2,294 tasks from 12 Python repositories.
What is SWE-bench Verified?
SWE-bench Verified is a 500-task subset of SWE-bench released with OpenAI in August 2024. 93 Python developers reviewed 1,699 sampled tasks and removed those with underspecified issues or tests that could reject valid solutions. In February 2026 OpenAI stopped reporting Verified scores, citing test flaws and training-data contamination, and recommended SWE-Bench Pro.
What is the difference between SWE-bench and Terminal-Bench?
SWE-bench and Terminal-Bench test different skills. SWE-bench asks an agent to patch a repository so an issue’s hidden tests pass. Terminal-Bench gives an agent a container and a terminal and asks it to complete varied command-line tasks, such as building software from source, training a model or reverse engineering a binary, each checked by its own tests.
Is SWE-bench open source?
SWE-bench is open source: the evaluation harness is MIT-licensed on GitHub, and the Full, Lite, Verified, Multimodal and Multilingual datasets are public on Hugging Face. SWE-Bench Pro publishes a public set (642 tasks in its current Hugging Face release, 731 in v1), while its held-out and commercial sets stay private to limit contamination.
What is SWE-Bench Pro?
SWE-Bench Pro is a harder coding-agent benchmark from Scale AI with 1,865 tasks from 41 repositories in Python, Go, JavaScript and TypeScript. Its reference fixes average about 107 lines across 4 files. To resist contamination it draws public tasks from copyleft-licensed repositories and keeps a commercial set of private startup codebases.
Is SWE-bench contaminated?
SWE-bench has documented contamination risk because its tasks come from public repositories that models are trained on. The SWE-Bench Illusion paper found models could name the buggy file from the issue text alone with up to 76% accuracy on SWE-bench, against up to 53% on other repositories, and OpenAI reported in 2026 that frontier models could reproduce gold fixes for some Verified tasks.
Does a high SWE-bench score mean a model is good at code review?
A high SWE-bench score shows a system can produce patches that pass a task’s tests, which is a different skill from code review. Review means finding real problems in someone else’s change without flagging non-problems, and it is measured by precision and recall on labeled pull requests, as in ReviewBench.



