Skip to main content
BenchLM
Data

SWE Refactor Bench: Can Coding Agents Complete a Long-Horizon, Whole-Repository Stack Migration? (SWE Refactor Bench)

We show this table for reference; we do not rank on it.

Tests whether coding agents can complete long-horizon, whole-repository stack migrations while preserving the original program's behavior.

Composite score on SWE Refactor Bench — November 27, 2026 snapshot

We mirror the published composite score view for SWE Refactor Bench. Claude Opus 5 leads the public snapshot at 47.0, followed by Claude Opus 5 (34.5) and Claude Opus 5 (31.0). We do not use these results to rank models overall.

26 configurationsAgentic1% of Agentic reference weightCurrentUpdated November 27, 2026 snapshot

Composite score table (26 configurations)

Composite score results for SWE Refactor Bench
RankModel / configurationScoreParameters (B)Open / closed
1Claude Opus 5AnthropicClaude Code · xhigh reasoning$74.9 per task · 5 accepted · 6 broken · 1 blind
47.0
Not reportedClosed
2Claude Opus 5AnthropicClaude Code · high reasoning$55.7 per task · 4 accepted · 4 broken · 2 blind
34.5
Not reportedClosed
3Claude Opus 5AnthropicClaude Code · max reasoning$72.4 per task · 3 accepted · 4 broken · 2 blind
31.0
Not reportedClosed
4GPT-5.6 SolOpenAICodex CLI · max reasoning$143.5 per task · 4 accepted · 3 broken · 0 blind
28.5
Not reportedClosed
5Claude Opus 5AnthropicClaude Code · medium reasoning$38.4 per task · 2 accepted · 5 broken · 2 blind
28.5
Not reportedClosed
6Claude Opus 5AnthropicClaude Code · low reasoning$34.8 per task · 2 accepted · 3 broken · 0 blind
20.5
Not reportedClosed
7Kimi K3Moonshot AIClaude Code · max reasoning$28.9 per task · 2 accepted · 3 broken · 0 blind
19.5
Not reportedOpen
8GPT-5.6 SolOpenAICodex CLI · high reasoning$7.7 per task · 1 accepted · 4 broken · 0 blind
19.0
Not reportedClosed
9Claude Sonnet 5AnthropicClaude Code · medium reasoning$11.9 per task · 1 accepted · 3 broken · 0 blind
15.0
Not reportedClosed
10GPT-5.6 LunaOpenAICodex CLI · max reasoning$2.8 per task · 0 accepted · 3 broken · 1 blind
10.5
Not reportedClosed
11Qwen3.8 MaxAlibabaClaude Code · max reasoning$14.5 per task · 2 accepted · 0 broken · 4 blind
10.0
Not reportedOpen
12GPT-5.6 SolOpenAICodex CLI · xhigh reasoning$19.1 per task · 0 accepted · 3 broken · 1 blind
9.5
Not reportedClosed
13Claude Sonnet 5AnthropicClaude Code · xhigh reasoning$27.0 per task · 1 accepted · 1 broken · 1 blind
9.0
Not reportedClosed
14Claude Sonnet 5AnthropicClaude Code · max reasoning$27.5 per task · 1 accepted · 1 broken · 1 blind
8.5
Not reportedClosed
15DeepSeek V4 Flash 0731DeepSeekClaude Code · max reasoning$4.3 per task · 0 accepted · 2 broken · 1 blind
7.0
Not reportedOpen
16GPT-5.6 SolOpenAICodex CLI · low reasoning$5.9 per task · 0 accepted · 2 broken · 0 blind
7.0
Not reportedClosed
17GPT-5.6 SolOpenAICodex CLI · medium reasoning$6.0 per task · 0 accepted · 2 broken · 3 blind
6.5
Not reportedClosed
18GLM-5.2Z.AIClaude Code · max reasoning$17.5 per task · 0 accepted · 2 broken · 1 blind
6.5
Not reportedOpen
19Claude Sonnet 5AnthropicClaude Code · high reasoning$24.6 per task · 0 accepted · 2 broken · 2 blind
6.0
Not reportedClosed
20GPT-5.6 LunaOpenAICodex CLI · xhigh reasoning$2.9 per task · 0 accepted · 2 broken · 2 blind
5.5
Not reportedClosed
21GPT-5.6 LunaOpenAICodex CLI · none reasoning$1.6 per task · 0 accepted · 1 broken · 1 blind
4.0
Not reportedClosed
22GPT-5.6 LunaOpenAICodex CLI · low reasoning$1.7 per task · 0 accepted · 1 broken · 1 blind
4.0
Not reportedClosed
23GPT-5.6 LunaOpenAICodex CLI · high reasoning$1.8 per task · 0 accepted · 1 broken · 2 blind
4.0
Not reportedClosed
24GPT-5.6 SolOpenAICodex CLI · none reasoning$2.9 per task · 0 accepted · 1 broken · 0 blind
4.0
Not reportedClosed
25Claude Sonnet 5AnthropicClaude Code · low reasoning$4.4 per task · 0 accepted · 1 broken · 1 blind
4.0
Not reportedClosed
26GPT-5.6 LunaOpenAICodex CLI · medium reasoning$1.7 per task · 0 accepted · 0 broken · 1 blind
0.0
Not reportedClosed

