Source: https://cognition.ai/blog/frontier-code

For End Users

If you use AI coding tools like Cursor, Copilot, or Devin, you already know the feeling. The AI writes code that looks right. The tests pass. You merge it. Then a senior engineer flags it in review because it touched files it shouldn't have, wrote tests that don't actually test anything, or ignored the project's style conventions.

FrontierCode is a new benchmark built around that exact gap. It does not ask "does the code work?" It asks "would a maintainer actually merge this PR?" That distinction matters more than most people realize.

METR researchers found in March 2026 that roughly half of the patches that pass SWE-Bench would get rejected by real maintainers. The code runs. The tests go green. But a human reviewer would say no. Wrong scope. Bad style. Fragile tests. Missing error handling. The benchmark said yes. The team said no.

For developers relying on AI tools, this means the leaderboard scores you see advertised (SWE-Bench, HumanEval) overstate how useful those tools actually are in practice. A model that scores 70% on SWE-Bench might produce code you still have to rewrite half the time.

FrontierCode gives you a more honest signal. On its hardest subset, Diamond, even the best model scores 13.4%. On the Main set of 100 tasks, Claude Fable 5 leads at 48.8%. That is not a typo. The best AI coding agent in the world produces a mergeable PR less than half the time on challenging real-world tasks.

This should recalibrate expectations. AI coding tools are powerful. They accelerate work. But they are not yet at the point where you can trust their output to pass code review without careful human oversight. FrontierCode makes that gap visible and measurable for the first time.

The practical takeaway: when you evaluate an AI coding tool, look for FrontierCode scores alongside SWE-Bench scores. If a vendor only quotes SWE-Bench numbers, ask why. The FrontierCode score tells you how much rework you will actually do after the AI submits its PR.

For Engineers and Researchers

FrontierCode evaluates code across six dimensions, not just one:

  • Behavioral correctness: Does the patch solve the problem?
  • Regression safety: Does it break existing functionality?
  • Mechanical cleanliness: Does it pass build, lint, and style checks?
  • Test correctness: Do the agent's tests actually capture the intended behavior?
  • Scope: Does the patch touch only what it needs to?
  • Code quality: Does the code follow project conventions and remain readable?

Each criterion is classified as either a blocker or a non-blocker. Blockers are hard stops, the things a maintainer would reject outright. If any blocker fails, the solution gets a score of zero regardless of other dimensions. Non-blockers are quality signals that contribute to the weighted aggregate score.

This binary pass/fail at the blocker level, combined with a continuous score for non-blockers, is a significant methodological improvement over SWE-Bench's single pass/fail based on unit tests.

Three novel grading methods distinguish FrontierCode from previous benchmarks:

Reverse-classical tests verify that agent-written tests are meaningful by running them against the original (broken) codebase. If the tests pass on broken code, they are not testing anything useful. This is a deterministic, automated check for test quality that SWE-Bench completely ignores.

Code scope checks enforce that patches stay within boundaries. They combine three constraint types: file-level (allow/deny/must-delete), size-level (line count, net growth, file count limits), and semantic-level (LLM-based checks verifying the locality of a change within a file). This catches the common agent failure mode of over-editing, refactoring unrelated code, or adding unnecessary files.

Adaptive classical grading uses a tool called mutagent to handle the open-ended nature of real coding tasks. Static unit tests are too rigid for solutions with valid variations in function names, error messages, or implementation approach. Mutagent uses an LLM to surgically patch the test environment to align with the agent's implementation, then runs deterministic tests. This reduces false negatives without sacrificing rigor.

The benchmark was built with maintainers from 36 open-source repositories, including Celery (28.6k stars), Budibase (28k stars), Uppy (30.8k stars), and Mattermost (37k stars). Each maintainer invested over 40 hours per task. Every task was manually reviewed by a Cognition researcher.

FrontierCode reports 81% fewer misclassification errors than SWE-Bench Pro. Misclassification includes false positives (wrong code that passes) and false negatives (correct code that fails due to overly rigid tests). This directly addresses the METR finding that half of SWE-Bench-passing PRs are unmergeable.

The benchmark comes in three nested subsets of increasing difficulty: Extended (150 tasks), Main (100 hardest), and Diamond (50 hardest). Models are run 5 times at each available reasoning effort, with scores averaged across trials and reported at the best-performing reasoning level.

Current scores on Main: Claude Fable 5 at 48.8%, Claude Opus 4.8 at 37.3%, GPT-5.5 at 28.2%. On Diamond, Opus 4.8 scores 13.4%, GPT-5.5 scores 6.3%, Gemini 3.1 Pro scores 4.7%. The gap between frontier and open-source models is severe: Kimi K2.6, the best open-source entry, manages 16% on Main and 3.8% on Diamond.

The prompts are deliberately concise, roughly one-third the length of SWE-Bench Pro's. They include a task description plus codebase guidelines (similar to AGENTS.md), expecting the agent to infer intent from context the way a human contributor would.

GPT-5.5 uses up to 4x fewer tokens than Opus 4.8, achieving a better cost-intelligence tradeoff despite lower absolute scores. This is a data point worth tracking for production deployments where token cost matters.

The Skeptical Take

Cognition AI sells Devin, a coding agent that competes directly with every model evaluated on FrontierCode. The company built the benchmark, defined the rubrics, hired the maintainers, and ran the evaluations. When the company that sells the leading agent also defines what "mergeable" means and controls the scoring pipeline, the benchmark measures workflow fit more than intelligence. The top score of 48.8% on Main means most AI-generated PRs still need human rewriting. That is honest, but it also means the benchmark is nowhere near saturated, giving Cognition plenty of room to publish improved Devin scores over time. The 81% lower false positive rate claim compares against SWE-Bench Pro, not against an independent reproduction of FrontierCode itself. Open-source maintainers built the tasks, but Cognition researchers did the final review. The grading methods (adaptive classical, scope checks, LLM-based code quality scoring) introduce their own subjective judgment into what is supposed to be an objective benchmark. A benchmark from the vendor is better than no benchmark, but an independent benchmark would be better still.

Word count: 1,014

Written at: 2026-06-16T06:14:00Z