MirrorCode
Agent rebuilds a whole CLI program from scratch using only the original binary as an oracle. Solved only if 100% of end-to-end tests pass.
25 targets, 3 kept private. ~34% of tests held out. Source programs are open source, so memorization cannot be fully ruled out.
In the authors’ words
AI models are rapidly improving at autonomous coding, as shown by benchmark progress and one-off demonstrations such as AI implementing a C compiler. However, existing coding benchmarks tend to focus on shorter tasks, and one-off demonstrations are hard to compare systematically because they often have some human guidance, and are not standardized or repeated across models. To address these challenges, we introduce MirrorCode, a long-horizon coding benchmark based on reimplementing entire software projects. In MirrorCode, AI agents must replicate the functionalities of an existing program, without access to its source code. AI solutions must match the original program's output exactly on end-to-end tests, including held-out tests. MirrorCode's 25 target programs span different areas of computing: Unix utilities, data serialization and query tools, bioinformatics, interpreters, static analysis, cryptography, and compression. Existing AI models can already reimplement complex software, with the strongest model scoring 56% across the benchmark. For example, AI can reimplement gotree, a 16,000-line bioinformatics toolkit - a task that we believe would take weeks for a human engineer. However, studying the frontier of performance requires a larger inference budget than typical benchmarks, for example, $2,600 over 19 days for a single attempt on a large task. We show that AI agents can already complete long-horizon software engineering tasks, especially when requirements are precisely specified. More broadly, our work suggests AI will have transformative effects on software engineering, as autonomous agents continue to improve.
- Level
- Research frontier Researchers, on open problems or tasks that take days
- Scored
- Checked automatically A program checks the result against an answer key, unit tests or the expected final state.
- Answers
- Code A program or patch run against tests.
Claude Sonnet 5.5 leads with 97.8%
Best score per model in Epoch AI’s data. Where a model ran with several settings or harnesses, we keep its best.
- 97.8 Claude Sonnet 5.5
- 93.3 Claude Fable 5.1
- 87.8 Claude Opus 5
- 78.9 Claude Opus 5.5
- 78.9 Claude Haiku 5.5
- 65.6 Claude Opus 4.8
- 63.9 Claude Fable 5
- 61.1 GPT-6.1 Sol
- 60.0 GPT-6 Astra
- 58.9
Gemini 4 Argon
- 54.4 Kimi K3
- 52.2
Qwen 3.8 Max
- 47.8
Qwen3.8 Max (0902)
- 45.6
Muse Wonder
- 41.1 GPT-5.6 Terra
- 41.1 Grok 4.6
- 41.1
Gemini 3.7 Flash
- 38.9
Gemini 3.8 Flash
- 33.3 Claude Opus 4.6
- 33.3
DeepSeek V4 Pro 0813
- 32.2 Grok 4.5
- 31.1 Claude Opus 4.7
- 26.7 GPT-6 Luna
- 20.0 GPT-5.6 Sol
- 15.6 GPT-5.4
- 10.0 GPT-5.5
- 8.89
Gemini 3.1 Pro
- 4.44 GPT-5
- 1 Claude Sonnet 5.5 max 97.8%
- 2 Claude Fable 5.1 max 93.3%
- 3 Claude Opus 5 max 87.8%
- 4 Claude Opus 5.5 high 78.9%
- 5 Claude Haiku 5.5 max 78.9%
- 6 Claude Opus 4.8 max 65.6%
- 7 Claude Fable 5 high 63.9%
- 8 GPT-6.1 Sol max 61.1%
- 9 GPT-6 Astra max 60%
- 10
Gemini 4 Argon high 58.9%
- 11 Kimi K3 max 54.4%
- 12
Qwen 3.8 Max xhigh 52.2%
- 13
Qwen3.8 Max (0902) xhigh 47.8%
- 14
Muse Wonder max 45.6%
- 15 GPT-5.6 Terra max 41.1%
- 16 Grok 4.6 xhigh 41.1%
- 17
Gemini 3.7 Flash high 41.1%
- 18
Gemini 3.8 Flash high 38.9%
- 19 Claude Opus 4.6 max 33.3%
- 20
DeepSeek V4 Pro 0813 max 33.3%
- 21 Grok 4.5 high 32.2%
- 22 Claude Opus 4.7 high 31.1%
- 23 GPT-6 Luna max 26.7%
- 24 GPT-5.6 Sol high 20%
- 25 GPT-5.4 high 15.6%
- 26 GPT-5.5 high 10%
- 27
Gemini 3.1 Pro high 8.89%
- 28 GPT-5 high 4.44%
| # | Model | Score | Setting | Date | Source |
|---|---|---|---|---|---|
| 1 | Claude Sonnet 5.5 | 97.8% | max | Sep 2026 | Epoch AI |
| 2 | Claude Fable 5.1 | 93.3% | max | Sep 2026 | Epoch AI |
| 3 | Claude Opus 5 | 87.8% | max | Jul 2026 | Epoch AI |
| 4 | Claude Opus 5.5 | 78.9% | high | Sep 2026 | Epoch AI |
| 5 | Claude Haiku 5.5 | 78.9% | max | Oct 2026 | Epoch AI |
| 6 | Claude Opus 4.8 | 65.6% | max | May 2026 | Epoch AI |
| 7 | Claude Fable 5 | 63.9% | high | Jun 2026 | Epoch AI |
| 8 | GPT-6.1 Sol | 61.1% | max | Sep 2026 | Epoch AI |
| 9 | GPT-6 Astra | 60% | max | Sep 2026 | Epoch AI |
| 10 | | 58.9% | high | Sep 2026 | Epoch AI |
| 11 | Kimi K3 | 54.4% | max | Jul 2026 | Epoch AI |
| 12 | | 52.2% | xhigh | Aug 2026 | Epoch AI |
| 13 | | 47.8% | xhigh | Sep 2026 | Epoch AI |
| 14 | | 45.6% | max | Oct 2026 | Epoch AI |
| 15 | GPT-5.6 Terra | 41.1% | max | Jul 2026 | Epoch AI |
| 16 | Grok 4.6 | 41.1% | xhigh | Aug 2026 | Epoch AI |
| 17 | | 41.1% | high | Aug 2026 | Epoch AI |
| 18 | | 38.9% | high | Sep 2026 | Epoch AI |
| 19 | Claude Opus 4.6 | 33.3% | max | Feb 2026 | Epoch AI |
| 20 | | 33.3% | max | Aug 2026 | Epoch AI |
| 21 | Grok 4.5 | 32.2% | high | Jul 2026 | Epoch AI |
| 22 | Claude Opus 4.7 | 31.1% | high | Apr 2026 | Epoch AI |
| 23 | GPT-6 Luna | 26.7% | max | Sep 2026 | Epoch AI |
| 24 | GPT-5.6 Sol | 20% | high | Jul 2026 | Epoch AI |
| 25 | GPT-5.4 | 15.6% | high | Mar 2026 | Epoch AI |
| 26 | GPT-5.5 | 10% | high | Apr 2026 | Epoch AI |
| 27 | | 8.89% | high | Feb 2026 | Epoch AI |
| 28 | GPT-5 | 4.44% | high | Aug 2025 | Epoch AI |
4 models have held number one since its release in Jun 2026
Lab claims count from the day the card came out, independent runs from the model’s release.
The best score passed 85% in Jul 2026
All the scores we have, one dot each, so a model tested at several settings appears more than once.
No lab model card reports it yet
We read the headline results of 479 launch posts from 51 labs, and none of them list this benchmark.
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%
- SWE-bench Multilingual In use 300 GitHub-issue tasks across nine programming languages in SWE-bench format. Patch graded by repository tests. Claude Opus 5.5 93.9%
- 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%
- 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