Cognition SWE-2: Near-Frontier Coding AI at 64% Lower Cost
📑 Table of Contents
Introduction: The Cost Problem in AI Coding
AI coding agents got dramatically better in 2026 — and dramatically more expensive. Running a frontier model like Anthropic's Fable 5.1 or OpenAI's GPT-6 Astra inside an agentic loop means paying per task what you used to pay per month, and heavy users of tools like Cursor and GitHub Copilot have watched their token bills climb in step with their productivity.
That's what makes this week's launch of SWE-2, the new coding model from Cognition (the company behind the Devin AI software engineer), so interesting. Cognition claims SWE-2 lands within one benchmark point of the frontier while costing 64% less per task — a claim that, if it holds up, reshapes the economics of agentic coding for everyday engineering work.
What Is SWE-2 and Where Can You Use It?
SWE-2 launched on September 10, 2026 and is available now in Devin Desktop and the Devin CLI, with a rollout underway on Devin Web and Fusion. It's Cognition's successor to SWE-1.7, the model the company released in July, and it fixes that model's most frustrating habit: reading endlessly before touching anything.
With SWE-1.7, Cognition's own engineers documented that the agent made its first real code edit at a median of step 48 — nearly four dozen turns of exploration before any output. SWE-2 medium reaches its first edit at step 18, a 62.5% reduction. Against its predecessor, SWE-2 completes tasks in 58% fewer turns at 81% lower average cost.
One important detail: SWE-2 is Devin's coding model, not a standalone API. There's no per-token rate card and no published weights — the only way to run it is inside a Devin subscription. That makes its cost claims measurements of what a task costs inside Devin's harness, not prices you can compare line-by-line against another vendor's API bill.
The Benchmark Numbers That Matter
Here's Cognition's own comparison table across the four most-cited coding benchmarks:
| Benchmark | SWE-2 | Kimi K3 | Grok 4.6 | Fable 5.1 | GPT-5.6 Sol | GPT-6 Astra |
|---|---|---|---|---|---|---|
| FrontierCode 1.1 Main | 50.0% | 44.2% | 48.0% | 50.9% | 47.5% | 53.3% |
| DeepSWE 1.1 | 73.0% | 68.5% | 67.5% | 67.4% | 72.7% | 74.1% |
| Terminal-Bench 2.1 | 92.8% | 88.3% | 88.4% | 91.4% | 88.8% | 89.9% |
| Terminal-Bench 4 | 27.3% | 21.5% | 20.3% | 55.8% | 37.3% | 57.9% |
Three rows tell a genuinely strong story. On FrontierCode 1.1 Main — which measures whether a human maintainer would actually merge an AI-written pull request — SWE-2's 50.0% puts it ahead of Grok 4.6 and GPT-5.6 Sol and within a single point of Fable 5.1's 50.9%. On DeepSWE 1.1, an independent long-horizon benchmark from Datacurve, SWE-2 outright beats Fable 5.1 (73.0% vs 67.4%). And on Terminal-Bench 2.1 it posts the highest score in the table at 92.8%.
The fourth row is the catch. Terminal-Bench 4, a much harder multi-step agentic benchmark, shows SWE-2 at just 27.3% — nearly 30 points behind Fable 5.1 (55.8%) and GPT-6 Astra (57.9%). For the hardest long-horizon terminal work, the frontier models still earn their price.
How Cognition Trained It: The Kimi K3 Connection
The most technically interesting part of the launch is what SWE-2 is built on. It's a post-train of Moonshot AI's Kimi K3 — the 2.8-trillion-parameter open-weight base model — which explains both the benchmark jump over the base (Kimi K3 scores 44.2% on FrontierCode where SWE-2 scores 50.0%) and the cost story: Cognition's reinforcement learning pipeline added roughly 5–6 points across several benchmarks while training the model to stop wasting compute on unnecessary exploration.
That "waste less, pay less" philosophy is baked directly into the reward function. Instead of rewarding thoroughness for its own sake, the training optimized for reaching a correct, mergeable change with minimal steps — which is exactly where the 64% cost saving comes from. It's the same open-weight-plus-targeted-RL playbook that has made Chinese open models like DeepSeek and Kimi such serious competitors this year, applied to a focused vertical: real-world software engineering.
The Caveats: Read the Fine Print
Before you re-platform your whole dev workflow, a few honest caveats:
- Every number is Cognition's own. The headline FrontierCode suite is Cognition's instrument, and there's no independent replication yet from evaluators like Artificial Analysis.
- The 64% is a relative claim. It's measured against competitors' published per-task costs (Fable 5.1 Medium at $3.28 per task on FrontierCode, for example). Cognition published no absolute price for SWE-2 itself — only Devin subscription pricing.
- Terminal-Bench 4 is the ceiling. On the hardest agentic terminal work, SWE-2 is a fast model, not a frontier one. Route your gnarliest tasks elsewhere.
- Lock-in is real. No API, no weights, one vendor, one agent product. If you want model portability, this launch changes nothing for you today.
What It Means for Your AI Coding Stack
The practical takeaway for most teams is routing, not replacement. The emerging best practice in 2026 is to match the model to the task: cheap, fast models like SWE-2 for the routine end of your queue — bug fixes, small features, refactors, test writing — and frontier models like Fable 5.1 or GPT-6 Astra for the hardest multi-hour agentic work where the cost gap is justified.
If you already pay for Devin, SWE-2 is straightforwardly good news: it's rolling out to your product, it wastes fewer turns, and the cost win lives at the medium effort level. If you're choosing a coding tool from outside, the comparison set remains Devin for delegated engineering work, Cursor and Windsurf for editor-integrated agents, Claude Code for terminal-first workflows with Anthropic's frontier models, and OpenAI Codex for the GPT-6 family.
The bigger signal is directional: the era of assuming frontier quality requires frontier pricing is ending. Post-trained open-weight bases are closing the gap on real-world coding benchmarks at a fraction of the cost, and every vendor in the space — including GitHub Copilot, which now offers model choice per task — is being forced to compete on price-performance rather than raw capability alone. That's a win for everyone paying an AI coding bill.
Frequently Asked Questions
What is Cognition's SWE-2?
SWE-2 is Cognition's most advanced AI coding model, launched September 10, 2026. It's a post-train of Moonshot AI's Kimi K3 open-weight base model, fine-tuned with reinforcement learning to complete real-world software engineering tasks faster and cheaper. It scores 50.0% on the FrontierCode 1.1 Main benchmark — within one point of Anthropic's Fable 5.1 — at 64% lower cost per task.
How do I use SWE-2?
SWE-2 is available inside Devin Desktop and the Devin CLI as of launch, with Devin Web and Fusion rolling out. There is no standalone API or published per-token pricing — the only way to run the model is through a Devin subscription from Cognition.
Is SWE-2 better than Claude Fable 5.1?
On most real-world coding benchmarks they're neck and neck: SWE-2 actually beats Fable 5.1 on DeepSWE 1.1 (73.0% vs 67.4%) and Terminal-Bench 2.1 (92.8% vs 91.4%), and trails by under a point on FrontierCode 1.1 Main. But on Terminal-Bench 4, the hardest agentic benchmark, Fable 5.1 leads 55.8% to 27.3%. For the most complex long-horizon work, frontier models remain the better choice.
Are SWE-2's benchmark results independently verified?
Not yet. All published scores come from Cognition's own benchmark table, and the headline FrontierCode suite is the company's own instrument. Independent evaluators have not yet reproduced the results, so treat the numbers as strong vendor claims rather than settled fact — and benchmark SWE-2 on your own codebase before committing.
Find the Right AI Coding Tool
Compare Devin, Cursor, Claude Code, GitHub Copilot and 300+ more AI tools on aitrove.ai — your trusted AI tool directory.
Browse All AI Tools →