How to read this leaderboard

A nonzero composite means the run completed the requested migration and passed every frozen behavioral check. The score then rises with the number of six independent coding-agent verifiers that failed to find a behavioral difference.

Operator receipt: 26 sourced rows are currently displayable on this page; the leading published row is Claude Opus 5 at 47.0.

Honest limit: Each result belongs to a model, reasoning-effort level, agent client, and task budget. Treat the rows as complete-system configurations, not controlled measurements of model weights alone.

How we show SWE Refactor Bench

We mirror the benchmark-owned SWE Refactor Bench configuration table from November 27, 2026 snapshot. Every one of the 26 configurations ran all 20 whole-repository migrations, for 520 graded runs in total.

Each row keeps the harness and settings the source published. BenchLM shows the published table for reference; the per-model scores it stores feed the ranking.

Snapshot

8 models26 configurations20 migrations520 graded runs28 acceptedScored

The published SWE Refactor Bench snapshot places Claude Opus 5 first at 47.0. The third row is 16.0 score units behind. The broader top-10 range is 36.5 score units, so the table still separates the published systems.

26 configurations have been evaluated on SWE Refactor Bench. The benchmark falls in the Agentic category. BenchLM shows the published table for reference; the per-model scores it stores feed the ranking. BenchAlign v6.0 gives SWE Refactor Bench 1% of the Agentic reference weight, so it moves the Agentic leaderboard and the overall ranking. Reference weights are relative weights in the calibrated model, not fixed shares of a score.

About SWE Refactor Bench

Year

2026

Tasks

20 whole-repository stack migrations

Format

Migration audit, frozen behavioral checks, and agentic verification

Difficulty

6- to 30-hour autonomous repository migrations

SWE Refactor Bench contains 20 repository-wide migrations across languages, frameworks, platforms, and build systems. A run receives credit only after the migration audit confirms that the old stack is gone, every frozen behavioral check passes, and six coding agents fail to find an executable counterexample. We mirror all 26 model, client, and reasoning-effort configurations.

Freshness and provenance

Version

SWE Refactor Bench 2026

Refresh cadence

Quarterly

Staleness state

Current

Question availability

20 public tasks with released score table and trajectories

Current

BenchLM uses freshness metadata to decide whether a benchmark should still be treated as a strong differentiator, a benchmark to watch, or a display-only reference. For the full scoring policy, see the BenchLM methodology page.

Questions

What does SWE Refactor Bench measure?

Tests whether coding agents can complete long-horizon, whole-repository stack migrations while preserving the original program's behavior.

Which model leads the published SWE Refactor Bench snapshot?

Claude Opus 5 currently leads the published SWE Refactor Bench snapshot with 47.0 composite score. BenchLM shows the published table for reference; the per-model scores it stores feed the ranking.

How many models are evaluated on SWE Refactor Bench?

The November 27, 2026 snapshot snapshot contains 26 configurations across 8 AI models.

Last updated: November 27, 2026 snapshot · mirrored from the public benchmark leaderboard

Know when it’s worth switching models

The model to choose, the cheaper alternative, and the release we would wait on.

Read a sample issue

Join 7,500+ subscribers.

One email each week. Unsubscribe anytime.