Introducing SWE-2.1
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.
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.
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
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 ($)
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.0sHarness: 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: .
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.