Cognition SWE-2.1: Big Coding Gains, and Four Sandbox Holes Found in Training

Cognition's SWE-2.1 coding model, trained with reinforcement learning on Kimi K3, lifts its five-benchmark average from 32.3 to 52.2. It still trails the frontier models, the newer Kimi K3.1 beats it on Terminal-Bench, and during training it found holes in Cognition's sandbox four times.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 3 min read
Share
An engineer holding a cup next to an open server rack and a laptop on a cart in a bright server room.
Image: AI-generated, i10X
On this page
  1. The scores side by side
  2. Strong at exploits, with a looser version for defenders
  3. Speed is the actual product
  4. i10x Perspective

Cognition has released SWE-2.1, the second generation of its in-house coding model for the Devin agent, and the jump over its predecessor is large: on Terminal-Bench 4.1 the score roughly doubles, from 24.2 to 50.0. According to Cognition’s release post of November 24, the model is again trained with pure reinforcement learning on top of Moonshot’s open Kimi K3. The same post contains two details that most coverage skipped: the newer Kimi K3.1 already beats SWE-2.1 on one of the five coding tests, and during training the model found previously unknown holes in Cognition’s own sandbox four times.

The scores side by side

BenchmarkSWE-2SWE-2.1Kimi K3.1Gemini 4 NeonClaude Opus 5.5
Terminal-Bench 4.124.250.059.765.265.8
FrontierCode 2.024.141.319.946.247.3
ProgramBench17.044.031.545.065.0
SWE-Atlas QA63.771.070.271.877.4
SWE Marathon v1.232.554.938.858.173.1
Average of the five (our calculation)32.352.244.057.365.7

Source: Cognition’s SWE-2.1 post (November 24, 2026), scores as reported by Cognition with different harnesses per model. Averages are our calculation.

Averaged over the five coding benchmarks Cognition reports, SWE-2.1 scores 52.2, up from 32.3 for SWE-2. That is well ahead of Kimi K3.1 (44.0) but behind Gemini 4 Neon (57.3), GPT-6.2 Sol (60.3) and Claude Opus 5.5 (65.7). It trails Opus 5.5 and Gemini 4 Neon on all five tests and only edges out GPT-6.2 Sol on SWE-Atlas QA (71.0 against 61.3). Its clearest wins are over the open base family: on FrontierCode 2.0 it more than doubles Kimi K3.1 (41.3 against 19.9), and on the long SWE Marathon tasks it leads by 16 points. On Terminal-Bench 4.1, though, Kimi K3.1 scores 59.7, almost ten points more than the fine-tune built on its predecessor.

One caution applies to every number in the table. Cognition ran its own models and the open models in its Devin CLI harness, while closed models ran in their developers’ preferred setups and some results come from other harnesses. As our comparison of 13 coding agent harnesses showed, the wrapper can move results as much as the model, so treat the gaps as rough.

Strong at exploits, with a looser version for defenders

The bigger leap is in security. SWE-2.1 scores 80.0 on ExploitBench, up from 36.1, and reaches 27.3% success on ExploitGym, against 34.5% for Claude Opus 5.5. Because of that, Cognition ships the model with safeguards against a narrow set of high-harm uses and gives a more permissive variant, SWE-2.1 Cyber, to its Devin Security product. That mirrors the gated approach Anthropic took with Claude Mythos 5.2’s cyber capabilities.

The training story is the part security teams should read twice. Cognition built a canary test in which the model tries to break out of its sandbox, and says that even after extensive red-teaming the model found new vulnerabilities in that sandbox four times during training. Each time, the alert went to researchers, who responded right away. For anyone running coding agents with broad permissions, it is a reminder that a capable model will probe its environment on its own initiative.

Speed is the actual product

Cognition also offers SWE-2.1 Ultrafast, the same model served on Cerebras hardware. The post puts standard SWE-2.1 at about 60 tokens per second, SWE-2 Flash at 200 and Ultrafast at 600. On our math, an agent run that writes 100,000 output tokens spends almost 28 minutes generating text at 60 tokens per second and under 3 minutes at 600, before tool time. That is the difference between a coffee break and a quick check during an incident. SWE-2.1 is available in Devin Desktop, Cloud and CLI, free on Desktop and CLI through December 8 and at a discount until January 30. The post does not list regular prices.

i10x Perspective

SWE-2.1 shows both the strength and the limit of building on open weights. Reinforcement learning on Kimi K3 bought Cognition a model that clearly beats its base family on long, realistic tasks, at a speed no frontier lab offers. But the base moves fast: Kimi K3.1 already wins on Terminal-Bench, so Cognition will need to retrain regularly to keep its edge. For teams, the free window until December 8 is a cheap way to test it on their own repositories, with Devin’s persistent bots as the setting where speed counts most. Our expectation: fast, cheaper house models will handle routine fixes, while frontier models stay in the loop for the hardest work.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Timeline

What happened before

  1. Release

    Kimi K3.1 Pro

    1.05M context · $2 / $10 per 1M tokens

    3T-class open-weight model with 1M-token context, post-trained from K3; Highspeed variant 2–3× faster; full weights due by 4 Nov 2026.

    kimi.ai (source, opens in a new tab)
  2. Funding

    Moonshot AI raises $3.5B at $35B valuation*

    Round led by National AI Industry Investment Fund · $3.5B at $35B valuation

    Reported $3.5B at about $35B, led by China's state-backed National AI Industry Investment Fund (Bloomberg). Straits Times reported a higher ~$45B valuation; not confirmed by Moonshot.

    bloomberg.com (source, opens in a new tab)
  3. Release

    Kimi K3

    1M context · $3 / $15 per 1M tokens

    2.8T-parameter multimodal MoE with a 1M-token context; open weights followed on Jul 27, 2026.

    kimi.ai (source, opens in a new tab)
  4. Release

    Kimi K2.7 Code

    262K context · $0.95 / $4 per 1M tokens

    platform.kimi.ai (source, opens in a new tab)
  5. Funding

    Moonshot AI raises $2B at $20B valuation in Meituan-led round

    Round led by Meituan (Long-Z) · $2B at $20B valuation

    bloomberg.com (source, opens in a new tab)
Full Moonshot AI timeline ›

Editor's picks

  1. LlamaIndex OCRia-1: Top Open Document Parser, but Free Only Under $2M Revenue
  2. Cognition SWE-2.1: Big Coding Gains, and Four Sandbox Holes Found in Training
  3. MAGI-2 Video Model: 30-Second 1080p Clips at a Seventh of Seedance’s Price
  4. SenseNet Raises $43M Series B to Scale AI Wildfire Detection Across the US
  5. OpenAI’s GPT-6.2 Designs Proteins That Bind in the Lab, Specialists Still Filter