Introducing SWE-2.1

By The Cognition Team

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.

FrontierCode 2.0
FrontierCode 2.0
41.3SWE-2.124.1SWE-219.9Kimi K3.128.9Grok 4.725.3Muse Wonder47.3Claude Opus 5.541.3SWE-2.124.1SWE-219.9Kimi K3.128.9Grok 4.725.3Muse Wonder47.3Claude Opus 5.5
Terminal-Bench 4.1
Terminal-Bench 4.1
50.0SWE-2.124.2SWE-259.7Kimi K3.138.8Grok 4.747.0Muse Wonder65.8Claude Opus 5.550.0SWE-2.124.2SWE-259.7Kimi K3.138.8Grok 4.747.0Muse Wonder65.8Claude Opus 5.5
ExploitGym
ExploitGym
27.3SWE-2.112.1SWE-220.7Kimi K3.12.3Muse Wonder34.5Claude Opus 5.527.3SWE-2.112.1SWE-220.7Kimi K3.12.3Muse Wonder34.5Claude Opus 5.5
SWE-2.1SWE-2Kimi K3.1Grok 4.7Muse WonderGemini 4 NeonGPT-6.2 SolClaude Opus 5.5
Terminal-Bench 4.150.024.259.738.847.065.261.565.8
FrontierCode 2.041.324.119.928.925.346.243.847.3
ProgramBench44.017.031.521.550.045.066.065.0
SWE-Atlas QA71.063.770.273.473.471.861.377.4
SWE Marathon v1.254.932.538.87.930.058.168.873.1

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

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.1SWE-2Kimi K3.1GLM 5.3DeepSeek V4.1 Flash 1017Gemini 4 NeonMuse WonderClaude Opus 5.5GPT-6.2 Sol
ExploitBench80.036.174.754.431.1—58.9*91100
ExploitGymSuccess27.312.120.715.015.947.92.3*34.5—
ExploitGymFlag capture44.818.129.3—30.4—10.6*——
CWE-Bench v2 Public65.854.063.544.057.074.864.867.366.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.

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.

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.

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 capturedvsTime

010203040503m15m30m1h2h4h6hFlags captured (%)Rollout timeSWE-2.1DeepSeek V4.1 Flash 1017Kimi K3.1SWE-2010203040503m15m30m1h2h4h6hFlags captured (%)Rollout timeSWE-2.1DeepSeek V4.1 Flash 1017Kimi K3.1SWE-2

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.

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.

FrontierCode 2.0ScorevsCost ($)

0102030405060$0.1$1$10$100Score (%)Avg cost (USD) per rolloutSWE-2.1SWE-2Fable 5.2Opus 5.5GPT-6.2 SolGPT-6.2 AstraGemini 4 NeonGrok 4.7Muse Wonder 1.0Kimi K3.1 Pro0102030405060$0.1$1$10$100Score (%)Avg cost (USD) per rolloutSWE-2.1SWE-2Fable 5.2Opus 5.5GPT-6.2 SolGPT-6.2 AstraGemini 4 NeonGrok 4.7Muse Wonder 1.0Kimi K3.1 Pro
Devin CLIClaude CodeCodexAntigravity CLIGrok BuildMuse Code

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.

We are also releasing SWE-2.1 Lightning. 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.

Token generation speed

0.0s
Free through 12/8Available in Devin Desktop, Cloud, and CLI at a discounted priceGet SWE-2.1

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\text{time in seconds} = \text{turns} + c \times \text{tokens} + \text{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 (see e.g. the GPT-5.6 System Card).

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.