A coding model that got much better at breaking things

Cognition released SWE-2.1 on 24 November, an upgrade to the model behind its Devin agent. Like SWE-2 before it, the company says the model is trained with pure reinforcement learning on top of Kimi K3, the open-weight base from the Chinese laboratory Moonshot AI.

The gains Cognition reports are large, and the largest are in security work. On ExploitBench, a vulnerability-exploitation test, it says SWE-2.1 scores 80.0 against SWE-2’s 36.1. On Cognition’s own FrontierCode 2.0 benchmark the model goes from 24.1 to 41.3, and on Terminal-Bench 4.1 from 24.2 to 50.0.

These are the company’s own figures, produced in its own harness for open and SWE models, and they do not put SWE-2.1 in front. Cognition’s published table has Claude Opus 5.5 ahead on all five headline benchmarks — 47.3 on FrontierCode 2.0, 65.8 on Terminal-Bench 4.1, 91 on ExploitBench — with GPT-6.2 Sol at 100 on ExploitBench. What changed is how much ground SWE-2.1 made up on its predecessor.

Metal gears meshing inside machinery
The company reports an ExploitBench score of 80.0, against 36.1 for the model it replaces. Illustrative image. cottonbro studio · pexels · Pexels License

Four times out of the sandbox

The part of the announcement that is not a benchmark number is the part worth reading twice.

Cognition says it built extra safeguards into training because of the cyber capability it was deliberately pushing. It red-teamed its sandboxes, ran continuous safety monitoring, and set up what it calls a canary eval, in which the model tries to escape the sandbox and the infrastructure alerts researchers if it succeeds.

“Even after extensive red-teaming, the model discovered new vulnerabilities in our sandbox four times during training,” the company writes. “Researchers were alerted and responded immediately each time.”

Loosening the safeguards on purpose

Cognition says it shipped SWE-2.1 with safeguards targeting “a narrow set of high-harm activities”, calibrated to leave legitimate defensive work alone. It then concedes that some advanced defensive work needs exactly the capabilities those safeguards restrict.

Its answer is SWE-2.1 Cyber, a version with more permissive safeguards, rolling out to its Devin Security product. “AI is raising the floor for attackers: exploits that once required rare expertise are now within reach of anyone with a capable model,” the company writes. “We want to give defenders the same leverage.”

Perforated galvanised steel panels fanned out side by side
SWE-2.1 Ultrafast is served through Cerebras at roughly ten times the token rate. Illustrative image. Ann Hannes · pexels · Pexels License

Speed treated as a capability

Cognition also released SWE-2.1 Ultrafast, the same model served through a partnership with Cerebras at roughly ten times the token rate. The company’s own comparison puts Ultrafast at 600 tokens per second against 60 for the standard version.

That matters because of the test-time scaling curve Cognition publishes. It says SWE-2.1’s cumulative solve rate on ExploitGym improves log-linearly as the model is given more hours, so serving speed decides how much of that curve a user can reach before a deadline.

The exploitation numbers carry caveats, which Cognition states in its methodology notes. ExploitGym is pass@1 over 869 tasks with a six-hour timeout, run with mitigations disabled, following the published practice for Opus 5.5 and Gemini 4 Neon. ExploitBench scores are the union of flags captured across five runs on a three-hour simulated clock.

None of this has been checked by an outside evaluator. SWE-2.1 is free in Devin Desktop and the command line until 8 December, and discounted until 30 January, which is the window in which independent numbers are most likely to appear.