SWE-2 icon

SWE-2

SWE-2 is Cognition’s agentic coding model for planning, implementing, testing, and verifying software changes, available via Devin Desktop and CLI.

SWE-2

SWE-2 overview

SWE-2 is Cognition's coding model for agentic software-engineering work. It is designed to plan and execute code changes while balancing coding performance, inference cost, and rollout time across multiple reasoning-effort levels.

The model is available in Devin Desktop and CLI, with the source article also stating that rollout is underway for Devin Web and Fusion. Cognition presents SWE-2 as a model for software workflows where an agent needs to inspect a codebase, implement changes, write tests, and verify the resulting work.

Key features

Multiple reasoning-effort levels

SWE-2 supports medium, high, and max effort levels, allowing the available reasoning effort to be matched to task complexity and cost considerations.

Focused codebase exploration

The model focuses exploration on the parts of a codebase that matter for the task, helping it begin implementation sooner than SWE-1.7 in the cited evaluation.

Broader test coverage

SWE-2 is reported to write more end-to-end tests and check regressions and edge cases more reliably during coding tasks.

Resourceful task execution

When an expected route is blocked, the model can seek another path within the user's stated boundaries, including reconstructing data from accessible Slack history in one reported example.

Verification-oriented behavior

The model re-derives conclusions, verifies hypotheses, and runs artifacts to gather evidence rather than relying only on surface-level descriptions.

Cost-aware post-training

Its post-training uses cost-penalized rewards tuned to the base model's cost-performance curve, with the goal of improving performance across effort levels in one RL run.

Potential use cases

  • Routine code changes

    Use the medium effort level for straightforward fixes or intermediate coding tasks where quick progress and lower inference cost are priorities.

  • Complex implementation work

    Assign high or max effort to larger or more uncertain engineering tasks that benefit from additional planning, codebase exploration, and verification.

  • Test and regression work

    Have the agent create end-to-end tests and check regressions or edge cases as part of an implementation workflow.

  • Blocked investigations

    Use the model to investigate a blocked task by looking for an alternative route within the data and tools the user has authorized.

  • Evidence-based debugging

    Ask the agent to validate a hypothesis by re-deriving the conclusion and running relevant artifacts rather than accepting an unverified explanation.

Pros and Cons

Pros

  • Offers several effort levels for different cost and task-complexity tradeoffs.
  • Reportedly reduces exploratory turns and average cost relative to SWE-1.7 on the cited FrontierCode 1.1 Main evaluation.
  • Adds behaviors focused on end-to-end testing, alternative paths, and evidence-based verification.
  • Available across Devin Desktop and CLI, with stated rollout to Devin Web and Fusion.

Cons

  • The available source does not provide pricing, plan limits, integrations, setup requirements, security details, or team-administration information.
  • Benchmark results vary by task and effort level, so the headline scores do not establish performance for every software project.

FAQ

Where is SWE-2 available?

SWE-2 is available in Devin Desktop and CLI, with rollout to Devin Web and Fusion stated in the source article.

What is SWE-2?

SWE-2 is a coding model post-trained from Kimi K3 and designed for agentic software-engineering tasks across multiple reasoning-effort levels.

How do SWE-2 effort levels differ?

The source describes medium, high, and max effort levels. Medium is positioned for more cost-efficient performance on simple and intermediate tasks, while high and max spend more effort on complex tasks.

How does SWE-2 compare with SWE-1.7 on efficiency?

On FrontierCode 1.1 Main, SWE-2 medium scored higher than SWE-1.7 while taking 58% fewer turns and costing 81% less on average, according to the source article.

Quick Facts

Category
Developer tool
Product type
Agentic coding model
Platforms
Devin Desktop and CLI; rollout stated for Devin Web and Fusion
Effort levels
Medium, high, and max
Base model
Kimi K3, a 2.8T-parameter model
FrontierCode 1.1 Main score
50.0% for SWE-2 in the cited benchmark