New YorkGet in touch

Coding Agents

Cognition SWE-2 posts 92.8 on the Terminal-Bench 2.1 benchmark, 27.3 on Terminal-Bench 4

SWE-2 is a Kimi K3 post-train that tops every model in Cognition's own table on Terminal-Bench 2.1 and drops mean steps per run from 127 to 53 at medium effort, but ships only inside Devin.

Published
September 10, 2026
Read
7 min
Author
Samir Sengupta
Benchmark bars showing SWE-2 at 92.8% on Terminal-Bench 2.1 and 27.3% on Terminal-Bench 4

the short version

  • SWE-2 medium scores higher than SWE-1.7 on FrontierCode 1.1 Main while taking 58% fewer turns and costing 81% less on average, which is the figure that maps onto a harness budget.
  • The 92.8% on Terminal-Bench 2.1 sits next to 27.3% on Terminal-Bench 4, a gap Hacker News commenters read either as benchmaxxing or as evidence that the older suite is saturated.
  • There are no published weights and no per-token API for SWE-2, so the only way to run it today is Devin Desktop, CLI, Web or Fusion.
  • Cognition's cost-penalized RL trains medium, high and max effort levels in one run, tuning each penalty to the local slope of Kimi K3's Pareto frontier.

Cognition released SWE-2 on 10 September 2026. On Terminal-Bench 2.1 it reports 92.8%, the highest figure in its own published comparison table, ahead of Fable 5.1 at 91.4% and GPT-6 Astra at 89.9%. The same table shows 50.0% on FrontierCode 1.1 Main, 73.0% on DeepSWE 1.1 and 27.3% on Terminal-Bench 4. On FrontierCode 1.1 Main, SWE-2 medium scores higher than SWE-1.7 while taking 58% fewer turns and costing 81% less on average. It is available today in Devin Desktop and CLI, with rollout on Devin Web and Fusion; Cognition has published no weights and no per-token API, so there is no documented way to point your own harness at it.

SWE-2 is post-trained from Kimi K3, a 2.8T-parameter mixture-of-experts model with 104B active parameters per token that had already undergone extensive RL for agentic coding. Cognition says its own RL pass adds 5 to 6 points on many benchmarks and shifts K3's entire cost-performance frontier. This is the first time Cognition has scaled RL into the multi-trillion-parameter regime, building on the SWE-1.7 training infrastructure and recipe.

Where SWE-2 lands against Fable 5.1 and Astra

  • FrontierCode 1.1 Main: SWE-2 50.0%, Fable 5.1 50.9%, GPT-6 Astra 53.3%, Grok 4.6 48.0%, GPT-5.6 Sol 47.5%, Kimi K3 44.2%, SWE-1.7 42.0%
  • DeepSWE 1.1: SWE-2 73.0%, GPT-6 Astra 74.1%, GPT-5.6 Sol 72.7%, Kimi K3 68.5%, Grok 4.6 67.5%, Fable 5.1 67.4%, SWE-1.7 37.7%
  • Terminal-Bench 2.1: SWE-2 92.8%, Fable 5.1 91.4%, GPT-6 Astra 89.9%, GPT-5.6 Sol 88.8%, Grok 4.6 88.4%, Kimi K3 88.3%, SWE-1.7 81.5%
  • Terminal-Bench 4: SWE-2 27.3%, GPT-6 Astra 57.9%, Fable 5.1 55.8%, GPT-5.6 Sol 37.3%, Kimi K3 21.5%, Grok 4.6 20.3%, SWE-1.7 7.6%

The framing Cognition chose is cost, not raw score: 50.0% on FrontierCode 1.1 Main is within one point of Fable 5.1 while being 64% cheaper, and within 3.3 points of GPT-6 Astra at a quarter of the cost. Those are ratios against competitors' costs, not a rate card. Cognition publishes no per-token API for SWE-2, so no one outside the company can reconstruct a dollar figure per task from a published price.

SWE-2 medium runs 53 steps, not 127

The usable efficiency claim is a trajectory claim. Mean steps per run on FrontierCode 1.1 Main drop from 127 for SWE-1.7 to 53 for SWE-2 medium, 80 for high and 98 for max, measured over all 100 tasks with three runs per task per model. SWE-2 medium makes its first real edit after a median of 18 steps, against 48 for SWE-1.7. Those steps are grouped by the tools each one calls: explore (read / grep / ls), plan / todo, write / edit code, build (make / lint), run tests, git add / commit, final message.

Cognition attributes the largest efficiency gains to focused exploration: the model judges which parts of the codebase actually matter for a task and begins implementation sooner. The company had previously described SWE-1.7 as exceedingly careful, and reports user feedback that it over-explored and overthought simple tasks. For anyone budgeting an agent loop, the step count is the concrete planning number here, since the cost claim is expressed only as a percentage against SWE-1.7 and competitor models.

Cognition also reports behavioral differences between effort levels: medium steps into action quicker for simple and intermediate tasks, while high and max plan more, explore more of the codebase and manage uncertainty through more complex verification on harder tasks. From internal testing it claims better end-to-end test writing, more willingness to find another route when the obvious path is blocked, and re-deriving conclusions when challenged instead of re-asserting them. In one cited case an MCP integration the model needed was unavailable, so it reconstructed the data from Slack channel history it already had access to. The post reports no measurement for any of these behaviors.

Terminal-Bench 4 is where SWE-2 falls short

The 27.3% on Terminal-Bench 4 is the soft spot, and it is a wide one: Fable 5.1 scores 55.8% and GPT-6 Astra 57.9% on the same suite. Long-horizon agentic work is where the distance to the frontier still sits. Every number in the table is Cognition's own, pending independent replication, and FrontierCode is a Cognition-built benchmark.

