Mirrorcode Preliminary Results
- Source
- epoch.ai
- Author
- Epoch AI publications
- Date

Context
MirrorCode, a benchmark Epoch AI co-developed with METR, gives early evidence that AI agents can finish some coding tasks that would take a human engineer weeks, as long as the target is precisely specified and automatically checkable (epoch.ai). Each task asks an to rebuild an existing command-line program so that it produces exactly the same output. The agent can run the original program as a black box and read its documentation, but it never sees the source code and has no internet access, so it has to design the whole program itself. Grading uses hundreds to thousands of end-to-end tests, some held back as near-duplicates of visible ones so that hard-coding answers would fail.
The headline case is gotree, a bioinformatics toolkit of about 16,000 lines of Go with 40-plus commands for parsing and manipulating evolutionary trees. Running fully autonomously, Anthropic's Claude Opus 4.6 passed 2,000 of 2,001 tests when rebuilding it in Python, using 280 million tokens. Four researchers and engineers estimated the same job would take a skilled human without AI 2 to 17 weeks. Earlier Opus generations show how recent this is: on the same task the best of three runs scored 15% for Opus 4, 24% for Opus 4.1 and 63% for Opus 4.5. The authors say older models often submitted early, and the older two picked a tree data structure poorly suited to the problem. The largest program tested, the roughly 61,000-line Pkl configuration language, was not solved within a one-billion- (about $550), though scores were still rising when the run ended.
These are preliminary results, limited to Claude models, with a follow-up release covering more programs and models; the authors say other models looked comparable or weaker in early testing. They flag two caveats that shape how far the result reaches. An existing program is an unusually exact specification, which is not how most software gets built, and they say this setup is the likely reason time horizons on MirrorCode look much longer than in other domains; for comparison, they cite METR's estimate of roughly 12 hours for Opus 4.6 on bug-fixing and research-engineering tasks. They also cannot fully rule out that models had seen these public codebases in training: they screened out a program that models could partly reproduce from memory, and the retained programs scored close to a baseline of code the models could not have seen.
- In MirrorCode's preliminary results, Claude Opus 4.6 autonomously reimplemented gotree, a bioinformatics toolkit of about 16,000 lines of Go with 40+ commands, a task the authors guess would take an unassisted engineer 2-17 weeks.
- Agents get execute-only access to the original CLI program and visible tests but no source code, and end-to-end tests check for exactly matching outputs, with no human steering during runs.
- The authors argue common SWE benchmarks measure short tasks: only about 100 of Pro's 731 tasks involve diffs over 100 lines.
- The benchmark, co-developed with METR, spans 20+ target programs from Unix utilities to interpreters and compression; results so far show continued gains from scaling on larger projects.
- AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
- token budget — A cap on how many tokens a task, session, or agent run may consume — the practical control on both cost and how long an agent will grind.
- SWE-bench — The standard benchmark for AI coding agents: real GitHub issues from real repositories, scored by whether the agent's patch passes the project's own tests.
- inference — Running a trained model to get answers — the phase where AI is actually used, as opposed to trained.
Checking sign-in…
Loading comments…






