Researchers at UC Berkeley have built the toughest test yet for AI coding agents — and the best model passed it more than half the time. FrontierCS 2, unveiled this week by the Berkeley AI Research lab, takes 48 published computer science papers, deletes each one’s key contribution from its own code repository, and asks a frontier AI agent to write it back — better than the authors did.

The top performer, Anthropic’s Claude Opus 5.5 running inside Claude Code, passed 28 of the 48 tasks, a 58 percent success rate. Google’s Gemini 4 Carbon and Gemini 4 Argon followed with 26 passes each, Claude Sonnet 5.5 managed 24, and OpenAI’s GPT-6 Astra finished with 22.

Delete the paper, beat the authors

The setup is deliberately brutal. Each task starts from a real paper and the code its authors released. The creators find the code that implements the paper’s contribution, delete it, and leave everything it depends on untouched. The deleted code becomes a private human reference that already runs in the repository on the paper’s own workloads.

The agent gets five hours, no internet access, and one shot at a hidden test suite. A run passes only if its final patch beats the authors’ code on every metric and every held-out workload — not just on average. On one database task, Claude Opus 5.5 posted the top overall score yet still failed on two of 24 test articles.

The 48 tasks span 13 domains across machine learning, databases, cryptography, security and robotics. A private set of more than 100 further tasks will be announced later, to guard against models training on the public ones.

Claude leads, but a third of the test is out of reach

The leaderboard now covers 20 models, and the gap below the top handful is steep: no other model managed more than 11 passes. In the paper’s original 12-agent evaluation, 16 of the 48 tasks went unsolved by every agent tested.

A second scoring system rates patches on a continuous scale rather than pass or fail, and shows how tight the race at the top is: Claude Opus 5.5 scored 51.3, Gemini 4 Carbon 51.0 and Claude Sonnet 5.5 50.7 — a gap the authors say sits within statistical noise.

The wins are concrete, not just numbers. In one cryptography task, an agent reworked a private information retrieval scheme so that two checksums shrank lookups by 27 percent.

What it means for real research

FrontierCS 2 is a deliberately realistic stress test. It mirrors a PhD student’s week: inherit a published codebase, swap out one component, rerun the workloads and check whether you beat the original numbers. The authors say the median task now sits roughly at the strongest agent’s level — the machines are already operating at the level of working researchers on this kind of task, with real headroom above them.

There are limits. The top models cost roughly $17 to $40 per task run, and a full 48-task evaluation of Claude Opus 5.5 runs to about $1,000 in API fees plus $400 of compute time. And the benchmark measures code, not ideas: the agents rebuild known contributions rather than inventing new ones.

Still, the direction is clear. A year ago, benchmarks asked AI to solve isolated puzzles. FrontierCS 2 asks it to do a researcher’s job inside a real codebase — and the best agents are now winning more often than they lose. The paper, led by Berkeley PhD student Qiuyang Mang, is on arXiv, and the benchmark’s code and leaderboard are openly available.