Benchmark Almanac

SWE Refactor Bench

Claude Opus 5 47% leads since August 2026
Claude Opus 5 47% leads since August 2026
In use

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.

Abstract of SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration? (arXiv:2608.23564, CC0)
8
Models scored on its own leaderboard
1
Launch post lists it, from 1 lab

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:

  1. 1 Claude Opus 5 xhigh 47%
  2. 2 GPT-5.6 Sol max 28.5%
  3. 3 Kimi K3 19.5%
  4. 4 Claude Sonnet 5 medium 15%
  5. 5 GPT-5.6 Luna max 10.5%
  6. 6 Qwen 3.8 Max 10%
  7. 7 DeepSeek-V4-Flash 7.00%
  8. 8 GLM-5.2 6.50%

Source: Official SWE Refactor Bench leaderboard

#ModelScoreSettingDateSource
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 Qwen 3.8 Max 10% Claude Code Aug 2026 Official leaderboard
7 DeepSeek-V4-Flash 7.00% Claude Code Apr 2026 Official leaderboard
8 GLM-5.2 6.50% Claude Code Jun 2026 Official leaderboard
#ModelScoreSettingDateSource
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 MiniMax-M3.1-Flash 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 Qwen 3.8 Max 10% Claude Code Aug 2026 Official leaderboard
8 DeepSeek-V4-Flash 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.

OpenAI Moonshot AI Anthropic Cost frontier One model at each effort level
0% 10% 20% 30% 40% 50% $1.00 $10 $100 $1,000 Cost per task, log scale Claude Opus 5, xhigh Claude Opus 5, high Claude Opus 5, medium Claude Opus 5, low GPT-5.6 Sol, high GPT-5.6 Luna, max GPT-5.6 Luna, none 0% 10% 20% 30% 40% 50% $1.00 $10 $100 $1,000 Cost per task, log scale Claude Opus 5, xhigh Claude Opus 5, high

Source: Official SWE Refactor Bench leaderboard

ModelEffortHarnessScoreCost per taskOutput 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
Qwen 3.8 Max Claude Code 10%
Qwen 3.8 Max 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
DeepSeek-V4-Flash Claude Code 7.00%
DeepSeek-V4-Flash 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.

Anthropic
Own leaderboard Not tested since Aug 2026

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.

On the benchmark’s own leaderboard Reported by the lab in its model card Best so far
0% 20% 40% 60% 80% 100% 2026 Near the ceiling (85%) Claude Opus 5 GPT-5.6 Sol Claude Sonnet 5 DeepSeek-V4-Flash 0% 20% 40% 60% 80% 100% 2026 Near the ceiling (85%) Claude Opus 5 GPT-5.6 Sol

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.

MiniMax
DateLaunch postScoreAs the post writes it
Oct 19, 2026 MiniMax-M3.1-Flash 23 SWE Refactor Bench

More in Coding

All 282 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