Fixing a test that already points to a broken function is different from figuring out why a change across three modules broke an application. The first task has a clear starting point and a quick way to check the result. The second asks an agent to test hypotheses, navigate the repository and check for side effects. That distinction explains why Microsoft has put two new models in GitHub Copilot’s picker.

GitHub announced MAI Code 2 and MAI Code 2 Flash on November 17. Microsoft built MAI Code 2 for deeper debugging, refactors and changes spanning multiple files. Flash is aimed at explaining code, making targeted fixes and working through short edit-and-test cycles. Both target agentic coding. The model card describes reinforcement learning inside the execution environments used by Copilot CLI and the VS Code agent.

Where OpenAI and Anthropic fit

Microsoft compared Code 2 with OpenAI’s GPT-6.1 Sol and Anthropic’s Claude Opus 5.5. Averaging four coding benchmarks, it reported 98% of Sol’s performance at 40% of the cost and 96% of Opus’s performance at 5% of the cost. Each performance percentage is relative to the other model’s average in that comparison. It does not indicate what share of tasks Code 2 solved.

The Flash comparison used GPT-6 Luna and Claude Haiku 5.5 across three benchmarks. Microsoft describes the results as comparable on that selection, positioning Flash alongside models for frequent, cost-sensitive work. A small bug with a clear regression test is a sensible starting point for Flash. If the cause remains elusive after a few attempts, the same issue and tests give you a basis for trying Code 2, Sol or Opus.

What the benchmark average leaves open

The Code 2 comparison used DeepSWE 1.1, Terminal-Bench 2.1, SWE-Atlas and FrontierCode v1.1. Microsoft ran the first three on its internal MSBench platform using Copilot CLI at maximum reasoning effort and without subagents. The FrontierCode result came from Artificial Analysis. Flash was compared on the three internal tests. The results describe those conditions, including terminal tasks, while leaving open how the models behave in other execution environments or on tasks that depend on subagents.

Microsoft’s cost comparison includes a 50% promotional discount on MAI model pricing. GitHub bills the models by usage. When budgeting for a repository, the useful unit is the cost of an accepted change. A cheaper run can cost more by the time an engineer has retried the task or reworked the patch to pass the tests.

In the model card, Code 2 scored 73.2% on DeepSWE 1.1 versus 59.9% for Flash. On Terminal-Bench 2.1, the scores were 84.6% and 78.3%. Flash edged ahead on SWE-Atlas, which mixes codebase questions, test writing and refactoring, with 44.8% versus 43.1%. The gap is small, and the table gives no uncertainty interval to tell whether it would hold across repeated runs. Microsoft also trained the family for up to one million tokens of context. The effective limit in a product depends on the environment serving the model.

Trying the models in Copilot

Code 2 is available on Pro, Pro+, Max, Business and Enterprise. Flash also reaches Free and Student. The picker is available in environments including VS Code, Visual Studio, Copilot CLI and the cloud agent, subject to plan availability and organizational policies. Flash is also in limited-access preview in Microsoft Foundry. GitHub has scheduled the retirement of MAI-Code-1.1-Flash for December 18.

To see where the models fit, pick one short fix with a reproducible test and one change that cuts across modules. Start each run from the same commit with the same permissions and tools. Compare passing tests, the size of the diff, manual rework and cost. That gives you a way to tell where Flash handles the everyday workload and where a larger model saves time by getting to an acceptable patch in fewer attempts.