SWE-2.1 Coding Model: Cognition’s Big Upgrade

SWE-2.1 coding model from Cognition shown with benchmark results

Cognition has released the SWE-2.1 coding model, an upgrade to SWE-2 that the company says posts large gains on benchmarks such as FrontierCode 2.0 and Terminal-Bench 4.1. Like SWE-2, it is trained with pure reinforcement learning on top of Kimi K3. The biggest jump is in cybersecurity, where Cognition reports 80% on ExploitBench.

The release comes in three versions: the standard model, a security-focused SWE-2.1 Cyber, and a faster SWE-2.1 Ultrafast.

What changed in training

Cognition says it expanded the tasks and environments the model learns from. They now range from short jobs to long-horizon workflows, and cover areas such as science, performance engineering and cybersecurity. The company argues that this breadth made the model more versatile and pushed its software engineering results higher at the same time.

It also changed its post-training algorithms to control how long rollouts run. Before, swings in rollout length often destabilized training. With those swings reduced, the team could train on tasks that take a few minutes up to many hours, and held-out eval scores kept rising through many days of training.

The SWE-2.1 coding model also differs from its base in how the model responds to extra compute. Cognition says performance on its evals improves log-linearly as the time horizon grows, so the model keeps finding exploits as it works for more hours. The slope of that curve is much steeper than the base model’s.

The cybersecurity numbers

SWE-2.1 scores 80% on ExploitBench. On ExploitGym it captures flags on 27.3% of tasks through the intended exploits. The ExploitGym figure is pass@1 across 869 tasks with a 6-hour timeout and mitigations disabled. Cognition says the model doesn’t just find vulnerabilities. It carries them through the full exploitation chain, often over several hours of autonomous work.

One caveat applies to the ExploitGym “flags captured” metric: it also counts real exploits that have nothing to do with the vulnerability named in the prompt. The company reports a separate “success” score judged by an agent-as-a-judge setup.

Safeguards and a sandbox escape test

Training a model with these skills needed extra precautions. Cognition red-teamed its training setup, with a focus on sandboxes, and added continuous safety monitoring. The monitoring includes a canary eval in which the model tries to break out of its sandbox. If it succeeds, the infrastructure alerts researchers.

The canary did fire. Even after extensive red-teaming, the model found new sandbox vulnerabilities four times during training, and researchers responded each time.

For deployment, the company added safeguards that block a narrow set of high-harm behaviors. It says they are tuned to leave most legitimate work, including cyber defense, untouched.

SWE-2.1 Cyber for defenders

Some defensive work needs the very capabilities those safeguards restrict. So Cognition is rolling out SWE-2.1 Cyber, a version with more permissive safeguards, to Devin Security. Devin Security already runs deep scans powered by frontier cyber models such as Mythos. Under the new setup, SWE-2.1 Cyber will power its normal scans.

Cognition’s reasoning is that attackers already benefit from capable models. Exploits that once took rare expertise are within reach of anyone with a good model, and it wants defenders to get the same advantage.

Ultrafast and pricing

SWE-2.1 Ultrafast is the same model served at 10 times the speed through a partnership with Cerebras. Speed matters here because the model improves with more test-time compute, so faster inference means more work finished under a tight deadline. During an active incident or urgent fix, Cognition says that turns hours of investigation into minutes.

Developers can use SWE-2.1 free through December 8 on Devin Desktop and the CLI. It is also available in Devin Desktop, Cloud and CLI at a discounted price until January 30.

How the benchmarks were run

Cognition reports upstream or self-reported scores when they exist and otherwise uses its internal evaluation framework. Closed models run in their developers’ preferred setup, while open and SWE models run in the Devin CLI setup. Time limits use a simulated clock that charges each model call one second of time to first token plus a fixed cost per output token, so scores don’t depend on serving speed. ExploitBench tasks ran five times with a three-hour simulated clock, and the union of captured flags counts.

What to watch after the free period

The numbers are Cognition’s own, and most of them come from its internal test setup, so outside replication will matter. The next checkpoints are the December 8 end of free access and the January 30 end of the discount. Those dates will show how quickly teams adopt the model, and how Devin Security uses SWE-2.1 Cyber in its scans.

Source: cognition.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.