Trained only with reinforcement learning on top of Kimi K3

Cognition, the U.S. company behind AI programmer "Devin," released a new AI model for software development, "SWE-2.1," on Nov. 24 (Nov. 25 Japan time). The company calls it "a major upgrade" over its previous model, "SWE-2." Like its predecessor, it was trained only with reinforcement learning (a method that trains a model by rewarding the results of trial and error) on top of Chinese company Moonshot AI's "Kimi K3" model, the company said. At the same time, it released "SWE-2.1 Lightning," which runs 10 times faster, and "SWE-2.1 Cyber," a version for cyber defense.

Introducing SWE-2.1, our latest coding model. Like its predecessor, SWE-2.1 is trained with pure reinforcement learning on Kimi K3. It delivers large gains over SWE-2 across a wide range of benchmarks. SWE-2.1 is free for all Devin Pro, Max, and Teams for the next two weeks.

Cognition released the lightweight "SWE-2 Flash," built on a U.S.-made model, only on Nov. 4. SWE-2.1 succeeds the higher-end SWE-2 released in September, and keeps the Chinese-made Kimi K3 as its base. The company said it improved coding performance by training for general intelligence and for long-running work. That also raised scores in other areas, especially cybersecurity, it said.

41.3% on its own benchmark, short of Claude Opus 5.5's 47.3%

The benchmark Cognition puts front and center is "FrontierCode 2.0," which the company built itself. It scores whether a code change written by an AI is good enough to be merged as is. SWE-2.1 scored 41.3%, up 17.2 points from SWE-2's 24.1%.

In a post on X, the company said that on max reasoning, SWE-2.1 "approaches frontier models." Even in the company's own table, however, it trails Anthropic's "Claude Opus 5.5" at 47.3%, Google's "Gemini 4 Neon" at 46.2% and OpenAI's "GPT-6.2 Sol" at 43.8%. It beat xAI's "Grok 4.7" at 28.9% and Meta's "Muse Wonder" at 25.3%.

FrontierCode 2.0 results announced by Cognition (%, out of 100%). From the table in the company's blogFrontierCode 2.0
47.3
AnthropicClaude Opus 5.5
46.2
GoogleGemini 4 Neon
43.8
OpenAIGPT-6.2 Sol
41.3
CognitionSWE-2.1
28.9
xAIGrok 4.7
25.3
MetaMuse Wonder
24.1
CognitionSWE-2
19.9
Moonshot AIKimi K3.1

Terminal-Bench 4.1 score more than doubles, but trails Moonshot AI's newer model

On the "Terminal-Bench 4.1" benchmark, SWE-2.1 scored 50.0%, more than double SWE-2's 24.2%. On this benchmark, however, it trails "Kimi K3.1," a newer model from Moonshot AI, the developer of its base model, at 59.7%. Claude Opus 5.5 scored 65.8%, Gemini 4 Neon 65.2% and GPT-6.2 Sol 61.5%.

Terminal-Bench 4.1 results announced by Cognition (%, out of 100%). From the table in the company's blogTerminal-Bench 4.1
65.8
AnthropicClaude Opus 5.5
65.2
GoogleGemini 4 Neon
61.5
OpenAIGPT-6.2 Sol
59.7
Moonshot AIKimi K3.1
50.0
CognitionSWE-2.1
47.0
MetaMuse Wonder
38.8
xAIGrok 4.7
24.2
CognitionSWE-2

On five coding benchmarks, trails the top three companies' models on all but one

The company's blog lists five benchmarks related to software development. SWE-2.1 beat SWE-2 on all of them. It fell short of Claude Opus 5.5 and Gemini 4 Neon on all five, and beat GPT-6.2 Sol only on SWE-Atlas QA (71.0 vs. 61.3). On SWE Marathon v1.2 it scored 54.9%, up from SWE-2's 32.5%.

Coding benchmark results announced by Cognition. From the table in the company's blog
BenchmarkSWE-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

Methods differ by benchmark. According to Cognition, it used scores published by each developer where available and otherwise measured them with its own framework. Models without released weights were run in the harness preferred by their developer, while open models and the SWE series were run in the company's "Devin CLI." To keep scores independent of inference speed, time limits were enforced on a simulated clock. No results measured by a third party under the same conditions have been found.

"SWE-2.1 Cyber" for cyber defense, offered with looser safeguards

The company cited the ability to find vulnerabilities (flaws in software) and use them in attacks as one notable improvement from this round of training. SWE-2.1 scored 80% on the "ExploitBench" benchmark and 27.3% on "ExploitGym," which measures the share of targets captured through the intended exploits, it said. In the ExploitGym chart, it beat SWE-2's 12.1% and Kimi K3.1's 20.7%, but trailed Claude Opus 5.5's 34.5%.

Because of the risk of misuse, SWE-2.1 ships with safeguards that detect and stop the most dangerous kinds of behavior. According to the company, the safeguards target a narrow set of high-harm activities and are calibrated to leave most legitimate work, including cyber defense, unaffected. Saying that some advanced defensive work requires capabilities these safeguards restrict, it is releasing a version with looser restrictions as "SWE-2.1 Cyber." It is offered to customers of "Devin Security," the company's service that finds and fixes vulnerabilities.

We are also introducing our first model specialized for cybersecurity: SWE-2.1 Cyber. SWE-2.1 ships with safeguards that target a narrow set of high-harm activities, calibrated to leave most legitimate work, including cyber defense, unaffected. But some advanced defensive work needs capabilities those safeguards restrict. SWE-2.1 Cyber has more permissive safeguards, and is available for customers in Devin Security.

Devin Security offers deep scans powered by frontier cyber models such as Anthropic's "Claude Mythos." The company said SWE-2.1 Cyber will power its normal scans.

Model found flaws in its isolated environment four times during training

Cognition disclosed that it also added safeguards to its training setup in order to train a model with strong cyber capabilities. It attacked and checked the isolated environments (sandboxes) that confine the model in advance, and continuously ran a monitoring evaluation in which the model tries to escape. If the model succeeds, researchers are alerted.

According to the company, even after that extensive testing, the model found new vulnerabilities in the sandbox four times during training. Each time, researchers were alerted and responded immediately, it said.

The company also showed results for long-running work. On ExploitGym after six hours, SWE-2.1 captured 44.8% of targets, ahead of Chinese company DeepSeek's "DeepSeek V4.1 Flash 1017" at 30.4%, Kimi K3.1 at 29.3% and SWE-2 at 18.1%, it said. The company said the degree to which results improve as working time is extended has grown compared with the base model.

10x-faster "Lightning" through a partnership with Cerebras

"SWE-2.1 Lightning," released alongside it, offers the same model at 10 times the speed through a partnership with Cerebras. Cognition said that during an incident or an urgent fix, 10 times the throughput turns hours of investigation and iteration into minutes. It did not give the actual speed (tokens per second) or a price.

Free on paid plans through Dec. 8, no price given after that

SWE-2.1 and SWE-2.1 Lightning are available from the release date in the development tools "Devin Cloud," "Devin Desktop" and "Devin CLI." Users of Devin's paid Pro, Max and Teams plans can use it free for two weeks. The blog's notice reads "Free through 12/8" and also says it is available "at a discounted price," but gives no amount. SWE-2.1 Cyber is for Devin Security customers, and the company did not mention releasing weights.