MCode

Guide · SWE-2.1

What is SWE-2.1?

SWE-2.1 is Cognition's software-engineering model, announced on November 24, 2026. Cognition says it is a major upgrade over SWE-2 and that, like SWE-2, it was trained with pure reinforcement learning on Kimi K3. You can use SWE-2.1 in Devin. This site cannot call or host SWE-2.1: Cognition has not published an official public model API or open weights.

Read the comparison

In short

  • Announced by Cognition on November 24, 2026 as an upgrade over SWE-2.
  • Cognition says it was trained with pure reinforcement learning on Kimi K3.
  • You can use it in Devin Desktop and Devin CLI. Devin Cloud is a preview.
  • There is no official third-party public model API and no open weights.
  • This API serves MAI Code 2 and MAI Code 2 Flash only. It cannot call or host SWE-2.1.

Where SWE-2.1 runs

Devin's model documentation says SWE-2.1 is available in Devin Desktop and Devin CLI, with Low, Medium, High, XHigh and Max reasoning levels. Medium is the default. In Devin cloud sessions, SWE-2.1 is a preview through December 22, 2026.

Cognition also describes SWE-2.1 Ultrafast as the same model served faster through a Cerebras partnership, and SWE-2.1 Cyber as a version with more permissive safeguards for Devin Security. Those are Devin products. This site does not host them.

What Cognition reports

Cognition says much of the coding gain comes from general intelligence and long-horizon work, including cybersecurity. The figures below are Cognition's own reported numbers, from its November 24, 2026 post, not measurements by this site.

  • Terminal-Bench 4.1: SWE-2.1 50.0, SWE-2 24.2, Kimi K3.1 59.7.
  • FrontierCode 2.0: SWE-2.1 41.3, SWE-2 24.1, Kimi K3.1 19.9.
  • SWE Marathon v1.2: SWE-2.1 54.9, SWE-2 32.5, Kimi K3.1 38.8.
  • ExploitBench 80.0 and ExploitGym success 27.3, also Cognition's own scores. Cognition says it deployed safeguards aimed at a narrow set of high-harm activity.

What this API cannot do

Requests to maicode2.com can use mai-code-2 or mai-code-2-flash. They cannot use SWE-2.1. This site cannot call or host SWE-2.1, and it does not list it as a model.

If you want SWE-2.1, use Devin. If you want the coding model this API actually serves, that model is MAI Code 2, from Microsoft AI, not from Cognition.

Frequently asked questions

Who makes SWE-2.1?

Cognition. It announced SWE-2.1 on November 24, 2026.

Can I call SWE-2.1 from maicode2.com?

No. This site cannot call or host SWE-2.1. Devin Desktop and Devin CLI are where Cognition says you can use it. Devin Cloud is a preview.

Is SWE-2.1 open source?

No. Cognition has not published open weights or an official third-party public model API.

Is SWE-2.1 the same model as MAI Code 2?

No. MAI Code 2 is a Microsoft AI model that this API serves. SWE-2.1 is a Cognition model that runs in Devin.

Sources

Updated 2026-11-27. MAI Code 2 API is an independent service and is not affiliated with or endorsed by Microsoft or GitHub. MAI, MAI Code 2 and MAI Code 2 Flash are names of Microsoft models, used here only to describe them. Model output can be wrong; review generated code before you run it.