Microsoft Launches Purpose-Built Engineering Models MAI Code 2 and Code 2 Flash

Published · AI Daily — AI-assisted deep research, methodology & disclosure

Microsoft released MAI Code 2 and Flash. Microsoft claims flagship MAI Code 2 resolves 74.2% on SWE-bench Verified with 1.05M context; Flash delivers first-token latency under 150ms.

Microsoft AI (MAI) and GitHub announced at Microsoft Ignite 2026 that MAI Code 2 and MAI Code 2 Flash are now generally available. The two models are described as purpose-built for engineering work. They are rolling out across GitHub Copilot, Visual Studio Code, JetBrains IDEs and the Azure Microsoft Foundry platform. The announcement is credited to Microsoft AI and GitHub Engineering and is dated November 17, 2026.

Two complementary models

According to the announcement, the MAI Code 2 family was designed from scratch to balance frontier reasoning depth with low-latency interactive execution. The two models split the work.

MAI Code 2 (flagship) targets repository-wide multi-file refactoring, complex bug localization, architectural synthesis and end-to-end autonomous coding tasks. It includes an adaptive reasoning engine that supports five granular reasoning effort tiers: `low`, `medium`, `high`, `very_high` and `max`. A caller can choose how much reasoning to spend. Simple tasks can use a low tier, and hard ones a high tier.

MAI Code 2 Flash (interactive) is an ultra-fast, cost-efficient model for interactive inline code completion, targeted test generation, routine bug patching and explanation workflows. The announcement quotes a time-to-first-token below 150 milliseconds. That figure matters because it decides whether in-editor completion feels instant.

Technical specifications

  • **Context window:** 1,050,000 tokens in total, made up of 922,000 input context tokens and 128,000 output generation tokens. The two parts add up exactly to the total. A window of this size can hold a sizeable slice of a code base in one request, and still leaves a long output budget for patches or multi-file changes.
  • **Tool use and execution verification:** native function calling is calibrated for terminal execution, LSP symbol graph queries, and AST-aware file patching.
  • **Benchmark performance:** on SWE-bench Verified, MAI Code 2 reaches a 74.2% resolve rate. The announcement calls this state of the art and says it outperforms larger general-purpose models while using 35% fewer reasoning tokens. It does not name the models compared or the test conditions, and it gives no benchmark figure for Flash. For now, this is a vendor-reported number.
  • **Pricing:** in Microsoft Foundry, MAI Code 2 costs $3.00 per million input tokens and $12.00 per million output tokens. MAI Code 2 Flash costs $0.35 per million input tokens and $1.40 per million output tokens. At list price, Flash input and output are each about 11.7% of the flagship price, a little under one eighth. That suits high-frequency calls.

Why it matters, and what to check

The signal is clear. Microsoft and GitHub are placing their own engineering-focused models inside Copilot, and they use a flagship-plus-lightweight pair to cover two needs. One need is repository-level work that takes long reasoning. The other is latency-sensitive interaction inside the editor. The five effort tiers also show that the trade-off between cost and quality is being handed to the user instead of being fixed by the vendor.

Several points are missing from the source, so readers should hold their judgment. First, it does not say which effort tier produced the 74.2% result. Second, the baseline for the "35% fewer reasoning tokens" claim is not named. Third, no quality metric is given for Flash, only latency and price. Fourth, regions, plans and rate limits for general availability are not covered. Until those details appear, teams weighing a move should run their own comparison on their own code bases and tasks, and should not rely only on the figures in the launch post.

Sources

FAQ

How do MAI Code 2 and Flash differ?

MAI Code 2 is the flagship for repository-wide multi-file refactoring, complex bug localization and autonomous coding, with five reasoning effort tiers from low to max. Flash is ultra-fast and cheaper, built for inline completion and test generation, with sub-150ms time-to-first-token.

What are the context window and prices?

The context window is 1,050,000 tokens in total: 922,000 input and 128,000 output. In Foundry, MAI Code 2 costs $3.00 per million input tokens and $12.00 per million output tokens. Flash costs $0.35 input and $1.40 output per million tokens.

How should the 74.2% benchmark be read?

It is MAI Code 2's resolve rate on SWE-bench Verified. Microsoft says it beats larger general-purpose models while using 35% fewer reasoning tokens. The post names no compared models, test conditions or effort tier, and gives no Flash score, so treat it as vendor-reported.