Skip to main content
Post

MAI Code 2 and MAI Code 2 Flash in GitHub Copilot

GitHub added MAI Code 2 and MAI Code 2 Flash to Copilot, two Microsoft AI coding models you can pick in the model picker.

MAI Code 2 is the general-purpose one. It's aimed at deep debugging, multi-file implementation, refactoring, and repository-wide reasoning. MAI Code 2 Flash is the lighter, cheaper option for code explanations, targeted edits, routine fixes, and quick iteration. Both are built for agentic coding workflows, so you can match the model to the task.

Microsoft AI says it tuned the models for everyday enterprise coding, not harder problems like fundamental science research or very long-horizon agentic work. Its own benchmark numbers, averaged over four coding benchmarks, put MAI Code 2 at 98% of GPT 6.1 Sol's performance at 40% of the cost. Microsoft AI says MAI Code 2 Flash is comparable to GPT-6 Luna and Claude Haiku 5.5 at 65% and 20% of the cost. These are the publisher's figures, not independent tests.

MAI Code 2 is available on Copilot Pro, Pro+, Max, Business, and Enterprise. MAI Code 2 Flash also covers Copilot Free and Student. Both are for eligible subscribers on annual plans and are billed under usage-based billing. You can pick them in VS Code, Visual Studio, Copilot CLI, the Copilot cloud agent, the Copilot app, github.com, GitHub Mobile, JetBrains, Xcode, and Eclipse.

On Business and Enterprise, admins control access through the model policy in Copilot settings. New models are enabled by default unless the global default is off or the model is explicitly disabled.

Loading replies