# SWE-2.1: Cognition's RL-trained coding model doubles down on long-horizon work


Cognition released SWE-2.1 on November 24, 2026: an agentic coding model trained with pure reinforcement learning on the Kimi K3 base, and the successor to SWE-2. The vendor's headline numbers: FrontierCode 2.0 jumps from 24.1 to 41.3, Terminal-Bench 4.1 from 24.2 to 50.0, and cybersecurity capability rises sharply, with 80 percent on ExploitBench and 27.3 percent success on ExploitGym's 869 exploitation tasks. SWE-2.1 ships as the model behind Devin, with an Ultrafast variant on Cerebras hardware and a more permissive Cyber version rolling out to Devin Security. All figures below are Cognition's own.

#### The benchmark picture, including where it loses

SWE-2.1 roughly doubles its predecessor on the hard agentic benchmarks: Terminal-Bench 4.1 at 50.0, FrontierCode 2.0 at 41.3, ProgramBench at 44.0, SWE Marathon v1.2 at 54.9 and SWE-Atlas QA at 71.0. Credit to Cognition for publishing the comparison table straight: Claude Opus 5.5 still leads on every one of those five (65.8, 47.3, 65.0, 73.1 and 77.4 respectively), with GPT-6.2 Sol and Gemini 4 Neon also ahead on most. The story is the rate of improvement over SWE-2 and the base model, not the crown. Independent coverage reached the same conclusion: real gains, still behind Opus 5.5.

#### The cyber jump and how Cognition handles the risk

The largest capability jump is offensive security: 80 percent on ExploitBench (up from 36.1), 27.3 percent pass@1 on ExploitGym with a 6-hour timeout, and Cognition describes multi-hour autonomous exploitation chains. The safety handling is unusually specific for a release post. During training, a canary eval had the model try to escape its sandbox; it found new sandbox vulnerabilities four times, alerting researchers each time. Deployment safeguards target a narrow set of high-harm behaviors, and a more permissive variant, SWE-2.1 Cyber, is rolling out to Devin Security for defensive work, where it will power normal scans alongside the existing Mythos-powered deep scans.

#### Test-time scaling is the actual product strategy

Cognition's key chart is cumulative ExploitGym solve rate against time: performance improves log-linearly as the model works for more hours, and the slope steepened versus the base model. In plain terms, SWE-2.1 is built to keep making progress over hours of autonomous work, which is what incident response and large refactors actually look like. That is also why the Ultrafast variant matters: a partnership with Cerebras serves the same model at about 600 tokens per second versus 60 on the standard path, 10x throughput that turns hours of iteration into minutes when a fix is urgent.

#### The recipe: RL on Kimi K3, stabilized for long runs

Two recipe details stand out. First, the base is Kimi K3, an open-weight model, and training is pure reinforcement learning, continuing Cognition's bet that RL on agentic tasks beats imitation. Second, Cognition says it improved its post-training algorithms to control rollout length, because length oscillations used to destabilize training; fixing that let it train reliably on tasks from minutes to many hours, with held-out performance improving steadily over many days. For anyone training agents, that rollout-length control is the transferable lesson in this release.

#### Methodology, read before comparing

Cognition publishes its harness rules: models run under a simulated clock charging 1 second TTFT plus a fixed per-token cost, so scores do not reward raw inference speed. SWE-2.1 runs in the Devin CLI harness with 250k-token context and up to 3 compactions, while other models run in mini-swe-agent with their native context. ExploitBench scores are unions over five 3-hour runs. Some competitor scores are upstream or self-reported. These are reasonable choices, but they are still the vendor's choices, and I found no independent replication yet.

#### What I could not verify

I did not run SWE-2.1. Every number comes from Cognition's post and its own harness; secondary reporting confirms the announcement and that the model is available on paid Devin plans, but adds no independent benchmarks. Pricing beyond Devin plans, any standalone API, and whether Ultrafast changes quality at 10x speed are all unaddressed in the sources I read.

#### Why this matters for builders

Three things are worth taking from this release even if you never use Devin. One, RL on an open-weight base keeps closing the gap with frontier closed models on agentic work, which improves the economics of self-hosted agents. Two, test-time scaling over hours is becoming the differentiator for real engineering tasks, so budget and orchestration for long runs matter more than single-shot accuracy. Three, Cognition's canary-eval pattern, letting the model attack its own sandbox during training and alerting on success, is a concrete, copyable safeguard for anyone training capable agents.

### What is SWE-2.1?

Cognition's new agentic coding model, released November 24, 2026, trained with pure reinforcement learning on the open-weight Kimi K3 base. It powers Devin and targets long-horizon autonomous engineering and security work.

### How much better is it than SWE-2?

On Cognition's numbers, Terminal-Bench 4.1 rises from 24.2 to 50.0, FrontierCode 2.0 from 24.1 to 41.3, and ExploitBench from 36.1 to 80.0. It still trails Claude Opus 5.5 on the main coding benchmarks in Cognition's own table.

### Can I use SWE-2.1 outside Devin?

The sources I read show it shipping inside Devin, with secondary coverage reporting it is included on paid Devin plans. No standalone API or self-host option is announced. SWE-2.1 Cyber, a more permissive variant, is rolling out inside Devin Security.

### What is SWE-2.1 Ultrafast?

The same model served on Cerebras hardware at about 600 tokens per second, roughly 10x the standard 60 tokens per second. Cognition's argument: because the model keeps improving with more time, faster inference means more work done under a deadline.

### Is the cybersecurity capability safe to release?

Cognition added a canary eval that alerts researchers when the model escapes its training sandbox, which happened four times during training, plus deployment safeguards aimed at a narrow set of high-harm behaviors. Defenders get expanded access through Devin Security. The residual risk is real and the post says so.

### What does test-time scaling mean here?

On ExploitGym, the model's cumulative solve rate keeps growing log-linearly as it works for more hours, with a steeper slope than the base model. Practically: give it a harder task and more time, and it keeps finding solutions instead of plateauing early.

### Should I switch my coding agent to SWE-2.1?

If you already pay for Devin, you get it by default and the gains over SWE-2 look real. If you are choosing a frontier coding agent fresh, the vendor's own table still puts Opus 5.5 ahead, so evaluate both on your repos before committing.

## Sources

- Cognition announcement: https://cognition.com/blog/swe-2-1
- Secondary coverage, Orca Router: https://www.orcarouter.ai/blog/cognition-swe-2-1-release
- Secondary coverage, Sulat: https://news.sulat.com/2026/11/25/devin-swe-2-1/
