Skip to content
benchtopia
  • Fetching the field guide…

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.

41 models testedNearly maxed outSince Jun 2026

Top 15 on MirrorCode

Longer bar = better result.

  1. 1Claude Sonnet 5.5Anthropic · max97.8%
  2. 2Claude Opus 5.5Anthropic · max95.6%
  3. 3Claude Fable 5.1Anthropic · max93.3%
  4. 4Claude Opus 5Anthropic · max87.8%
  5. 5Claude Haiku 5.5Anthropic · max78.9%
  6. 6GPT-6.1 TerraOpenAI · max76.7%
  7. 7Claude Fable 5Anthropic · max70.0%
  8. 8GPT-6.2 AstraOpenAI · max67.8%
  9. 9Claude Opus 4.8Anthropic · max65.6%
  10. 10DeepSeek V4.1 FlashDeepSeek · max64.4%
  11. 11Claude Sonnet 5Anthropic · max63.3%
  12. 12Gemini 4 NeonGoogle · xhigh61.1%
  13. 13GPT-6.1 SolOpenAI · max61.1%
  14. 14GPT-6 AstraOpenAI · max60.0%
  15. 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.

0%20%40%60%80%100%2026Claude Sonnet 5.5: 97.8%Claude Opus 5.5: 95.6%Claude Fable 5.1: 93.3%Claude Opus 5: 87.8%Claude Haiku 5.5: 78.9%GPT-6.1 Terra: 76.7%Claude Fable 5: 70.0%GPT-6.2 Astra: 67.8%Claude Opus 4.8: 65.6%DeepSeek V4.1 Flash: 64.4%Claude Sonnet 5: 63.3%Gemini 4 Neon: 61.1%GPT-6.1 Sol: 61.1%GPT-6 Astra: 60.0%Gemini 4 Argon: 58.9%Grok 4.7: 54.4%Kimi K3: 54.4%Muse Spark 1.3: 54.4%Qwen 3.8 Max: 52.2%GPT-6 Sol: 48.9%Muse Wonder: 45.6%Claude Opus 4.7: 43.3%Kimi K3.1 Pro: 43.3%Gemini 3.7 Flash: 41.1%GPT-5.6 Terra: 41.1%Grok 4.6: 41.1%Mistral Large 4 Preview: 40.0%Gemini 3.8 Flash: 38.9%GLM-5.2: 36.7%Claude Opus 4.6: 33.3%DeepSeek V4 Pro 0813: 33.3%GPT-5.2: 32.2%Grok 4.5: 32.2%GPT-6 Luna: 26.7%Gemini 3.6 Flash: 23.3%GPT-5.4: 23.3%GPT-5.5: 23.3%GPT-5.6 Luna: 21.1%GPT-5.6 Sol: 20.0%Gemini 3.1 Pro: 8.9%GPT-5: 4.4%GPT-5: 4.4% (new best)GPT-5.2: 32.2% (new best)Claude Opus 4.6: 33.3% (new best)Claude Opus 4.7: 43.3% (new best)Claude Opus 4.8: 65.6% (new best)Claude Fable 5: 70.0% (new best)Claude Opus 5: 87.8% (new best)Claude Fable 5.1: 93.3% (new best)Claude Opus 5.5: 95.6% (new best)Claude Sonnet 5.5: 97.8% (new best)Claude Sonnet 5.5 · 97.8%
Dark dots and line: the best score at each point in time. Light dots: every other model, by release date.

All 41 results

#ModelResult
1Claude Sonnet 5.5Anthropic97.8%
2Claude Opus 5.5Anthropic95.6%
3Claude Fable 5.1Anthropic93.3%
4Claude Opus 5Anthropic87.8%
5Claude Haiku 5.5Anthropic78.9%
6GPT-6.1 TerraOpenAI76.7%
7Claude Fable 5Anthropic70.0%
8GPT-6.2 AstraOpenAI67.8%
9Claude Opus 4.8Anthropic65.6%
10DeepSeek V4.1 FlashDeepSeek64.4%
11Claude Sonnet 5Anthropic63.3%
12Gemini 4 NeonGoogle61.1%
13GPT-6.1 SolOpenAI61.1%
14GPT-6 AstraOpenAI60.0%
15Gemini 4 ArgonGoogle58.9%
16Grok 4.7xAI54.4%
17Kimi K3Moonshot AI (Kimi)54.4%
18Muse Spark 1.3Meta54.4%
19Qwen 3.8 MaxAlibaba (Qwen)52.2%
20GPT-6 SolOpenAI48.9%
21Muse WonderMeta45.6%
22Claude Opus 4.7Anthropic43.3%
23Kimi K3.1 ProMoonshot AI (Kimi)43.3%
24Gemini 3.7 FlashGoogle41.1%
25GPT-5.6 TerraOpenAI41.1%
26Grok 4.6xAI41.1%
27Mistral Large 4 PreviewMistral AI40.0%
28Gemini 3.8 FlashGoogle38.9%
29GLM-5.2Z.ai (Zhipu)36.7%
30Claude Opus 4.6Anthropic33.3%
31DeepSeek V4 Pro 0813DeepSeek33.3%
32GPT-5.2OpenAI32.2%
33Grok 4.5xAI32.2%
34GPT-6 LunaOpenAI26.7%
35Gemini 3.6 FlashGoogle23.3%
36GPT-5.4OpenAI23.3%
37GPT-5.5OpenAI23.3%
38GPT-5.6 LunaOpenAI21.1%
39GPT-5.6 SolOpenAI20.0%
40Gemini 3.1 ProGoogle8.9%
41GPT-5OpenAI4.4%

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.