Quick answer: SWE-bench is a benchmark that tests AI agents on real GitHub issues — give it a codebase and a bug report, get back a pass/fail based on whether the patch actually fixes the problem. It's the closest thing we have to measuring real-world coding ability, and in March 2026 the best models solve ~81% of verified tasks.
Every time a new AI model drops, the first question from developers is the same: "But can it actually code?"
SWE-bench is how we answer that question. Unlike toy benchmarks that test whether a model can write a FizzBuzz function, SWE-bench throws real bugs from real open-source projects — Django, scikit-learn, matplotlib — at AI agents and checks whether the fix actually passes the project's own test suite.
SWE-bench has become the standard yardstick for AI coding agents. When Anthropic launches a new Claude model, when OpenAI ships a GPT update, when Google releases Gemini — the SWE-bench score is the number that developers look at first. It's the benchmark behind the marketing claims of every vibe coding tool and AI coding agent on the market.
But a single number on a leaderboard doesn't tell you whether a tool will work for your team. This guide explains how SWE-bench actually works, what the scores mean (and don't mean), and how to use benchmark data wisely when evaluating AI coding tools for your workflow.
What Is SWE-bench?
SWE-bench (Software Engineering Benchmark) was created by researchers at Princeton and published at ICLR 2024. It evaluates large language models on their ability to resolve real-world software issues collected from GitHub.
The setup is straightforward:
- Input: The agent receives a GitHub repository snapshot and an issue description (a bug report or feature request)
- Task: The agent must investigate the codebase and produce a patch (code changes) that resolves the issue
- Evaluation: The patch is applied to the repository and the project's test suite runs — if the relevant tests pass, the task is solved
The original dataset contains 2,294 task instances pulled from 12 popular Python open-source projects:
| Repository | Tasks | Domain |
|---|---|---|
| django/django | 850 | Web framework |
| sympy/sympy | 386 | Symbolic math |
| scikit-learn/scikit-learn | 229 | Machine learning |
| sphinx-doc/sphinx | 187 | Documentation |
| matplotlib/matplotlib | 184 | Data visualization |
| pytest-dev/pytest | 119 | Testing framework |
| pydata/xarray | 110 | Data structures |
| astropy/astropy | 95 | Astronomy |
| pylint-dev/pylint | 57 | Code analysis |
| psf/requests | 44 | HTTP client |
| mwaskom/seaborn | 22 | Statistical visualization |
| pallets/flask | 11 | Web framework |
This matters because the tasks aren't synthetic puzzles — they're real bugs that real developers filed and real maintainers fixed. The difficulty ranges from one-line typo fixes to multi-file architectural changes that require deep understanding of the codebase.
The original SWE-bench focuses exclusively on Python repositories. Newer variants like SWE-bench Multilingual and SWE-bench Live expand to C/C++, C#, TypeScript/JavaScript, Go, Rust, and Java — but the Verified leaderboard that everyone cites is still Python-only.
The Three Versions of SWE-bench
Not all SWE-bench scores are created equal. There are three main variants, and confusing them is one of the most common mistakes when comparing models.
The original 2,294 tasks. Includes noisy, ambiguous, and underspecified problems. Rarely used for leaderboard comparisons today because test quality varies widely.
A curated subset of 500 tasks validated by human experts. Ambiguous issues removed, test suites verified. This is the leaderboard everyone references when comparing models.
Created by Scale AI. Uses longer, harder tasks from both open-source and proprietary codebases. Top models score only ~23% — revealing the gap between benchmark performance and real-world capability.
SWE-bench Verified: The Standard Leaderboard
OpenAI introduced SWE-bench Verified in 2024 after identifying three problems with the original benchmark:
- Overly specific tests: Some unit tests rejected correct solutions because they tested implementation details rather than behavior
- Underspecified issues: Many bug reports were ambiguous about what the problem was and how it should be fixed
- Unreliable environments: Development environments sometimes failed to set up correctly, causing false negatives
The Verified subset fixes these by having human annotators review each task for clarity, solvability, and test quality. With 500 carefully curated tasks, it's become the gold standard.
SWE-bench Pro: The Reality Check
While models began saturating SWE-bench Verified (70%+ scores became common), Scale AI launched SWE-bench Pro to test what happens when tasks get harder and longer.
The results are humbling: GPT-5 and Claude Opus 4.1 scored only 23.3% and 23.1% respectively on SWE-bench Pro — models that score 70%+ on Verified. This gap tells us that SWE-bench Verified, while useful, doesn't capture the full difficulty of real software engineering work.
When someone says "Model X scores 80% on SWE-bench," always ask: which version? Verified, Full, Lite, or Pro? And which scaffold? The same model can score 80% on Verified and 23% on Pro. Context matters.
How the Evaluation Works (Step by Step)
Understanding the evaluation pipeline helps you interpret scores correctly. Here's what happens for each task:
Step 1: Environment Setup
A Docker container is spun up with the repository at the exact commit before the fix was applied. Dependencies are installed based on the project's spec. No network access is allowed — the agent can't cheat by fetching the answer.
Step 2: Issue Presentation
The agent receives two things:
- The full repository (read access to every file)
- The issue description (the bug report text from GitHub)
It does not receive the test that will be used to evaluate its fix, the original fix from the human developer, or hints about which files are involved.
Step 3: Agent Execution
The agent investigates the codebase using whatever tools its scaffold provides — file reading, search, code execution. It reasons about the problem and produces a patch (a diff of code changes).
Step 4: Patch Application and Testing
The agent's patch is applied to the repository. The project's test suite runs. If the tests that are relevant to the fixed issue pass (and tests that were already passing continue to pass), the task is marked as resolved.
This is binary — pass or fail. There's no partial credit for getting close.
The Leaderboard: Where Models Stand in March 2026
The SWE-bench Verified leaderboard moves fast. Here's where the top models stand as of March 2026:
| Model | SWE-bench Verified | Scaffold | Note |
|---|---|---|---|
| Claude Opus 4.5 | 80.9% | Anthropic internal | Current #1 |
| Claude Opus 4.6 | 80.8% | Anthropic internal | Near-identical to 4.5 |
| Gemini 3.1 Pro | 80.6% | Google internal | Strongest reasoning scores |
| MiniMax M2.5 | 80.2% | MiniMax internal | Surprise contender |
| GPT-5.2 | 80.0% | OpenAI internal | Strong all-around |
| Claude Sonnet 4.6 | 79.6% | Anthropic internal | Best cost/performance |
| GLM-5 | 77.8% | Zhipu internal | Top Chinese model |
For context, here's how far we've come:
- 2024 (SWE-agent v1): 12.47% — the first agentic system
- Early 2025: ~50% — rapid progress with better scaffolds
- Late 2025: 70%+ — Claude Opus 4.5 + Live-SWE-agent hit 79.2%
- March 2026: ~81% — the leaderboard has compressed to within 1–2 points at the top
The clustering at the top is significant. When five different models from four different companies all score between 79% and 81%, it suggests we're hitting a ceiling — either of the benchmark or of current techniques.
Research from Morph Labs showed that swapping models changed SWE-bench scores by ~1%, but swapping the agent harness (scaffold) changed them by 22%. The infrastructure around the model — how it searches code, plans fixes, and validates patches — matters enormously. When comparing models, look for scores on the same scaffold (like mini-SWE-agent v2) for fair comparisons.
Why SWE-bench Scores Can Be Misleading
SWE-bench is the best benchmark we have for AI coding agents. It's also flawed. Understanding the limitations helps you avoid making bad decisions based on a leaderboard number.
Problem 1: Data Contamination
Every task in SWE-bench comes from a public GitHub repository. The issues, the discussions, and the actual fixes are all publicly available. If a model was trained on data that includes these repositories (and most frontier models were), it may have memorized patterns or even specific fixes.
SWE-rebench addresses this by filtering issues created after each model's training cutoff date, but for the standard Verified leaderboard, contamination remains a concern.
Problem 2: Passing Tests ≠ Correct Fix
SWE-bench evaluates patches by running tests. But tests don't catch everything:
- A patch might pass by mocking data or bypassing the real logic
- A fix might be superficially correct but introduce subtle regressions that aren't covered by existing tests
- Some valid approaches get rejected because the test was too specific about implementation details
Problem 3: The Scaffold Problem
As mentioned above, the scaffold — the agent harness that wraps around the model — has a massive impact on scores. When OpenAI reports a score using their optimized internal scaffold and Anthropic reports using theirs, you're not really comparing models. You're comparing model-plus-scaffold systems.
The Epoch AI team and the official SWE-bench leaderboard now offer standardized scaffold comparisons (like mini-SWE-agent v2), but many marketing claims still use proprietary scaffolds.
Problem 4: Narrow Task Distribution
SWE-bench tests one specific skill: fixing bugs in existing Python codebases. It doesn't measure:
- Building new features from scratch
- Code review quality (understanding someone else's intent)
- Refactoring large codebases
- Multi-language projects
- Architecture decisions and system design
- Team collaboration — working alongside other developers and agents
A model that scores 81% on SWE-bench might still struggle to build a feature your team actually needs. The benchmark measures one important dimension of coding ability, not the whole picture.
Beyond SWE-bench: The Benchmark Landscape
SWE-bench sits within a broader ecosystem of coding benchmarks, each measuring different capabilities:
| Benchmark | What It Measures | Format | Status in 2026 |
|---|---|---|---|
| SWE-bench Verified | Bug fixing in real repos | 500 GitHub issues (Python) | Gold standard, but saturating |
| SWE-bench Pro | Hard, long-horizon SE tasks | Proprietary + open-source | New gold standard emerging |
| HumanEval | Function-level code gen | 164 Python problems | Saturated (93%+), mostly obsolete |
| LiveCodeBench | Competitive programming | Fresh LeetCode/AtCoder/CF | Contamination-resistant, active |
| SWE-rebench | Decontaminated bug fixing | Post-cutoff issues | Most methodologically sound |
| Terminal-Bench | Agentic terminal coding | Shell-based coding tasks | Tests real tool-use ability |
| WebDev Arena | Full-stack web building | Human preference voting | Practical but subjective |
HumanEval was the original coding benchmark — 164 Python functions with docstrings. Models now score 93%+, making it effectively solved. It's useful for comparing small models but tells you nothing about frontier capabilities.
LiveCodeBench pulls fresh problems from competitive programming platforms (LeetCode, AtCoder, CodeForces) after each model's training cutoff. This makes it contamination-resistant, but it tests algorithmic problem-solving rather than software engineering.
SWE-rebench is arguably the most methodologically rigorous option — it constructs agent-ready benchmarks with explicit contamination controls by filtering issues created after model release dates.
For a holistic view of an AI coding agent's capabilities, you need to look across multiple benchmarks — no single number captures everything.
How to Use Benchmark Data When Choosing Tools
If you're a developer or engineering lead evaluating AI coding tools, here's how to use SWE-bench scores without being misled:
- ✓Compare models on the same scaffold — mini-SWE-agent v2 or Epoch AI's standardized runs
- ✓Check SWE-bench Pro scores too — they reveal which models handle hard problems, not just common patterns
- ✓Look at the trend, not just the latest number — a model improving 5 points per quarter matters more than being 0.5 points ahead today
- ✓Test on your own codebase — SWE-bench tasks are all Python open-source; your stack may be TypeScript, Go, or Rust
- ✓Evaluate the full workflow — bug fixing is one task; code review, feature building, and team integration matter too
The best AI coding tool for your team isn't necessarily the one with the highest SWE-bench score. It's the one that fits into your actual workflow — your repo, your language, your review process, your deployment pipeline.
Tools like Cursor Agent Mode let individual developers ship faster. For teams that need shared context and coordinated AI workflows, platforms like cowork.ink orchestrate multiple agents across your engineering process — code review, planning, documentation — so the whole team benefits, not just whoever has the fanciest IDE plugin.
Before committing to any AI coding tool, run it against 5–10 real issues from your own backlog. A model that scores 80% on SWE-bench but struggles with your specific framework, language, or codebase conventions isn't the right choice. Real-world fit beats benchmark numbers every time.
What's Next for AI Coding Benchmarks
SWE-bench won't be the final word on AI coding evaluation. Several trends are shaping what comes next:
Longer horizons: SWE-bench Pro already pushes toward multi-step, multi-file tasks that take hours instead of minutes. Expect benchmarks that require agents to understand entire codebases, not just localize a bug.
Contamination resistance: SWE-rebench and Live variants use temporal filtering to ensure models can't have memorized the answers. This will become standard.
Multi-language expansion: SWE-bench Live already supports C/C++, TypeScript, Go, Rust, Java, and C#. Python-only benchmarks will lose relevance as AI agents become polyglot.
End-to-end workflows: Future benchmarks will likely test the full development cycle — reading a spec, designing a solution, implementing across files, writing tests, and handling code review feedback. This is closer to what context engineering aims to solve at the architecture level.
Team-oriented evaluation: Current benchmarks test a single agent working alone. Real software engineering is collaborative. Benchmarks that evaluate multi-agent teamwork — one agent writes code while another reviews it — are the natural next step.
Get Started with AI Coding Agents
SWE-bench tells us that AI agents have gone from solving 1.96% of real software bugs (2024) to over 80% (2026). That's a staggering leap — and it means AI coding agents are no longer experimental. They're production tools.
The question isn't whether to use them. It's how to integrate them into your team's workflow effectively.
Try cowork.ink free — set up AI agents for your engineering team in minutes. Shared context, automated code review, and multi-agent orchestration — no prompt engineering required.