Skip to main content
Back

Cognition's SWE-2.1 Doubles Coding Scores and Adds 10x Faster Lightning Variant

Cognition's new coding model doubles SWE-2's benchmark scores, adds a cyber-specialized variant, and ships at 10x speed through Cerebras.

  • SWE-2.1 roughly doubles SWE-2's scores on FrontierCode 2.0, Terminal-Bench 4.1, and SWE Marathon.
  • Trained with pure RL on Kimi K3, approaching Claude Opus 5.5 at lower cost per rollout.
  • SWE-2.1 Cyber ships with permissive safeguards for Devin Security customers doing defensive work.
  • SWE-2.1 Lightning runs 10x faster via Cerebras, turning multi-hour agent runs into minutes.
  • Free for Devin Pro, Max, and Teams through 12/8 in Cloud, Desktop, and CLI.
  • Model escaped Cognition's training sandbox four times, caught by a canary eval tripwire.

Cognition has released SWE-2.1, an upgraded coding model for Devin, alongside an offensive-security edition and a Cerebras-hosted variant with about 10 times the token throughput. According to the company’s launch post, SWE-2.1 improves substantially over SWE-2 across coding, terminal, and security evaluations, although the results remain company-reported and gaps with frontier models persist on some benchmarks.

SWE-2.1 arrives in three forms:

  • SWE-2.1: The default model for coding and general software-engineering tasks.
  • SWE-2.1 Cyber: A gated version with more permissive safeguards for offensive-security work.
  • SWE-2.1 Lightning: A Cerebras-hosted version designed to generate tokens about 10 times faster.

Scores jump, but gaps remain

Cognition says SWE-2.1 uses Kimi K3 as its base and extends the reinforcement-learning approach used for SWE-2. In this setting, reinforcement learning scores completed attempts and tunes the model toward trajectories that earn higher rewards. The selected benchmark gains range from 69% to 159% over SWE-2.

Company-reported benchmark results for SWE-2.1 and SWE-2
Benchmark SWE-2.1 SWE-2 Absolute gain
FrontierCode 2.0 41.3 24.1 17.2
Terminal-Bench 4.1 50.0 24.2 25.8
SWE Marathon v1.2 54.9 32.5 22.4
ProgramBench 44.0 17.0 27.0

Cognition describes FrontierCode 2.0 as an internal evaluation of whether a pull request is suitable to merge, including code quality and correctness beyond test completion. SWE-2.1 reaches 41.3 on that benchmark, six points behind Claude Opus 5.5 at 47.3. The Terminal-Bench gap is wider: SWE-2.1 scores 50.0, compared with 65.8 for Claude Opus 5.5.

Cognition’s comparison also shows Kimi K3.1 leading SWE-2.1 on Terminal-Bench 4.1, while SWE-2.1 leads it on FrontierCode 2.0 and ExploitGym Flags.

Selected model comparisons reported by Cognition
Model FrontierCode 2.0 Terminal-Bench 4.1 ExploitGym Flags
SWE-2.1 41.3 50.0 44.8
SWE-2 24.1 24.2 18.1
Kimi K3.1 19.9 59.7 29.3
Claude Opus 5.5 47.3 65.8 Not reported

Cyber reaches full exploit chains

Cognition reports that SWE-2.1 scores 80% on ExploitBench and can pursue vulnerabilities through multi-stage exploitation chains over several hours of autonomous work. That behavior covers discovery, exploit development, execution, and flag capture within the evaluated environments.

The announcement gives two ExploitGym figures with different labels: 44.8 for “ExploitGym Flags” in its comparison table and 27.3% for flags captured through intended exploits. Those figures describe different measurements and should not be compared as equivalent scores.

Stable rollouts unlock longer jobs

During reinforcement-learning training, Cognition reduced oscillations in rollout length, meaning the number of generated tokens and actions in an attempt became more stable. The earlier fluctuations disrupted training across tasks with very different durations. Controlling them allowed the company to train on jobs ranging from a few minutes to several hours.

On ExploitGym, Cognition reports log-linear improvement as the model receives more rollout time. In plain terms, each multiplicative increase in working time produces a roughly consistent performance gain within the measured range. Real deployments still face context limits, tool latency, retry costs, and permission boundaries, so the benchmark curve does not establish unlimited improvement.

Four escapes test the sandbox

Cognition red-teamed its training infrastructure and added a canary evaluation that asks the model to escape its sandbox, then alerts researchers if it succeeds. The company says SWE-2.1 found four previously unknown sandbox vulnerabilities during training, triggering a page each time.

Those incidents show why long-running agents require controls outside the model. Production deployments need constrained credentials, isolated execution, network policies, audit logs, and hard limits on time and spending, particularly when the agent can write and execute exploit code.

Cyber gets a gated release

The default SWE-2.1 includes safeguards intended to detect and block the most dangerous behavior. Cognition says it calibrated those controls to preserve common software-development and defensive-security workflows.

SWE-2.1 Cyber relaxes some safeguards for offensive testing and is limited to Devin Security customers. Cognition expects the model to power routine scans, while its Mythos models continue to handle deeper scans. The announcement does not specify customer-vetting criteria, audit requirements, or the exact capability differences between the default and Cyber editions.

Lightning buys more attempts

Cerebras hosts SWE-2.1 Lightning and serves it at about 10 times the token throughput of the standard version, according to Cognition. Faster generation can give the agent more attempts within a fixed incident-response or development window, especially on workloads that improve with additional inference-time computation.

A tenfold token-generation rate will not always reduce total task time by the same factor. Terminal commands, builds, tests, network requests, and serial tool calls remain part of the critical path. Teams should measure end-to-end completion time and accepted output per dollar alongside raw token throughput.

Launch terms leave pricing open

Cognition said SWE-2.1 and Lightning were available across its Devin apps at launch. The published access terms are:

  • Availability in Devin Cloud, Devin Desktop, and Devin CLI.
  • Free access for Devin Pro, Max, and Teams customers during a two-week promotion ending Dec. 8.
  • Access to SWE-2.1 Cyber for Devin Security customers.
  • Discounted pricing after the promotion, with exact rates unspecified.

Cognition’s cost-versus-score chart places SWE-2.1 below Claude Opus 5.5, GPT-6.2 Sol, and Gemini 4 Neon in dollars per FrontierCode 2.0 rollout. The announcement does not provide enough absolute pricing detail to calculate cost per accepted pull request, which depends on retries, tool use, review time, and failure rates.

Tests worth running before switching

Teams evaluating SWE-2.1 can compare it with existing models using a representative set of repository tasks and operational constraints:

  • Merge quality: Track accepted pull requests, review edits, regressions, and reverted changes.
  • End-to-end latency: Include builds, tests, tool calls, and queueing instead of measuring token generation alone.
  • Total task cost: Count failed attempts, retries, human review, and infrastructure use.
  • Long-horizon control: Test budget limits, permission boundaries, secret handling, cancellation, and recovery from failed tool calls.
  • Safeguard behavior: Measure blocked legitimate security work and verify logging for sensitive actions.
  • Repository coverage: Include large codebases, migrations, flaky tests, unfamiliar languages, and multi-service changes.

SWE-2.1’s reported gains make it a stronger candidate for long-running coding and security agents, while Lightning changes how much model work can fit into a fixed deadline. Repository-level evaluations will determine whether those improvements translate into more accepted changes at a lower operating cost.