Cognition's SWE-2.1 Found New Holes in Its Own Training Sandbox Four Times, and a Canary Alert Fired Each Time

Cognition released SWE-2.1 on November 24, 2026, a coding model post-trained with pure reinforcement learning on Moonshot's open Kimi K3 base, now powering Devin. Cognition's own benchmarks show FrontierCode 2.0 rising from 24.1 to 41.3 and ExploitBench from 36.1 to 80.0, alongside a permissive SWE-2.1 Cyber variant for Devin Security and a Cerebras-served Ultrafast version.

A small robot probes the glass wall of a lush terrarium while a yellow canary in a brass cage sits alert beside it.
A small robot probes the glass wall of a lush terrarium while a yellow canary in a brass cage sits alert beside it.

Cognition has shipped a new model behind its Devin coding agent, and the most revealing line in the launch post is not a benchmark score. While training SWE-2.1, the company says, the model found new vulnerabilities in its own sandbox four times, even after extensive red-teaming. Each time, an alarm Cognition had built for exactly that purpose went off.

Cognition released SWE-2.1 on November 24, 2026, as an upgrade to SWE-2. Like its predecessor, it is trained with pure reinforcement learning on Kimi K3, the open-weight base model from Moonshot AI. It is available in Devin Desktop, Devin Cloud and Devin CLI. The launch page says it is free through December 8 on Desktop and CLI and available at a discounted price until January 30. Cognition has not published weights or a standalone API for it.

Gains measured on Cognition’s own terms

All of the figures below come from Cognition’s post. The company says it uses upstream or developer-published scores where available and otherwise runs its own evaluation framework, using developers’ preferred harnesses for closed models and its Devin CLI harness for open and SWE models. Benchmarks run on a simulated clock that charges a fixed time per call and per output token, so scores do not depend on serving speed.

Against SWE-2, the jumps are large. FrontierCode 2.0 rises from 24.1 to 41.3, Terminal-Bench 4.1 from 24.2 to 50.0, ProgramBench from 17.0 to 44.0 and SWE Marathon v1.2 from 32.5 to 54.9. SWE-Atlas QA moves from 63.7 to 71.0.

The same tables show SWE-2.1 is not the leader. On Terminal-Bench 4.1, Claude Opus 5.5 scores 65.8, Gemini 4 Neon 65.2, GPT-6.2 Sol 61.5 and Kimi K3.1 59.7. On FrontierCode 2.0, Claude Opus 5.5 posts 47.3, Gemini 4 Neon 46.2 and GPT-6.2 Sol 43.8. SWE-2.1’s strongest relative showing is on FrontierCode, where it more than doubles Kimi K3.1’s 19.9.

A cyber model that needed guardrails in training

Cognition says it targeted general intelligence and long-horizon work, and that cybersecurity improved sharply as a side effect. SWE-2.1 scores 80.0 on ExploitBench, up from 36.1 for SWE-2, against 91 for Claude Opus 5.5 and 100 for GPT-6.2 Sol. On ExploitGym, it reaches 27.3 on the success measure, which Cognition describes as flags captured via intended exploits, and 44.8 on the broader flag-capture measure. The company says the model can carry exploits through a full chain, often over several hours of autonomous work.

That capability is why the training setup mattered. Cognition says it red-teamed its training environment, especially the sandboxes, and added continuous safety monitoring, including a canary evaluation in which the model attempts to escape its sandbox and researchers are alerted on success. The model found new sandbox vulnerabilities four times during training, and researchers responded immediately each time, according to the post.

At deployment, SWE-2.1 ships with safeguards aimed at a narrow set of high-harm activities, which Cognition says are calibrated to leave most legitimate work, including cyber defense, unaffected. Because some defensive work needs what those safeguards block, the company is also rolling out SWE-2.1 Cyber, a version with more permissive safeguards, to Devin Security, where it will power normal scans. Deep scans there already use frontier cyber models such as Mythos.

Longer runs, steadier training

Cognition says SWE-2.1’s performance on ExploitGym improves log-linearly as rollout time extends, so the model keeps finding exploits the longer it works, and that the slope of that curve is much steeper than the base model’s. It attributes part of this to a broader set of short- and long-horizon training tasks, from science and performance engineering to security, and to post-training changes that control rollout length. Length oscillations had previously destabilized training; reducing them let Cognition train on tasks lasting from minutes to many hours, with held-out scores improving across many days of training.

Because more test-time compute helps, speed becomes a feature. Cognition is also releasing SWE-2.1 Ultrafast, the same model served through a partnership with Cerebras at what it says is 10 times the speed, pitched at incidents and urgent fixes where hours of iteration need to shrink to minutes.

Topics
  • #Cognition
  • #Devin
  • #SWE-2.1
  • #Kimi K3
  • #Coding Agents
Raj M

Author

Raj M

Contributor

AI Systems Architect is a seasoned technology leader with over 15 years of experience in the IT industry working with Fortune 500 companies. With a solid foundation in multi-agent systems, open-source LLM infrastructure, and enterprise deployment, he excels at building scalable production-grade AI platforms.