Commenters on Hacker News went straight at that delta. One read the spread between the two terminal suites as a generalization test, putting it crudely as how benchmaxxed the model is, and said Terminal-Bench 4 had been released a couple of weeks earlier; another asked why other benchmarks were not shown. One commenter pushed back that the comparison assumes equal difficulty: Terminal-Bench 2.1 is saturated and Terminal-Bench 4 is not, and by that commenter's figures Sol at xhigh effort scores 90% on the old suite against 37% on the new, so the same argument would indict Sol.

  • Commenters on Hacker News circulated a Terminal-Bench 4 list for context: Sonnet 5 12.4%, Luna 17.3%, Grok 4.6 20.3%, Sol 37.3%, GLM 5.3 41.8%, Opus 5 51.8%
  • One commenter noted Qwen 3.8-Flash-Next, which runs locally in under 190GB of RAM, scores 25.3% on Terminal-Bench 4, close to SWE-2's 27.3%
  • Another argued a 2.8T-parameter model is unlikely to reach the capabilities of 10T-parameter models, RL notwithstanding

Can you run it outside Devin's scaffold?

Not as weights, and not as an API. The weights are proprietary and unpublished, so there is nothing to download and no quantization ladder to wait for. Distribution is Devin Desktop and CLI today, with Devin Web and Fusion rolling out. On Hacker News, one commenter said the Devin requirement alone would stop them trying it; a commenter who says they work at Cognition, though not on SWE-2, replied that SWE-2 is free for such users for the next month and that almost all usage should be supported via the Devin CLI.

That still leaves harness builders with a closed surface. If your scaffold is your own loop over an OpenAI-compatible endpoint, the sources describe no path to point it at SWE-2. Two commenters said they would rather use an open-weight model they can serve themselves than add another closed provider, both naming DeepSeek v4.1 Flash, launched the same day, as the alternative they would reach for.

How one RL run produced three effort levels


We apply a linear cost penalty per effort level in a single RL run, with each penalty tuned to the local slope of the base model's Pareto frontier.
Cognition, SWE-2 launch post

The reward is R = S − λ_e C, where S is binary rollout success, C mixes inference cost in USD with rollout time, and λ_e is tuned per effort level to the local slope of the base model's Pareto curve at that point. Cognition argues linearity is forced: only a linear penalty gives the same result whether applied before or after averaging cost. Set λ too high for the high-effort level and the model is rewarded for an unhelpful update where high-effort starts behaving like medium, raising reward without improving the frontier. Cognition contrasts this with Kimi K3's approach of training a separate expert for each combination of domain and effort level, then consolidating the experts through multi-teacher on-policy distillation.

Two supporting pieces matter to anyone doing RL on agent traces. The length-weighted group baseline, in use since SWE-1.6, weights each rollout's reward by its length instead of taking the plain group mean; Cognition reports it reduces gradient variance at no extra cost, stabilizes training and keeps the inference-training KL low. On serving, the stack uses NVFP4 and FP8 kernels with quantization-aware training, with FP8 carrying K, Q, V and score computations in the MLA layers; a draft model retrained with SpecForge gives 15% longer accept lengths, and a prefill delayer lifts TPM per GPU and tokens per second per request by 10 to 20%, with time-to-first-token taking the hit. Cognition reports lower train-inference mismatch than SWE-1.7 at similar throughput despite a base model with almost 3x the parameters. On data, it tripled the number of RL environments, added instruction-following overlays and built a flywheel powered by earlier SWE-2 checkpoints that iteratively hardens its verifiers.

What is still unverified about SWE-2

Three things are unresolved. There is no independent replication of any score in the table, and the headline FrontierCode suite is Cognition's own. There is no published price per million tokens, so the 64% and quarter-of-Astra claims cannot be checked against a bill; the free month on the Devin CLI is the only way to sample real cost, and the sources do not say what the terms are after it. The 27.3% on Terminal-Bench 4 is the reported ceiling on long-horizon work right now, whatever the older suite says, and for a harness the number worth planning against is 53 mean steps at medium effort rather than any of the percentages.

Questions this raises

What did Cognition SWE-2 score on Terminal-Bench 2.1?

SWE-2 reports 92.8% on Terminal-Bench 2.1, the top figure in Cognition's own comparison table. Fable 5.1 follows at 91.4% and GPT-6 Astra at 89.9%. Every number in that table is Cognition's own and awaits independent replication.

Why is SWE-2 so much weaker on Terminal-Bench 4?

SWE-2 scores 27.3% on Terminal-Bench 4 against 55.8% for Fable 5.1 and 57.9% for GPT-6 Astra, so long-horizon agentic work is where the gap to the frontier sits. Hacker News commenters read the spread between the two terminal suites as a generalization test, while others noted Terminal-Bench 2.1 is saturated and Terminal-Bench 4 is not.

Can you run SWE-2 outside Devin?

No. The weights are proprietary and unpublished, and Cognition ships no per-token API, so there is no documented way to point your own harness at it. It is available in Devin Desktop and CLI today, with Devin Web and Fusion rolling out.

These daily notes are drafted by a model I run and operate myself - the same kind of pipeline this site is about - from sources published in the previous 24 hours, and every one lists what it read. The longer essays, the talks and the preprint are mine, written by hand.

More notes

Building something on this?

I ship production LLM, RAG and agentic systems for a living - the infrastructure behind the things these notes are about. Open to roles, contract work and research collaboration.