MAI Code 2 in GitHub Copilot
Choose MAI Code 2 or Flash by the scope of a fix. Check which Copilot plans include each model, where to find the picker and how organization policy works.
Published
- GGitHub Copilot

Choose MAI Code 2 in GitHub Copilot when a fix depends on understanding several parts of your repository. Choose MAI Code 2 Flash when you can point to the code that needs explaining or changing. On Copilot Free and Student, Flash is the MAI option you can select.
When to choose MAI Code 2 or Flash
How much of the codebase does the model need to understand before it can propose a fix? Microsoft AI’s model page describes MAI Code 2 as a coding model for everyday engineering work that takes code through to production. Its lightweight sibling, MAI Code 2 Flash, is built for routine work developers repeat throughout the day.
Take a checkout bug. If the receipt displays the wrong currency symbol and you know which formatter produces it, give Flash the formatter, an example input and the expected output. A reviewer can judge that edit by looking at the function and its test. For an explanation alone, ask Flash “Explain how this function chooses a currency when the order has none.”
Now suppose the receipt shows dollars but the refund is issued in euros. You have a symptom, and the defect could be in the checkout, the stored order or the refund calculation. Choose MAI Code 2. Ask it to trace the currency through those files and identify where the values first diverge before suggesting a patch. Deep debugging, refactoring and changes that span files are the uses GitHub names for this model.

Which Copilot plans include each model?
GitHub added both models to the picker on November 17, 2026. The picker is the menu where you choose which model handles your request. The plan and policy details below were checked on November 19 against GitHub’s release entry.
Eligible annual subscribers also get access. GitHub says both models use usage-based billing. If you manage seats and need to budget for usage, see the GitHub Copilot pricing guide.
Where to find the models in the picker
Open the model picker in the client where you already work. GitHub lists the following locations for eligible users.
- Editors. Visual Studio Code, Visual Studio, JetBrains, Xcode and Eclipse.
- Terminal and agent. Copilot CLI (the command-line interface) and GitHub Copilot cloud agent.
- App, web and mobile. the GitHub Copilot app, github.com and GitHub Mobile on iOS and Android.
On Business or Enterprise, an administrator can manage each model through the model policy in Copilot settings. With default model enablement on, GitHub enables new models automatically unless the administrator explicitly disables one. If your organization turned off the global default, ask the administrator to enable the specific MAI model you need. That lets a lead make Flash available for routine fixes without changing the default for future releases.

What the release changes for an engineering lead
Treat the MAI entries as additional choices alongside the other models in Copilot. A team that already has a reliable model for a particular workflow can keep using it. If the decision is about using several models together, the Copilot Fusion explainer covers that separate choice. If you are deciding where developers should work in the first place, start with Claude Code vs GitHub Copilot.
Keep delegated work small enough to review. Both models support agentic coding, where the assistant works through several steps toward a result. Microsoft says it designed them for everyday engineering and identifies very long-running autonomous work as a limit. For the refund bug, ask for a trace and a regression test you can inspect before handing over a broader rewrite. Microsoft AI’s launch announcement
For users of the older MAI Code model, GitHub’s November 17 entry gives no deprecation date. Treat that date as the arrival of the new choices when planning a migration.
Common questions
What is mai code 2?
MAI Code 2 is Microsoft AI’s general-purpose coding model in Copilot. Pick it for work such as tracing a bug across a repository or making coordinated edits to several files.
What is mai code flash?
The new entry is named MAI Code 2 Flash. Microsoft designed it for frequent, focused tasks such as explaining a function or correcting a known error.
Is the mai code any good?
For a team decision, use a ticket with a known fix. Give the model the original bug report, then check whether the proposed patch addresses the cause, passes the regression test and stays within scope.
Get the newsletter for more practical guides to developer tools.
- Published
- Category
- Build







