FrontierCode

(cognition.ai)

213 points | by streamer45 15 hours ago

17 comments

  • swyx 14 hours ago
    :wave: i was on the team! AMA.

    some headlines

    - 3000 rubrics on code quality. First benchmark to measure: "would this code get actually merged?"

    - 20+ expert open-source maintainer created tasks on their own repos to capture their opinion & taste.

    - total 1000+ hours of real life software maintainer work captured in dataset. ON TOP of that, 40+ hours of real human work to turn that real life work into well validated and structured tasks with rubrics (even more work to turn tasks/prompts from devin-infra-specific to pluggable coding agent)

    - results in 81% lower false positive rate than SWE-Bench Pro

    - High quality bar: many QA stages & each task manually reviewed by Cognition researchers (examples in post)

    Opus 4.8 scores 13% on FrontierCode Diamond.

    one of my goals was also to datamine interesting stuff even on the easy tasks. for example, if you squint you can see the answer to "WTF Happened in late 2025" with coding models: https://x.com/swyx/status/2064081945567580323

    • llama_drama 29 minutes ago
      Does reporting each model at its best performing reasoning effort introduce a best-of-N/multiple-comparisons bias, especially if models have different numbers of effort levels?
    • tedsanders 14 hours ago
      Very cool! So glad to see people building and sharing evals that are better than SWE bench.

      I'm curious - any particular reason you didn't put error bars on the graphs? Seems like it could be helpful when there are only 50 unique problems in the diamond set.

      • swyx 13 hours ago
        *50 unique problems but 20-40 rubrics per problem (something I had to keep reminding people internally who were unimpressed with the N)

        simple answer is our reporting was pass@5. feel like you'd need like 50+ runs to have reasonable confidence intervals, which somehow i dont see other people do, so i also didnt insist on it.

        hoping to work with <prominent third party evals shop> to get this on their infra and evaluated along with whatever the industry standard is.

        • tedsanders 12 hours ago
          Makes sense, thanks. I suppose error bars are tricky if trying to handle problem-to-problem variance, rubric-to-rubric variance, and run-to-run variance all at once.
    • glerk 11 hours ago
      This looks really great, more thoughtful than any benchmark that I've seen until now!

      I'm curious if you're only interested in scoring frontier models or you would accept submission from custom harnesses? I am working on multi-model harnesses and would love to test them against your benchmark. Do you plan on releasing the tasks publicly?

      • swyx 6 hours ago
        > Do you plan on releasing the tasks publicly?

        yep

        • glerk 4 hours ago
          yay! looking forward, and thanks!
    • typs 13 hours ago
      What did you do around cross-harness testing? I don't see anything in the blog post about what harnesses were used in evaluation. SOTA benchmarks have consistently shown that frontier model performance is quite sensitive to what tools are exposed (e.g. str_replace vs. apply_patch) as the labs are RLing on their own harnesses. Did you do testing of the models in a standard setup or in their native harnesses?
      • swyx 13 hours ago
        yes well aware :) numbers shown are on "house" harnesses eg codex with gpt and claude code with opus.

        fwiw we have examples of each model doing better on NON-house harnesses too - speaking jsut for myself i think the "the labs are RLing on their own harnesses" narrative is kinda overstated if you think through wanting to have any meaningful api business (often eg the labs will give guidance on what is prefered and the agent labs can easily match tool contract to that, which is to say, the "home turf advantage" isnt as large as you think it is if you try a little bit)

        • chris_st 12 hours ago
          What "non-house" harnesses have you found to work best?
        • Bolwin 10 hours ago
          What is the "house" harness for minimax? They haven't released any
    • keybored 2 hours ago
      > total 1000+ hours of real life software maintainer work captured in dataset. ON TOP of that, 40+ hours of real human work to turn that real life work into well validated and structured tasks with rubrics (even more work to turn tasks/prompts from devin-infra-specific to pluggable coding agent)

      Heartening. We still haven’t automated making the world worse.

    • great_psy 14 hours ago
      How do you measure quality at scale ? Is there another model that determines if it adheres to codebase standard ?
      • swyx 14 hours ago
        see Beyond Unit Tests and Novel Grading Methods in TFA.

        i think something like ~60% llm as judge rubrics and the rest as described. every rubric validated by maintainer. 3000 rubrics

    • fouc 7 hours ago
      I'm a bit disappointed that Opus 4.6 wasn't in this because the tokenizer changed quite a bit from 4.7 onward. I was so annoyed by 4.7 that I've been forcing 4.6 ever since. I've been annoyed by 4.8 a bit too, so I haven't felt the urge to move on.
    • hanzeweiasa 4 hours ago
      [flagged]
    • blks 5 hours ago
      Meaningless comment filled with buzzwords and marketing numbers.
  • twotwotwo 6 hours ago
    I'm liking the effort to make new, no-longer-saturated benchmarks. I'll also be a bit suspicious if some model aces it -- matching OSS maintainers' taste more often is a plausible improvement in quality but if they nail it every time they've been memorizing.

    Not saying FrontierCode should've done this, but benchmarking the interaction would be interesting. That is, if I get a diff with a blocking problem but writing a comment gets fixed, that's a lot different from if the model has hit a wall. Better, if there's a problem but the model flagged it in a short list of questions or worries to me before or after coding, it can get sorted without taking much of my time. Stick an LLM in the loop instructed to behave like a user or reviewer with some rubric-ish info that wasn't in the prompt. Then, look at how much the pretend user has to do to get to a quality result with a given model, if they can get to one at all.

    You could say 'why worry about interaction? the goal is the model just gets it perfect' but I think that imagined end state just is not a thing: tasks will get bigger but there will still be interaction. Handling comments and asking good clarifying questions when needed are real capabilities. Human SWEs interact plenty and real engineering has a certain density of questions about requirements, taste, and other big vague things.

  • vessenes 13 hours ago
    This looks great. Well reasoned, tons of work put into eval, thanks for building it.

    It strikes me as kind of wild that good evals can drive tens to hundreds of millions of dollars of compute deployment in the wild — there’s something new and collaborative and competitive about the eval / frontier model race that’s quite interesting..

    In this case “shorter actually mergable patches that open source maintainers would accept” feels like a great thing to deliver to the world.

    I didn’t deep dive into good and bad patches, but I wonder if swyx or others on the team have predictions on saturation. Both when, and how useful will it be? That is, do you guys think this test is broad enough as written to get better behavior out of models, and if there is saturation on this test, will we see generalized better patch / coding behavior?

    • swyx 13 hours ago
      thanks - credit to silas, eric, ben, and team for the depth of the evals, and the rest of the research team for doing the transcript reading parties lol

      by nature of being based on open source, frontiercode public will saturate very very quickly. frontiercode main will be >80% in less than a year. hopefully diamond will last a bit longer. we can do annual refreshes, thats not my strategy for staying relevant - what i'm more excited to get funding for is private held out version of frontiercode based on repros of real enterprise customer problems. in an ideal agent lab (https://latent.space/p/agent-labs) you meticulously build up this domain understanding and that is essentially why both model labs and serious customers come to you.

      • vessenes 5 hours ago
        Interesting. So frontiercode-IBM-Diamond is a thing you’d hope to sell the creation of and certification of? And if it’s published then you’d expect model providers to train to forntiercode-IBM-Pro or whatever and publish it so that it would be considered a good model to use inside IBM? (Obviously just a random corporate choice here).
  • tornikeo 51 minutes ago
    YMMW but on my local tasks Opus 4.8 is nowhere near close to gpt 5.5. For the lack of a better word Opus is just soo damn lazy.
  • Topfi 13 hours ago
    Great effort and a bit closer to my private evals than DeepSWE. I greatly appreciate the focus on false negative and positives, along with simply being far more focused on actual, mergeable quality output over plain passing. Could see a lot of others adopt your list of metrics as a basis, they are very well defined and solid coverage of everything one should want out of code provided, not just focused on one or two narrow targets. Will incorporate a lot of these ideas in my own tests and polish some other parts where I somewhat unintentionally already went into a roughly similar direction.
  • nullbio 8 hours ago
    This isn't a fair way to chart this:

    "Each model is run 5 times at every available reasoning effort. For each effort, we average the metric across the 5 trials, then report each model’s score at its best performing reasoning level."

    For example, Anthropic's "medium" might involve 3x the amount of thinking and take 5x as long as OpenAI's idea of "medium". So now you've skewed all the results. It assumes that they're linear and equivalent ranges.

    You should compare apples to apples. Weight them in a way that factors in total task completion time as the measure of "effort", not the arbitrary effort settings provided by the AI company. I don't care what the underlying effort level is, I care which model out of multiple, if running for the same amount of time, completes my task to a more accurate degree. Total token consumption would also be another thing to consider as well, to rule out TPS. But generally, if the goal is ultimate productivity, the main factor is what does it faster. If cost is a concern factor then token count+speed, or token count alone, is the main factor.

    The second chart paints a more clear picture though, GPT 5.5 xhigh gets 44.7% at 21k tokens, and Opus 4.8 max gets 49.9% at 75k tokens. So basically, 4x the amount of tokens from Opus 4.8 resulted in an increase of 5.2%. If you were to loop GPT 5.5 xhigh over the same set of tasks, an extra 4x, would it surpass the 49.9%? That's the real question here. And I'd wager it probably would.

    But the framing of this whole thing makes it sound like Opus has some massive lead. In reality though, it just loops harder and consumes more tokens. Their effort levels are not equivalent.

    Now take this even further, and emulate what Anthropic is likely doing behind the scenes. Running the prompt through multiple prompts and converging on the end result. Give GPT 4 generic skills that cover different aspects of the benchmark in a general way. Run it 4x to get that same token count usage, and use each of those different skills for each one. Now what is the result? I'd wager it blows Opus out of the water.

    The end result is this: Anthropic gives you all of the bloat in a single, slow package. GPT gives you the ability to build your own equivalent harness. I'd much rather have the freedom and flexibility to do it myself.

    Once people actually focus on building strong harnesses around open-source, we'll have models that are competing at the same level as the closed labs. Especially now that we have models like Nemotron 3 Ultra. But it involves a lot of clever approaches, like using small fast models to help with routing and determining what "skills" and prompts to load, using static analysis, local tools and vector databases. Using a pipeline of all of the specialized, fast, small models to handle the various aspects of the specific task in a cooperative tree. The amount of underutilized specialized AI models out there is insane, no one seems to be building harnesses around them. Things like semantic code duplication detection for example. We don't need to be using the big model to do everything, the big model should be the orchestrator of all of the tools and little models.

    This is why the big labs have a lead that no one seems to be able to crack, because they're not just building a model and calling it a day, they utilize all of these other approaches on top of the big model. Now that we have strong open source models, we can start building these things too.

    • ssivark 12 minutes ago
      I don't specifically care about Claude -vs- GPT, but comparing models at different amounts of test time compute is a gaping hole. It also means that any unreasonably-expensive token guzzling white-elephant model can top all the benchmarks and still be useless.

      What we actually have is like a scaling law for test time compute, so it's silly to focus on specific Y values that someone benchmarked (at whatever default X values). Instead, characterize the slope or power of the scaling law, or just plot the damn curve for each model -vs- number of tokens or cost or something!

      Noam Brown also raised this issue recently: https://x.com/polynoamial/status/2064210146558136827

    • lnenad 3 hours ago
      > Total token consumption would also be another thing to consider as well, to rule out TPS.

      There is a chart that compares this in the article.

      > You should compare apples to apples. Weight them in a way that factors in total task completion time as the measure of "effort", not the arbitrary effort settings provided by the AI company. I don't care what the underlying effort level is, I care which model out of multiple, if running for the same amount of time, completes my task to a more accurate degree.

      That's your opinion, my goal is exactly what this benchmark measures, the end result being something I can merge into the codebase based on some configuration setup provided by the lab. I don't run 50 agents in parallel and I am able to use the $100 Anthropic plan just enough that I don't go over the limits.

      Also what is your specific argument into the benchmark findings considering that some problems are solved by Opus and not solved by Codex? Whether one uses more tokens or not is a completely different metric.

    • edg5000 7 hours ago
      Wow, looks like you've found a massive flaw indeed.

      I was skeptical about the results because in my experience both recent GPT and Opus modules are strong. Everything else is B or C tier. This is just artisanal vibe testing though. It's very hard to eval them properly.

  • Magniquick 6 hours ago
    Opus 4.8 low at 8.2% while medium at 5.9% is definitely an interesting result, to say the least.
  • ilaksh 9 hours ago
    Is there anything we can download? Did they test GLM 5.1?
  • singpolyma3 14 hours ago
    Since no one knows or can agree on what "code quality" is and we can't measure it for human output, I'm dubious about measuring it for LLMs
    • kube-system 11 hours ago
      You don't need universal consensus to measure something. There are many good quality measures of code quality.
      • embedding-shape 1 hour ago
        > There are many good quality measures of code quality.

        Besides the traditional and mechanical "less LOC", cyclomatic complexity and similar, which ones are you talking about exactly?

  • 2001zhaozhao 8 hours ago
    You know that it's a honest benchmark when their own model (SWE-1.6) scores terrible on it.
  • epolanski 4 hours ago
    I wish there was a new kind of benchmark that...wasn't focused on prompt-to-complete-task completion, rather on how well a model can act an assistant.

    At my day job, despite all the harnessing and providing extensive documentation and user stories via E2Es, I cannot trust models to deliver quality output. They are unable to, and reviewing 18 files of changes is the kind of work that increases my load and effort.

    And yes, we have already split and optimized our documentation to not overwhelm the context.

    In order to do this, the best flow is planning together, finding edge cases, having review skills, iterating, producing a business logic focused document describing the changes -> iterating to get a code changeset focused document.

    Then I want to review step by step all the edits the model does.

    On average this triplicates the amount of time required for a major change, but significantly improves business logic correctness and code quality, with the major benefit that it will require significantly less maintenance down the line and thus ends up being both a benefit on one side, and to improve harness on the other (more quality code, proper information, better examples for the models in the future).

    The issue is: models are increasingly getting worse at this kind of work. While it is clear that they have better capabilities, the feedback loop has definitely degraded between Opus 4.7 and Opus 4.8, much more than it did between Opus 4.5 and 4.7.

    This is very disappointing to me, as it is crystal clear that models are increasingly reinforced to deliver from prompt to the end result on their own and keep me more and more left out of the loop.

    This has resulted in increasing frustration and makes my work slower, not better.

  • einpoklum 14 hours ago
    > Today’s coding benchmarks have established that models can write correct code.

    I wouldn't say that.

    > But as AI-generated code becomes the dominant path to production

    I really hope that's not the case.

    • zakisaad 13 hours ago
      How do you define "correct" code?
      • newsicanuse 12 hours ago
        The code that gets stuff done instead of beating around the bush making unxpected errors
        • vanuatu 6 hours ago
          i suspect this is highly dependent on what you're working on

          from my experience if you give the models a way to self-verify correctness they succeed basically 100% of the time

  • alex1sa 3 hours ago
    [flagged]
  • bisonbear 9 hours ago
    [flagged]
  • nryoo 7 hours ago
    [flagged]
  • fHr 14 hours ago
    [flagged]