SWE-bench explained: what the scores mean and what they don't
30 Oct 2026 · Rate AI Agent
If you have read an AI coding launch announcement, you have seen a SWE-bench number. It is the most cited benchmark for coding agents, and for good reason. It is also easy to read too much into. Here is how it works.
Where it came from
SWE-bench was published by researchers at Princeton in 2023. Instead of asking a model to write a short function from a description, it gives the model a real GitHub issue from a real open-source project, along with the repository as it was when the issue was filed, and asks for a fix.
The original set has 2,294 tasks drawn from 12 popular Python repositories, each paired with the pull request that actually resolved the issue.
How it is graded
Each task comes with tests taken from the real fix:
- Fail-to-pass tests fail before the fix and must pass after it. They check the issue is solved.
- Pass-to-pass tests already passed and must keep passing. They check nothing else broke.
The model's patch is applied, the tests run, and the task counts as resolved only if both groups pass. The headline score is the percentage of tasks resolved.
Lite and Verified
- SWE-bench Lite is a 300-task subset chosen to be cheaper to run and more self-contained.
- SWE-bench Verified is a 500-task subset released in 2024, after human engineers reviewed tasks and removed ones with unclear issue descriptions or tests that could reject a valid fix. It is the version most announcements quote today.
Always check which version a number refers to. Scores on different versions are not comparable.
What a SWE-bench score doesn't tell you
- Model or agent? Leaderboards mix model releases, research agents and products. A model's score with one scaffold says little about the same model inside a different agent.
- Python only. The original tasks are all Python, so the score says nothing direct about TypeScript, Go or anything else you write.
- Public tasks. The issues and fixes have been on GitHub for years, so they may be in training data. We cover this in a later post on benchmark contamination.
- Cost and time are usually missing. Two agents with the same score can differ several times over in what each fix costs.
- One attempt. Most reported scores are a single run, which hides how consistent an agent is.
How our tests differ
SWE-bench answers “how capable is this system on public Python issues?” We ask a narrower, practical question: “how does this agent, as shipped, do on private tasks under stated conditions, and what does it cost?” So our tasks are private, span Python, TypeScript and Go, run three times each, and report cost and time next to the success score. We publish results per agent version and model, and only rank results produced under the same conditions.
Both are useful. A strong SWE-bench Verified score is good evidence about a model; it is not a measure of the agent you will actually use. Read how we test AI coding agents or the methodology for the details, and the benchmarks page for our task suites.