SWE Refactor Bench
Agents migrate 20 whole open-source repositories to a new language, framework, platform, or build system. Graded by migration audit, behavioral tests, and adversarial verifier models.
- Made by
- Einsia
- Released
- August 2026
- Kind
- Building whole projects
- Level
- Research frontier
- Scored
- Checked automatically
- Answers
- Code
- Tasks
- All public
- Strongest model tested
- Claude Opus 5 #10 on the capability index
- Last in a launch post
- October 2026
- Last model added
- October 2026
- Scores refreshed
- November 12th, 2026
In the authors’ words
Modern software systems accumulate technical debt over decades of development, which makes migration expensive and largely manual. As coding agents become increasingly capable at bug fixing, can they autonomously perform such migrations? Existing benchmarks cannot answer this question because they evaluate only behavioural correctness, not whether the migration actually occurred. This leads an easy hack: agents copy the original implementation to make tests pass. We call this Blindness. To address this problem, we introduce SWE Refactor Bench, a benchmark comprising 20 whole-repository migrations, covering 4 kinds of technical debt. A three-stage evaluation protocol measures both migration completeness and behavioural correctness. (1) Migration Audit verifies that the migration occurred. (2) Behavioural Tests measure correctness with a fixed test suite. (3) Agentic Verification uses 6 independent coding agents to generate targeted tests for hidden behavioural differences. Across 520 runs from 8 frontier models and 26 model-effort configurations, only 28 of 520 runs (5.4%) pass all three stages, 13 of the 20 tasks receive no accepted solution, and the best model (claude-opus-5) scores 47.0/100. Migration completeness and behavioural correctness are distinct abilities: a few runs preserve behaviour by skipping the migration and are stopped at Migration Audit; most attempt it and break behaviour, and are stopped at Behavioural Tests. Agents cannot deliver a perfect migration: among the 340 runs that pass Migration Audit, 58% reach 99% of the fixed checks, yet only 26% reach 100%. Agent capability differs across migration categories: agents score 31.4 on build toolchain rewrites but only 5.6 on language rewrites. Together, these findings position SWE Refactor Bench as a rigorous testbed for developing coding agents for reliable whole-repository migrations.
Claude Opus 5 leads with 47% among models released by August 2026
Best score per model from the benchmark's own leaderboard, read on November 12th, 2026. Where a model ran with several settings or harnesses, we keep its best. Every run is in the next chart.
Claude Opus 5 leads with 47%, claims included
Best score per model from every source, including labs’ own numbers and claims Epoch AI collected from reports and papers. Labs pick their own settings, so a claim can beat an independent run of the same model.
The newest model with a score here came out in August 2026, and nobody has tested a newer one. Among the 20 highest-ranked models on the capability index, these have no score yet:
- Claude Fable 5.2
-
Gemini 4 Carbon
- GPT-6 Astra
- Claude Opus 5.5
- and 14 more
- 1 Claude Opus 5 xhigh 47%
- 2 GPT-5.6 Sol max 28.5%
- 3 Kimi K3 19.5%
- 4 Claude Sonnet 5 medium 15%
- 5 GPT-5.6 Luna max 10.5%
- 6
Qwen 3.8 Max 10%
- 7
DeepSeek-V4-Flash 7.00%
- 8 GLM-5.2 6.50%
Source: Official SWE Refactor Bench leaderboard
- 1 Claude Opus 5 xhigh 47%
- 2 GPT-5.6 Sol max 28.5%
- 3
MiniMax-M3.1-Flash 23%
- 4 Kimi K3 19.5%
- 5 Claude Sonnet 5 medium 15%
- 6 GPT-5.6 Luna max 10.5%
- 7
Qwen 3.8 Max 10%
- 8
DeepSeek-V4-Flash 7.00%
- 9 GLM-5.2 6.50%
Sources: Official SWE Refactor Bench leaderboard and labs’ model cards
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Claude Opus 5 | 47% | xhigh, Claude Code | Jul 2026 | Official leaderboard |
| 2 | GPT-5.6 Sol | 28.5% | max, Codex CLI | Jul 2026 | Official leaderboard |
| 3 | Kimi K3 | 19.5% | Claude Code | Jul 2026 | Official leaderboard |
| 4 | Claude Sonnet 5 | 15% | medium, Claude Code | Jun 2026 | Official leaderboard |
| 5 | GPT-5.6 Luna | 10.5% | max, Codex CLI | Jul 2026 | Official leaderboard |
| 6 | | 10% | Claude Code | Aug 2026 | Official leaderboard |
| 7 | | 7.00% | Claude Code | Apr 2026 | Official leaderboard |
| 8 | GLM-5.2 | 6.50% | Claude Code | Jun 2026 | Official leaderboard |
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Claude Opus 5 | 47% | xhigh, Claude Code | Jul 2026 | Official leaderboard |
| 2 | GPT-5.6 Sol | 28.5% | max, Codex CLI | Jul 2026 | Official leaderboard |
| 3 | | 23% | Oct 2026 | Lab model card | |
| 4 | Kimi K3 | 19.5% | Claude Code | Jul 2026 | Official leaderboard |
| 5 | Claude Sonnet 5 | 15% | medium, Claude Code | Jun 2026 | Official leaderboard |
| 6 | GPT-5.6 Luna | 10.5% | max, Codex CLI | Jul 2026 | Official leaderboard |
| 7 | | 10% | Claude Code | Aug 2026 | Official leaderboard |
| 8 | | 7.00% | Claude Code | Apr 2026 | Official leaderboard |
| 9 | GLM-5.2 | 6.50% | Claude Code | Jun 2026 | Official leaderboard |
Labs report scores for 1 model in their cards. Switch the scores above to rank them together.
The best score, 47%, costs $75 a task
Runs on the cost frontier score higher than any run that's cheaper. The costs are the leaderboard's own estimates, so compare them only within this benchmark.
Source: Official SWE Refactor Bench leaderboard
| Model | Effort | Harness | Score | Cost per task | Output tokens |
|---|---|---|---|---|---|
| Claude Opus 5 | xhigh | Claude Code | 47% | $75 | |
| Claude Opus 5 | high | Claude Code | 34.5% | $56 | |
| Claude Opus 5 | Claude Code | 32.3% | |||
| Claude Opus 5 | max | Claude Code | 31% | $72 | |
| GPT-5.6 Sol | max | Codex CLI | 28.5% | $144 | |
| Claude Opus 5 | medium | Claude Code | 28.5% | $38 | |
| Claude Opus 5 | low | Claude Code | 20.5% | $35 | |
| Kimi K3 | Claude Code | 19.5% | |||
| Kimi K3 | max | Claude Code | 19.5% | $29 | |
| GPT-5.6 Sol | high | Codex CLI | 19% | $7.70 | |
| Claude Sonnet 5 | medium | Claude Code | 15% | $12 | |
| GPT-5.6 Sol | Codex CLI | 12.4% | |||
| GPT-5.6 Luna | max | Codex CLI | 10.5% | $2.80 | |
| | Claude Code | 10% | |||
| | max | Claude Code | 10% | $15 | |
| GPT-5.6 Sol | xhigh | Codex CLI | 9.50% | $19 | |
| Claude Sonnet 5 | xhigh | Claude Code | 9.00% | $27 | |
| Claude Sonnet 5 | Claude Code | 8.50% | |||
| Claude Sonnet 5 | max | Claude Code | 8.50% | $28 | |
| | Claude Code | 7.00% | |||
| | max | Claude Code | 7.00% | $4.30 | |
| GPT-5.6 Sol | low | Codex CLI | 7.00% | $5.90 | |
| GLM-5.2 | Claude Code | 6.50% | |||
| GLM-5.2 | max | Claude Code | 6.50% | $18 | |
| GPT-5.6 Sol | medium | Codex CLI | 6.50% | $6.00 | |
| Claude Sonnet 5 | high | Claude Code | 6.00% | $25 | |
| GPT-5.6 Luna | xhigh | Codex CLI | 5.50% | $2.90 | |
| GPT-5.6 Luna | Codex CLI | 4.67% | |||
| Claude Sonnet 5 | low | Claude Code | 4.00% | $4.40 | |
| GPT-5.6 Luna | none | Codex CLI | 4.00% | $1.60 | |
| GPT-5.6 Luna | low | Codex CLI | 4.00% | $1.70 | |
| GPT-5.6 Luna | high | Codex CLI | 4.00% | $1.80 | |
| GPT-5.6 Sol | none | Codex CLI | 4.00% | $2.90 | |
| GPT-5.6 Luna | medium | Codex CLI | 0% | $1.70 |
Number one over time Number one over time
Lab claims count from the day the card came out, independent runs from the model’s release.
Source: Official SWE Refactor Bench leaderboard
Scores over time
All the scores we have, one dot each, so a model tested at several settings appears more than once.
Sources: Official SWE Refactor Bench leaderboard and labs’ model cards
One lab put it in a launch post in the last six months
Launch posts from every lab that has listed it, one tick per post. Tall colored ticks include it, and short gray ones leave it out.
| Date | Launch post | Score | As the post writes it |
|---|---|---|---|
| Oct 19, 2026 | 23 | SWE Refactor Bench |
More in Coding
- SWE-bench Verified In use 500 human-validated GitHub issues from 12 Python repos. Agent writes a patch that must pass hidden tests. Claude Opus 4.7 83.5%
- LiveCodeBench v6 In use Competitive programming problems collected after model cutoffs from LeetCode, AtCoder, Codeforces. Scored pass@1 on hidden tests.
DeepSeek-V4-Pro 93.5%
- SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Fable 5.2 96.6%
- DeepSWE In use 113 original long-horizon engineering tasks across 91 repos and five languages, written from scratch. Hand-written verifiers accept alternative solutions. GPT-6 Astra 74.1%
- SciCode In use Scientist-curated research coding problems split into subproblems across natural sciences. Code checked against test cases.
Seed2.1 Pro 59.8%
- Codeforces rating In use Model solves recent Codeforces contest problems. An Elo-style rating is computed from simulated contest performance.
DeepSeek V4.1 Flash 3,471