惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
IT之家
IT之家
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Help Net Security
V
V2EX
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 【当耐特】
月光博客
月光博客
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件

Visual Studio Code - Code Editing. Redefined.

Visual Studio Code 1.138 (Insiders) Visual Studio Code 1.137 (Insiders) Visual Studio Code 1.136 (Insiders) Introducing the Agent Host for persistent, portable agent sessions Visual Studio Code 1.135 (Insiders) Visual Studio Code 1.134 (Insiders) Visual Studio Code 1.133 (Insiders) Visual Studio Code 1.132 (Insiders) Visual Studio Code 1.130 (Insiders) Visual Studio Code 1.131 (Insiders) Visual Studio Code 1.129 (Insiders) How Prompt Tuning Improved GPT-5.5 in VS Code Visual Studio Code 1.127 Visual Studio Code 1.128 Iterating faster with TypeScript 7 Visual Studio Code 1.126 What 50,000 Runs of a 5-Line Eval Taught Us Use your own language model key in VS Code Improving token efficiency for GitHub Copilot in VS Code December 2025 (version 1.108) November 2025 (version 1.107) October 2025 (version 1.106) September 2025 (version 1.105) August 2025 (version 1.104) July 2025 (version 1.103) June 2025 (version 1.102) May 2025 (version 1.101) April 2025 (version 1.100) March 2025 (version 1.99) Visual Studio Code 1.114
MAI-Code-1-Flash: early results from real developer workf...
Microsoft · 2026-07-29 · via Visual Studio Code - Code Editing. Redefined.

July 29, 2026 by Faith Xu

In VS Code, we’re working to help you get more done with AI-assisted coding while making every token count. That means improving the entire experience, from the models we use to the product and infrastructure behind them, so you have options that fit different workflows, performance needs, and budgets. In The Coding Harness Behind GitHub Copilot in VS Code, we explained how VS Code's coding harness connects the model, tools, and editor experience to help the model work most effectively.

In this post, we look at how specifically training models for VS Code's harness can further improve quality and efficiency. The model we focus on is MAI-Code-1-Flash, Microsoft's lightweight coding model built for the fast, iterative coding tasks developers perform every day in GitHub Copilot. Since the model's introduction at Build, it has been running in production alongside leading coding models, giving us an early look at how it performs in real developer workflows.

The results show that pairing MAI-Code-1-Flash with the VS Code coding harness delivers strong coding quality with lower token usage, helping developers get more from their usage limits.

Quality and efficiency in production

When evaluating coding models, quality and efficiency matter. A model that uses fewer tokens lowers cost, but those savings are more valuable if developers can still accomplish their tasks effectively. The goal is to strike the right balance: strong coding quality while using tokens efficiently.

To understand how MAI-Code-1-Flash performs in that tradeoff, we analyzed aggregate data from developers who selected each model in VS Code Copilot Chat. We looked at both the quality of the generated code and how efficiently developers reached a durable result. For quality, we measured whether developers accepted generated suggestions and whether that code remained after active editing and at commit. For efficiency, we measured the median number of tokens generated per conversation turn and the median number of turns needed to reach a commit.

The results suggest that MAI-Code-1-Flash strikes an effective balance between quality and efficiency. It outperforms Claude Haiku 4.5 and GPT-5.4 Mini on quality. Larger-sized GPT-5.6 Luna and Kimi K2.7 Code achieve quality advantages, but require 67% to 94% more tokens per turn as well as more turns per commit.

Aggregated quality and efficiency metrics

Model Code survival rate Commit survival rate Accept rate Tokens per turn Turns per commit
MAI-Code-1-Flash Baseline (0%) Baseline (0%) Baseline (0%) Baseline (0%) Baseline (0%)
Claude Haiku 4.5 -2% -8% -10% -10% +28%
GPT 5.4 Mini -3% -8% -7% +7% +17%
GPT 5.6 Luna +3% +3% +4% +67% +17%
Kimi K2.7 Code +4% +6% -6% +94% +11%

Data from users who selected each model in VS Code Copilot Chat between 6/2/26 and 7/24/26. Metric definitions: Code survival rate = percentage of AI-generated code retained after 10 minutes of active editing. Commit survival rate = percentage of AI-generated code retained at Git commit. Accept rate = percentage of AI-generated suggestions accepted by the user. Tokens per turn = median number of tokens generated by the model per conversation turn (a single request-response exchange). Turns per commit = median number of conversation turns a user completes before reaching a Git commit.

Validating the results with Auto flights

As another way to validate the aggregated usage data, we ran A/B flights through the Auto model experience in VS Code Copilot Chat. Auto assigns models without requiring developers to select one, helping us isolate the model’s impact from differences in who chooses each model or the tasks they use it for. We then looked at engagement and repeat usage as signals of whether developers found the experience useful enough to keep using.

The results reinforced the same story. MAI-Code-1-Flash drove stronger engagement while remaining more token efficient than other lightweight models. Users were 6% more likely to return within two days than with GPT-5.4 Mini and 11% more likely than with Claude Haiku 4.5. Despite higher engagement, median token usage was 13% lower than GPT-5.4 Mini and 11% lower than Claude Haiku 4.5. In other words, people used MAI-Code-1-Flash more, and it still cost less to run.

Comparison User-initiated turns 2-day repeat usage 4-day repeat usage Total tokens
Claude Haiku 4.5 -5% -11% -37% +11%
GPT 5.4 Mini No statistically significant difference -6% -13% +13%

Taken together, the production metrics and Auto flights highlight the role MAI-Code-1-Flash is designed to play: delivering strong results on simple coding tasks while using tokens efficiently. To close, let's take a closer look at the model and the workflows it was built to support.

Designed for the way developers work

MAI-Code-1-Flash was developed to work closely with the VS Code coding harness and the real-world workflows it supports. It's particularly well-suited for lightweight, iterative work such as exploring code, making incremental changes, generating or refining tests, and fixing bugs. Its adaptive solution length keeps responses concise for simple requests and goes deeper only when needed. This means it delivers useful output faster, while also improving token efficiency.

The model was trained from scratch using clean, traceable data, without distillation from third-party models. The model will continue to improve over time based on aggregated usage signals from consumer plans, while Copilot Business and Copilot Enterprise customer data is not used for training.

Try it today, help shape what's next

MAI-Code-1-Flash is available today in GitHub Copilot. Try it alongside your current go-to model, see how it feels in your workflow, and share what works well or what you'd like to see improve in the Community Discussion, where the team is actively listening.

Your feedback also helps shape what's next. MAI-Code-1-Flash is just the first step in the MAI coding model journey. Larger MAI coding models coming later this year will extend the family to more complex tasks, with greater intelligence, deeper reasoning, and quality designed to compete with the strongest frontier models.

Happy coding! 💙