The test
MirrorCode
Can it rebuild a whole program just by watching what it does?
The AI gets a real program it can run, but not the program's code. It must write its own copy, in a set language, that acts exactly the same. It may work for days. Then many tests compare its copy's output with the real program's output.

Top 15 on MirrorCode
Longer bar = better result.
- 1Claude Sonnet 5.5Anthropic · max97.8%
- 2Claude Opus 5.5Anthropic · max95.6%
- 3Claude Fable 5.1Anthropic · max93.3%
- 4Claude Opus 5Anthropic · max87.8%
- 5Claude Haiku 5.5Anthropic · max78.9%
- 6GPT-6.1 TerraOpenAI · max76.7%
- 7Claude Fable 5Anthropic · max70.0%
- 8GPT-6.2 AstraOpenAI · max67.8%
- 9Claude Opus 4.8Anthropic · max65.6%
- 10DeepSeek V4.1 FlashDeepSeek · max64.4%
- 11Claude Sonnet 5Anthropic · max63.3%
- 12Gemini 4 NeonGoogle · xhigh61.1%
- 13GPT-6.1 SolOpenAI · max61.1%
- 14GPT-6 AstraOpenAI · max60.0%
- 15Gemini 4 ArgonGoogle · high58.9%
In plain words
- What it really measures
- 25 real programs (Unix tools, data and query tools, biology tools, interpreters, compression and more); 3 kept private. Some are 16,000+ lines. Output must match exactly; some tests are hidden.
- Example question
- “You can run a biology tool with 40 commands for working with family trees of species, but you can't see its code. Rebuild it in Ada so every command prints exactly the same thing, down to the last space.”
- Who should care
- Anyone curious whether AI can take on months-long rewrite jobs, like moving an old program to a new language.
- The catch
- The original programs are open source, so models may have seen their code in training. Top models now pass nearly all tests on the leaderboard version, which uses Go and Ada and huge budgets.
Made by Epoch AI with METR (Tom Adamczewski, David Owen, David Rein). Official page · Scores via Epoch AI Benchmarking Hub · Counts toward writing code
Progress over time
How the best score has improved as new models came out.
All 41 results
| # | Model | Result | Beats current AIs | Tested |
|---|---|---|---|---|
| 1 | Claude Sonnet 5.5Anthropic | 97.8% | 100% | Oct 2026 |
| 2 | Claude Opus 5.5Anthropic | 95.6% | 98% | Oct 2026 |
| 3 | Claude Fable 5.1Anthropic | 93.3% | 95% | Sep 2026 |
| 4 | Claude Opus 5Anthropic | 87.8% | 93% | Oct 2026 |
| 5 | Claude Haiku 5.5Anthropic | 78.9% | 90% | Oct 2026 |
| 6 | GPT-6.1 TerraOpenAI | 76.7% | 88% | Oct 2026 |
| 7 | Claude Fable 5Anthropic | 70.0% | 85% | Oct 2026 |
| 8 | GPT-6.2 AstraOpenAI | 67.8% | 83% | Oct 2026 |
| 9 | Claude Opus 4.8Anthropic | 65.6% | 80% | Oct 2026 |
| 10 | DeepSeek V4.1 FlashDeepSeek | 64.4% | 78% | Oct 2026 |
| 11 | Claude Sonnet 5Anthropic | 63.3% | 75% | Oct 2026 |
| 12 | Gemini 4 NeonGoogle | 61.1% | 71% | Nov 2026 |
| 13 | GPT-6.1 SolOpenAI | 61.1% | 71% | Oct 2026 |
| 14 | GPT-6 AstraOpenAI | 60.0% | 68% | Oct 2026 |
| 15 | Gemini 4 ArgonGoogle | 58.9% | 65% | Oct 2026 |
| 16 | Grok 4.7xAI | 54.4% | 60% | Oct 2026 |
| 17 | Kimi K3Moonshot AI (Kimi) | 54.4% | 60% | Sep 2026 |
| 18 | Muse Spark 1.3Meta | 54.4% | 60% | Oct 2026 |
| 19 | Qwen 3.8 MaxAlibaba (Qwen) | 52.2% | 55% | Oct 2026 |
| 20 | GPT-6 SolOpenAI | 48.9% | 53% | Oct 2026 |
| 21 | Muse WonderMeta | 45.6% | 50% | Oct 2026 |
| 22 | Claude Opus 4.7Anthropic | 43.3% | 46% | Oct 2026 |
| 23 | Kimi K3.1 ProMoonshot AI (Kimi) | 43.3% | 46% | Nov 2026 |
| 24 | Gemini 3.7 FlashGoogle | 41.1% | 40% | Oct 2026 |
| 25 | GPT-5.6 TerraOpenAI | 41.1% | 40% | Oct 2026 |
| 26 | Grok 4.6xAI | 41.1% | 40% | Oct 2026 |
| 27 | Mistral Large 4 PreviewMistral AI | 40.0% | 35% | Nov 2026 |
| 28 | Gemini 3.8 FlashGoogle | 38.9% | 33% | Sep 2026 |
| 29 | GLM-5.2Z.ai (Zhipu) | 36.7% | 30% | Oct 2026 |
| 30 | Claude Opus 4.6Anthropic | 33.3% | 26% | Oct 2026 |
| 31 | DeepSeek V4 Pro 0813DeepSeek | 33.3% | 26% | Oct 2026 |
| 32 | GPT-5.2OpenAI | 32.2% | 21% | Oct 2026 |
| 33 | Grok 4.5xAI | 32.2% | 21% | Oct 2026 |
| 34 | GPT-6 LunaOpenAI | 26.7% | 18% | Oct 2026 |
| 35 | Gemini 3.6 FlashGoogle | 23.3% | 13% | Oct 2026 |
| 36 | GPT-5.4OpenAI | 23.3% | 13% | Oct 2026 |
| 37 | GPT-5.5OpenAI | 23.3% | 13% | Oct 2026 |
| 38 | GPT-5.6 LunaOpenAI | 21.1% | 8% | Oct 2026 |
| 39 | GPT-5.6 SolOpenAI | 20.0% | 5% | Aug 2026 |
| 40 | Gemini 3.1 ProGoogle | 8.9% | 3% | Aug 2026 |
| 41 | GPT-5OpenAI | 4.4% | 0% | Oct 2026 |
Quick answers
What does MirrorCode test?
The AI gets a real program it can run, but not the program's code. It must write its own copy, in a set language, that acts exactly the same. It may work for days. Then many tests compare its copy's output with the real program's output. 25 real programs (Unix tools, data and query tools, biology tools, interpreters, compression and more); 3 kept private. Some are 16,000+ lines. Output must match exactly; some tests are hidden.
Which AI scores highest on MirrorCode?
Claude Sonnet 5.5 from Anthropic leads with 97.8%, then Claude Opus 5.5 (95.6%).
See the details →Is MirrorCode a good test?
The original programs are open source, so models may have seen their code in training. Top models now pass nearly all tests on the leaderboard version, which uses Go and Ada and huge budgets.