Back to Devoured - November 25, 2026
DEVOURED
Cognition's SWE-2.1

Cognition's SWE-2.1

AI Cognition
Cognition released SWE-2.1, an agentic model trained with reinforcement learning on Kimi K3, achieving significant gains in coding performance and automated exploitation.
What: SWE-2.1 doubles performance on Terminal-Bench 4.1 to 50.0 and reaches 80% on ExploitBench. Cognition also released SWE-2.1 Ultrafast in partnership with Cerebras, providing 10× inference speed. The model uses test-time scaling to perform complex tasks over long durations and includes targeted safety guardrails.
Why it matters: The focus on long-horizon, autonomous cybersecurity tasks indicates a pivot toward AI agents that can handle full exploit chains rather than simple code generation, necessitating new infrastructure for sandbox monitoring and canary evals.
Takeaway: Try the SWE-2.1 Ultrafast model via the Devin CLI or Desktop until 1/30.
Deep dive
  • SWE-2.1 uses pure reinforcement learning on Kimi K3 architecture.
  • Significant performance improvements in coding (FrontierCode 2.0, Terminal-Bench 4.1) and cybersecurity (ExploitBench, ExploitGym).
  • Employs test-time scaling, showing log-linear performance gains as the autonomous time horizon extends.
  • Includes native infrastructure for sandbox security, such as canary evals to detect model escape attempts.
  • Deploys permissive 'Cyber' mode for defensive security applications.
  • SWE-2.1 Ultrafast version uses Cerebras hardware to achieve 10x throughput for time-sensitive incident response.
Decoder
  • Test-time scaling: The phenomenon where a model's performance improves when given more computation or time to 'think' or work on a task before providing an answer.
  • ExploitBench/ExploitGym: Standardized benchmarks designed to test an AI agent's ability to identify and execute software vulnerabilities.
Original article

We’re releasing SWE-2.1, a major upgrade over SWE-2. Like its predecessor, it is trained with pure reinforcement learning on Kimi K3. It delivers large gains across a wide range of benchmarks including FrontierCode 2.0 and Terminal-Bench 4.1. We achieve much of our gains in coding performance by targeting general intelligence and long-horizon workflows. This also leads to improvements across a variety of other domains, especially cybersecurity.

SWE-2.1 SWE-2 Kimi K3.1 Grok 4.7 Muse Wonder Gemini 4 Neon GPT-6.2 Sol Claude Opus 5.5
Terminal-Bench 4.1 50.0 24.2 59.7 38.8 47.0 65.2 61.5 65.8
FrontierCode 2.0 41.3 24.1 19.9 28.9 25.3 46.2 43.8 47.3
ProgramBench 44.0 17.0 31.5 21.5 50.0 45.0 66.0 65.0
SWE-Atlas QA 71.0 63.7 70.2 73.4 73.4 71.8 61.3 77.4
SWE Marathon v1.2 54.9 32.5 38.8 7.9 30.0 58.1 68.8 73.1

See the Benchmark Methodology Notes at the end of this post for how these benchmarks are run.

Cybersecurity

One notable improvement through our training is significantly increased capability on cybersecurity, vulnerability finding and exploitation tasks. SWE-2.1 achieves 80% on ExploitBench and 27.3% flags captured via intended exploits on ExploitGym. The model thus shows strong performance not only in finding vulnerabilities, but also carrying them out through the full exploitation chain, often over several hours of autonomous work.

SWE-2.1 SWE-2 Kimi K3.1 GLM 5.3 DeepSeek V4.1 Flash 1017 Gemini 4 Neon Muse Wonder Claude Opus 5.5 GPT-6.2 Sol
ExploitBench 80.0 36.1 74.7 54.4 31.1 — 58.9* 91 100
ExploitGymSuccess 27.3 12.1 20.7 15.0 15.9 47.9 2.3* 34.5 —
ExploitGymFlag capture 44.8 18.1 29.3 — 30.4 — 10.6* — —
CWE-Bench v2 Public 65.8 54.0 63.5 44.0 57.0 74.8 64.8 67.3 66.5

See the Benchmark Methodology Notes at the end of this post for how ExploitBench and ExploitGym are scored. * These scores are for Muse Wonder Full.

Securing training infrastructure

Training a model with advanced capabilities in cybersecurity requires additional safeguards. Therefore, we built several security measures into training:

  • We red-teamed our training setup, particularly around sandboxes.
  • We implemented continuous safety monitoring. We created a canary eval where the model tries to escape the sandbox. Upon success, our infrastructure alerts the researchers.

The canary eval has been a successful intervention. Even after extensive red-teaming, the model discovered new vulnerabilities in our sandbox four times during training. Researchers were alerted and responded immediately each time.

Safeguards and access for defenders

Because advanced capabilities, particularly in cybersecurity, carry a risk of misuse, we deployed SWE-2.1 with safeguards that detect and prevent the most dangerous kinds of behavior. These safeguards target a narrow set of high-harm activities, and are calibrated to leave most legitimate work, including work in cyber defense, unaffected.

At the same time, some advanced defensive work requires capabilities these safeguards restrict. AI is raising the floor for attackers: exploits that once required rare expertise are now within reach of anyone with a capable model. We want to give defenders the same leverage, so we are rolling out SWE-2.1 Cyber, a version of SWE-2.1 with more permissive safeguards, to Devin Security.

Devin Security already offers deep scans powered by frontier cyber models like Mythos. With SWE-2.1 Cyber powering normal scans, we hope to bring increased cyber capabilities for defense to all.

Test-Time Scaling

As models become more capable, the ability to operate autonomously over long time horizons, for hours or even days, becomes increasingly important.

Real-world engineering and security problems rarely finish in a few minutes. To see how SWE-2.1 performs over sustained autonomous runs, we plot its cumulative solve rate on ExploitGym against normalized rollout time (computed at a fixed TPS, 1s TTFT, plus real tool execution time).

ExploitGymFlags captured vs Time

As the model works for longer, it is able to solve more complex tasks. On our evals, we see that performance improves log-linearly as the time horizon extends, meaning that the model continues to find exploits as it works for more hours. Furthermore, the slope of the test-time scaling curve has increased significantly compared to the base model, demonstrating a significantly increased capability to autonomously manage and complete complex tasks.

Data and Recipe

To train SWE-2.1, we expanded our tasks and environments across both short- and long-horizon workflows, spanning areas from science and performance engineering to cybersecurity. That breadth made the model more versatile while pushing its software engineering performance even further.

We also improved our post-training algorithms to control rollout length during training. Previously, length oscillations often destabilized training dynamics. Reducing those oscillations let us train reliably on tasks ranging from a few minutes to many hours.

Together, our data and recipe improvements allowed us to train stably for much longer, with performance on held-out eval tasks improving steadily throughout many days of training. This new recipe also contributed to SWE-2.1’s improved test-time scaling, helping SWE-2.1 make better use of additional compute on difficult tasks.

SWE-2.1 Ultrafast

We are also releasing SWE-2.1 Ultrafast. Through a partnership with Cerebras, we are able to provide the same model at 10× the speed. Because SWE-2.1 continues to improve with more test-time compute, inference speed determines how much work it can finish under a tight deadline. During an active incident or urgent fix, 10× throughput turns hours of investigation and iteration into just minutes.

Benchmark Methodology Notes

Harness: We report upstream or self-reported scores if they're available. Otherwise, we evaluate models on our internal evaluation framework. For closed models, we use the model developer's preferred harness. For open and SWE models, we use the Devin CLI harness.

Time budgets: To keep benchmark scores independent of inference speed, we enforce time limits on a simulated clock that charges each model call 1 s of time-to-first-token plus a constant c seconds per output token (a fixed TPS), matching our production serving speeds: time in seconds = turns + c × tokens + tools.

ProgramBench: We report the percentage of tasks where the model passes at least 95% of tests. SWE-2.1 and SWE-2 are run in our harness with a 250k-token context with up to 3 compactions (1M tokens total). Other models are reported in mini-swe-agent with each model's native context window (up to ~1M tokens).

ExploitBench: We ran each task five times with a 3-hour simulated clock and took the union of the flags captured for each task. Taking the union of flags is standard practice for this benchmark.

ExploitGym: We report pass@1 over the set of 869 tasks within a 6-hour timeout. We evaluate with mitigations disabled, following Opus 5.5 and Gemini 4 Neon. We report two metrics - flags captured and success, following the ExploitGym paper. “Flags captured” includes successful, real exploits unrelated to the intended vulnerability specified in the initial prompt. To compute “success”, we adopted the upstream agent-as-a-judge implementation.

Explore all 56 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi