Technical report on the unified GitHub Copilot inline suggestions model


One model. Three kinds of edits. The full story behind how we built it.

In part one and part two of our blog series, we described how we unified three separate code editing models (completions, next edit suggestions, and long-distance next edit suggestions) into a single model behind the new GitHub Copilot inline suggestions experience. The full details of that unification process are now published on arXiv in our technical report, Building a Unified Inline Code Editing Model for GitHub Copilot.

Inside the technical report

The report follows the full journey of unifying nearby and long-distance edits and bringing code completion into the same model, sharing both the resulting approaches and the iterative process and experiments that led us to them. It covers the details behind data bootstrapping and curation, supervised fine-tuning, reinforcement learning and grader design, offline and online A/B evaluation, model selection, and more. We also present several ablation experiments along the way on the training recipe and end-to-end experience in the editor. The report closes by analyzing our process and results from several quantitative perspectives and sharing future directions.

Read the full report on arXiv.

Try it out

The unified Inline Suggestions experience is available now for paid GitHub Copilot users in VS Code. Update to the latest version of VS Code, then make sure next edit suggestions are enabled.

Give it a try the next time you are in the editor, whether you’re working on a refactor or writing a new function. We hope you enjoy the tab-tab-tab experience and we’d love to hear your feedback!

Contributors and acknowledgments

The unified inline suggestions model for GitHub Copilot is the result of a collaboration among many people at Microsoft. Below, we list the core contributors and the broader groups of collaborators who made this work possible.

Core contributors

Model Training, Data Curation, and Evaluation

Julia Gong, Benjamin Liggett, Shengjie Ma, Yu Hu, Elsie Nallipogu

Client Engineering

Ulugbek Abdullaev, Alexandru Dima

Science Product Management

Zhehui Liao, Luciana Abud, Nathan Halstead

Contributors

Benjamin Steenhoek, Gaurav Mittal, Fuhui Fang, Satarupa Guha, Hang Zhao, Anand Mooga, Cheng Long, Benjamin Simmonds, Soojin Choi

Acknowledgments

We thank the following collaborators whose insights and support made this work possible.

Science Tooling and Data Pipelines

Kevin Merchant, Sarah Widder, Abhijith Chatra, Suman Bhagavathula, Maoliang Huang, KwangJe Cho, Carl Brochu, Baoping Zhang, Shubhangi Thakur, Martin Valle, Farzad Eskafi

Experimentation, Product, and Review

Cindy Chiu, Amy Hartwig, Nick Trogh, Brigit Murtaugh, John Mogensen, Rahul Pandita, Mario Rodriguez, Kai Maetzel

Platform and Infrastructure

Jesten Herrild, Joel Dunham, Joseph Leinsdorf, Alejandro Oviedo Cruz, Boshi Lian, Shuhan Yan, Shiven Raina, Vidur Vatsalya, Vijetha Vijayendran, Meng Lan, Eddie Ailijiang, Ming Liu, Dharmesh Guna, Mostafa Elzoghbi

We extend deep gratitude to the VS Code and GitHub Copilot developer community for the ongoing feedback that pushes us to deliver the best possible experiences for builders worldwide.

Happy coding! 💙

Building on a shared foundation


The Copilot harness, built on the Copilot SDK, is now the default for new agent sessions in VS Code. Our goal is to keep the capabilities you love from VS Code’s original, editor-specific Local harness and add the benefits of a runtime shared across Copilot products. By sharing fixes and optimizations instead of repeating work on separate harnesses, we can deliver improvements faster and focus more on important bugs, workflow gaps, and new capabilities.

Over the last several months, we’ve progressively rolled out the Copilot harness as the default, while monitoring data and user feedback at every stage to improve the experience. The Local harness is now deprecated and remains available during a three-month transition period before removal in February 2027 (unless your organization restricts its use).

TL;DR

  • Efficiency and reliability gains: We assess both aspects through everyday VS Code workflows and controlled evaluations:
    • In one online Business/Enterprise rollout comparison, the group defaulting to the Copilot harness used 14.2% fewer tokens per active device than those on the Local harness, with 9.6% lower estimated processing cost.
    • In offline side-by-side VS Code evaluations, the Copilot harness had fewer errors and interruptions during long coding tasks than the Local harness.
    • On repeatable tasks with the same model, published benchmarks found comparable task completion with fewer tokens in most tested configurations versus model-provider harnesses. They evaluated Copilot CLI, which shares the runtime VS Code integrates through the Copilot SDK.
  • Capabilities beyond the Local harness: The shared foundation enables features and protections beyond what the Local harness supports:
  • Your workflow and transition:

Why one shared harness

An agent harness supplies context and tools, coordinates actions such as edits and tests, and returns results to the model.

We first built the Local harness for interactive coding before a shared Copilot harness was available. That work shaped how you review agent edits and use tools supplied by VS Code extensions and MCP servers. We continually refined the harness with model providers and your feedback.

The Copilot harness uses the Copilot SDK to combine VS Code’s supported editor integrations with the runtime shared by Copilot CLI, the GitHub Copilot app, and other Microsoft products. The runtime is included in VS Code and works with existing Copilot plans.

Fixes or optimizations to that shared runtime benefit VS Code and other Copilot clients. This provides a more consistent experience across clients, and leaves more engineering time for VS Code-specific features, fixes, and workflow improvements.

Screenshot showing Copilot selected in the harness picker, with Local and other harnesses listed.

What the data shows

We expanded the rollout of the Copilot harness as the default over several months, starting internally, then across Copilot plans, VS Code Insiders and Stable, and editor and Agents-window workflows. At each step, we reviewed key metrics alongside your feedback, and then used those findings to improve the product and plan further experiments.

We combine online evaluations, which show how the harness performs as people really work in VS Code, with offline evaluations, which run realistic development tasks under repeatable conditions. These offline evaluations include VS Code-specific comparisons and shared-runtime benchmarks. We’ll next look at what these measurements tell us about efficiency, reliability, and task outcomes, then turn to how your feedback has shaped the experience.

Real online workflows: the VS Code rollout

Efficiency and processing cost

Across the Stable Business and Enterprise rollout stages we analyzed, estimates consistently pointed toward lower processing cost per active device with the Copilot harness as the default.

One analysis followed Copilot Business and Enterprise users on VS Code Stable in October. New chats defaulted to the Copilot harness in one group and the Local harness in the other. The reduction in estimated processing cost per active device was statistically significant. These group averages describe resource use across varied day-to-day work, not repeated runs of the same task or how much work was completed:

Rollout measurement Change with the Copilot harness as the default
Tokens used per active device 14.2% fewer
Model requests per active device 7.7% fewer
Estimated processing cost per active device 9.6% lower
Estimated processing cost per model request 2.3% lower

Note: Estimated processing cost is the cost of the AI model work behind an agent’s requests: processing context and generating responses. We estimate it from token usage, accounting for the model used and cached input, with the same model-specific rates applied to both groups. The calculation uses model-usage data rather than billing records (it doesn’t report the AI credits charged).

Quality and responsiveness

To gauge and improve quality, we tracked signals such as successful turn completion, errors, cancellations, and latency. Breaking these down by categories, like first requests versus follow-up requests, revealed different opportunities.

For example, sampled results from first requests have shown room to improve latency. We’re continuing to work on that initial wait. Earlier improvements include changes in VS Code version 1.143 that reduced delays caused by MCP servers that didn’t finish loading their tools. Responsiveness matters when you return to earlier conversations, too. 1.145 improved reopening and browsing long chats, including rendering terminal output as you reveal it.

Offline evaluations: reliability and task outcomes

Comparing the Copilot and Local harnesses

We ran offline evaluations comparing the Copilot and Local harnesses in VS Code, matching the task, model, and reasoning effort in each comparison. Across our evaluation suites, repeated runs over multiple days produced 12,845 side-by-side comparisons.

We ran 112 long coding tasks from the DeepSWE benchmark across seven models. Each task was a multi-part feature request in an open-source project, such as adding standards-based deprecation headers to FastAPI.

These runs showed fewer errors, fewer hangs or crashes, and higher task completion with the Copilot harness. The table shows overall results across the seven tested models:

Result Local harness Copilot harness
Runs ending in an error 5.3% 1.9%
Runs that hung or crashed 3.1% 0.2%
Task completion, counting errors as incomplete 54.8% 61.2%

A session that stalls partway through a task can mean investigating what happened, restarting, and waiting again. That’s why we measure errors, hangs, and crashes alongside task completion.

Evaluating the shared runtime

As another example, our published evaluation of the shared Copilot harness compared Copilot CLI with model-provider harnesses using the same models and tasks. VS Code’s Copilot harness uses that same runtime through the Copilot SDK, so the findings can guide improvements in VS Code too.

Findings included:

  • Token efficiency: The Copilot harness used fewer tokens across most tested configurations.
  • Task resolution: Task completion was broadly comparable with the model-provider harnesses. This is important since lower token consumption is useful only when the agent still gets the work done.

Improvements shaped by your feedback

Thank you for taking the time to share your experiences and workflows – it has helped us prioritize a variety of improvements. Here are a few of the themes we heard most often:

  • Ask: explore without edits

    • What we heard: It can be helpful to have a dedicated read-only option to understand code and discuss an approach before making changes.
    • What shipped: Ask returned as a built-in agent in 1.142. Select Ask in the agent picker to explore a question without making code changes.

    Screenshot showing Ask highlighted in the agent picker.

  • Keep and Undo: review incrementally

    Screenshot showing changed files in chat with Keep and Undo controls for reviewing edits.

Migration guidance and work underway

We’ve been actively working to make the transition to the Copilot harness as smooth as possible. You may not need to change your workflow very much to use the new harness, and as described above, we continue to actively ship improvements based on your feedback.

Where some workflows may require updates to your setup, we aim to update our documentation and in-product guidance to help you identify any steps to take.

Our transition guide on moving to the Copilot harness is a great starting point to explore what changes. Below are a few areas to check based on themes we’ve heard most often, including where your organization’s administrator may need to help.

Customizations: review what needs to migrate

Switching harnesses doesn’t automatically migrate every customization. For example, recurring prompt files may need conversion to skills.

As another example, chat participants need adaptation. The Chat Participant API predates VS Code’s agent loops, and today, custom agents, skills, and tools let integrations contribute directly to the agent’s workflow instead. Participant authors can use the participant migration guide.

In VS Code, you can use command Chat: Open Customizations, select Migrations, and review detected items that may need your action. The harness transition guide’s full checklist covers hooks, MCP setup and authentication, file locations, and other compatibility checks.

Screenshot showing the Migrations view in Customizations, with a prompt-to-skill conversion notice and items to review.

BYOK and locally served models

BYOK and locally served models remain options in supported local setups. Use Chat: Manage Language Models and the BYOK guide to configure your provider.

We’re actively working toward remote BYOK support with the Copilot harness for SSH, WSL, and Dev Containers before the Local harness is fully retired.

Organization rollouts and enterprise benefits

The Copilot harness supports additional runtime-managed controls that the Local harness can’t enforce, including:

  • Managed permissions to block prohibited agent operations and control which approval levels developers can use.
  • Managed sandboxing to set file-system and network boundaries for agent commands.

Your administrator may need to coordinate some of the transition with required integrations and security policies. The organization rollout guide provides more information.

Keep shaping what comes next

We’d love your feedback as we continue improving the efficiency, performance, and effectiveness of agents in VS Code. Please continue to use (or switch over to) the Copilot harness, and tell us what’s working well and what would make the Copilot harness more useful for your workflows. Please share a suggestion or report an issue. Thank you for helping us improve.

Happy coding! 💙

Tune GitHub Copilot Inline Suggestions with Configurable Eagerness


Choose how proactively Copilot offers inline suggestions.

A helpful suggestion at the wrong moment can still feel like an interruption. When you’re completing a familiar pattern, you may want Copilot to anticipate several changes ahead. When working through delicate logic, you may prefer Copilot to scope its changes to the statement at hand and leave the next decision to you.

Community feedback about inline suggestions made both preferences clear: some developers wanted fewer suggestions, while others wanted Copilot to do more. No single default could satisfy everyone. In earlier posts about training the 3-in-1 inline suggestions model covering Completions, NES, and Long-Distance NES (part one, part two), we explained how developer feedback helped us improve the default experience. This strong default is a great starting point, but developers differ in how much assistance they prefer. We wanted to let them tailor their experience to their own preferences.

Configurable eagerness gives developers more control over how proactively Copilot offers inline suggestions. We trained the inline suggestions model to support three modes: low, medium, and high eagerness. In this post, we’ll explain how we defined and trained those behaviors, what our first approach taught us, and how on-policy distillation (OPD) and reinforcement learning (RL) made the feature easier to carry forward to future models.

Introducing configurable eagerness

We define eagerness along two dimensions: how often the model offers a suggestion and the size of each proposed edit.

Eagerness setting Intended behavior
Low Offer fewer suggestions and favor smaller, more conservative edits.
Medium Provide the current ‘default’ level of assistance.
High Offer suggestions more proactively, including larger edits when appropriate.

These settings guide how Copilot behaves rather than imposing strict limits on suggestion timing or size. Low eagerness still offers complete, useful suggestions; it’s simply more conservative. High eagerness may propose more and larger suggestions, but only when that work is relevant to the user’s current task.

This demo shows a simple example: from the same starting point (class ModelManager:), each setting produces different behavior. Low eagerness proposes five small, incremental suggestions and leaves it to the developer to decide which methods to add and what validation they need. High eagerness proposes three larger suggestions that anticipate follow-on work, such as raising a KeyError when attempting to remove a model that doesn’t exist.

Animated side-by-side comparison of Low, Medium, and High eagerness building a Python ModelManager class. Footer labels report lines and characters added; callouts contrast incremental suggestions at Low with KeyError validation at High.

Figure 1. Low, medium, and high eagerness while building a ModelManager class.

To train these behaviors, we needed a measurable definition of eagerness. Because our model outputs suggestions in a diff-based format, we used edit distance (the number of characters changed by a suggestion) as a proxy for eagerness, capturing both edit size and frequency1.

One model, three modes

We considered training a separate model for each eagerness level, but this approach would have multiplied future deployment and upgrade complexity. Instead, we trained one model to produce all three behaviors (low, medium, and high eagerness), conditioned on a lightweight control tag:

Eagerness setting Control tag
Low <|aggression|>low<|/aggression|>
Medium No change
High <|aggression|>high<|/aggression|>

We trained the model to interpret this tag as an eagerness control: it produced more conservative suggestions for low eagerness and more proactive suggestions for high eagerness, while preserving its default behavior for medium.

We started with supervised fine-tuning (SFT). For every training prompt, we sampled responses from variants of the model with varying levels of eagerness, filtered to high-quality responses, and ordered the responses by edit distance to produce examples of low, medium, and high eagerness for each prompt in the dataset.

Supervised fine-tuning workflow from variant model responses to three eagerness training sets, described below.

Figure 2. Supervised fine-tuning for configurable eagerness.

The training dataset is sent to model variants with different eagerness settings, and their responses are filtered by eagerness and quality into low-eagerness responses with prompts, default responses, and high-eagerness responses with prompts. These three groups form the dataset for SFT, followed by RL and evaluation.

This approach fit naturally into our existing reinforcement-learning pipeline. Most of the work happened during supervised fine-tuning, with only minimal changes to the RL setup:

  • SFT taught the model the new low-, medium-, and high-eagerness behaviors.
  • RL improved overall suggestion quality while preserving those learned behaviors.

Making configurable eagerness portable across models

The SFT approach worked, but it had two limitations that made it difficult to scale: it depended on pre-existing model variants with different eagerness levels and required retraining on responses from those models. Adding the feature to an improved base model would therefore mean training new models and then retraining from scratch. We needed a way to preserve a new model’s default behavior while adding only the low- and high-eagerness modes.

The key insight was that instead of relying on multiple model variants, we could use the production model to generate and compare multiple variants of a suggestion.

To make eagerness portable across future base models, we separated the behavior we wanted to preserve from the behavior we wanted to change. The training objective had two parts:

  • For medium eagerness, match the behavior of a reference inline suggestions model.
  • For low and high eagerness, move edit distance below or above the reference model’s medium prediction while preserving suggestion quality.

Portable post-training workflow combining distillation, quality, and eagerness objectives, described below.

Figure 3. Portable post-training with on-policy distillation for configurable eagerness.

The training dataset branches into default prompts and low- and high-eagerness prompts. Default prompts and the reference model contribute the distillation objective, while low- and high-eagerness prompts contribute quality and eagerness rewards; the combined objective feeds RL and evaluation.

For medium eagerness, we used on-policy distillation (OPD) to preserve the reference model’s default behavior2. The model under training generated responses, and the reference model supplied token-level probabilities on those same generated prefixes. Training then minimized the difference between the two models’ predicted token distributions, encouraging the model to behave like the reference. This taught the model to match the reference on its own generated responses at medium eagerness, while low- and high-eagerness modes were learned through their rewards.

For low and high eagerness, we reused the quality graders developed for the 3-in-1 model’s SFT and RL, then added a relative eagerness reward based on the response’s edit distance compared to the reference model’s medium response. Low eagerness was rewarded for proposing a smaller edit than the reference. High eagerness was rewarded for proposing a larger one. In both cases, the quality reward prevented the model from optimizing edit distance at the expense of usefulness.

Mitigating reward hacking

Reward hacking occurs when a model finds a way to increase its measured reward without producing the behavior the model developer intended to encourage. During development, we observed such failure modes in both of the new eagerness settings and added mitigations for each.

High eagerness: An early reward design did not apply the quality grader to the low- and high-eagerness modes. In that training run, the model sometimes proposed unrelated functionality or unnecessary formatting changes while increasing edit distance, as seen in the example below.

We addressed this failure mode by balancing eagerness rewards with rewards from the RL quality grader, plus added instructions to allow legitimately broader edits. Our offline Simulation Tests (STests) caught this issue.

 class SplashStorageService implements ISplashStorageService {
     _serviceBrand: undefined;
+    private _windowSplash: IPartsSplash | undefined;
+
     readonly saveWindowSplash: (splash: IPartsSplash) => Promise<void>;
+    readonly getWindowSplash = (): IPartsSplash | undefined => this._windowSplash;

     constructor(@INativeHostService nativeHostService: INativeHostService) {
-        this.saveWindowSplash = nativeHostService.saveWindowSplash.bind(nativeHostService);
+        this.saveWindowSplash = async (splash: IPartsSplash) => {
+            this._windowSplash = splash;
+            return nativeHostService.saveWindowSplash(splash);
+        };
     }
 }

Figure 4. Example of an over-eager suggestion before mitigation. The model unnecessarily added caching and expanded the service’s API.

Before-and-after Simulation Tests chart showing high-eagerness quality recovering after mitigation; trends and approximate values follow.

Figure 5. Benchmark results before and after mitigating excessive suggestions on the STests benchmark.

The chart plots training steps against the percentage of bad suggestions avoided, on a scale from 60% to 100%. The production baseline stays near 89%; before mitigation, the high-eagerness score falls to about 66% by the final plotted step, while low and medium eagerness remain near the baseline. After mitigation, all three modes stay near the baseline.

Low eagerness: One training run produced smaller measured edits partly by minifying suggestions: removing whitespace and delimiter characters or shortening variable names while maintaining syntactic correctness. This is technically shorter code but is much less desirable! We mitigated this behavior in two ways:

  • We normalized whitespace and delimiters before calculating edit distance, which removed any possible advantage from deleting whitespace.
  • We added LLM-based grading for less deterministic cases involving variable names and delimiters.

We baked this into our evaluations by adding a deterministic minification check to the training and evaluation pipeline so this failure mode can be screened in subsequent runs.

Before mitigation After mitigation
class ModelManager: # user typed
    # model suggestion
    def __init__(self):self.models=[]
    def add(self,m):self.models.append(m)

def main():
    m=ModelManager()
    m.add("model1")
main()
class ModelManager: # user typed
    # model suggestion
    def __init__(self):
        self.models = []

    def add(self, model):
        self.models.append(model)

def main():
    m = ModelManager()
    m.add("model1")

main()

Figure 6. Example of minification before and after mitigation.

Online results

We evaluated the configurable model in A/B experiments against the production 3-in-1 model. The results below highlight statistically significant changes. No other key metrics changed significantly from the baseline.

Low eagerness Medium eagerness High eagerness
29% lower dismissal rate and 28% shorter suggestions than medium eagerness. No key metrics changed significantly from the baseline. 40% increase in accepted and retained characters, 40% more suggestions shown, and 22% longer suggestions than medium eagerness3.

These findings indicate that the configurable model behaved as intended: low eagerness was more conservative, high eagerness was more proactive, and medium preserved the default experience.

What we learned

  • Pluggable features simplify development and deployment. The key was separating what should change (eagerness) from what should remain stable (base-model quality). Instead of embedding eagerness in the full SFT recipe, the post-training approach starts from the production model, preserves its default behavior through the reference objective, and adds targeted objectives for low and high eagerness. That separation lets us carry the feature forward without rebuilding the entire training recipe.
  • Reliable offline-to-online alignment accelerates iteration. Our offline benchmarks track online outcomes closely. They revealed that optimizing high eagerness for edit distance alone could reduce quality and helped us quickly develop a reward that balanced eagerness and quality.
  • Dogfooding findings should become regression tests. As with the Qualitative Must-Haves benchmark, internal use surfaced issues that offline examples alone could miss because timing, cached suggestions, and surrounding tools all affect the experience. For example, several examples of reward hacking were caught during dogfooding. We turned those findings into repeatable checks and used them to monitor the final model’s quality.

What’s next

Configurable eagerness is a first step toward inline suggestions that adapt to each developer and task. We’re exploring two directions:

  • Automatic eagerness: Adjust how proactively Copilot offers suggestions based on the current context, while keeping developers in control of the experience.
  • Learning from experience: Use signals from rejected, modified, or corrected suggestions to reduce repeated errors and better align future suggestions with a developer’s intent.

The goal isn’t simply to suggest more or less code. It’s to provide the right level of assistance for the moment, and improve that fit over time.

Try it out

Configurable eagerness is available to paid GitHub Copilot subscribers in VS Code. Update to the latest version of VS Code, confirm that Next Edit Suggestions are enabled (they are on by default), then open the Copilot settings menu and choose an Eagerness setting. Try each mode to find the level of assistance that works best for you, and please share your feedback in the VS Code repository.

Screenshot showing the Copilot settings menu with Next edit suggestions enabled and the Eagerness dropdown outlined in red, listing Auto, Low, Medium, and High.

Help shape what’s next

We’re constantly working to improve the model, and your feedback can help. Sign up to participate in our user studies and help shape future improvements.

Join a user study

Acknowledgments

Thank you to the developer community for your ongoing feedback that shaped configurable eagerness, and to the combined teams of researchers, engineers, PMs, and designers across VS Code, GitHub Copilot, and Microsoft for their contributions, testing, and support throughout development.

Special thanks to Alexandru Dima, Julia Gong, Satarupa Guha, Yu Hu, Ben Liggett, Shengjie Ma, Gaurav Mittal, Elsie Nallipogu, Vedha Ranganathan, and Nick Trogh for their insightful feedback on this blog post.

Happy coding! 💙


[1] A no-edit response has distance zero, while a nonzero distance counts the characters changed in a proposed edit, so the distribution reflects both how often edits are proposed and how much they change.

[2] Here, the reference model and the model under training share the same base architecture; our application of distillation preserves behavior from the reference model rather than compressing a larger model into a smaller one.

[3] Raw dismissals were also higher alongside the increase in shown suggestions, but dismissal rate did not change significantly.

VS Code Wrapped: GitHub Universe 2026


When we gathered at GitHub Universe in October 2025, working with agents in VS Code was still relatively new. A year later, working with agents has become the new normal. A single developer can put several agents to work on different problems, keep coding while those tasks move forward, and check back in to review the results. Work can continue on another machine, in another app, or in the cloud after your laptop closes. The editor that helps you write code is also becoming the place where you coordinate much more of the work it takes to ship software.

Imagine handing off a feature to Copilot, while an agent using the Claude harness investigates a bug, then opening the running app in a browser that both you and the agent can see and control. Project instructions and tools give those agents the context to work, and the Agents window brings their progress and changes together for review.

When you hand a task to an agent, it shouldn’t matter which app you’re using to launch the task. When you switch to another tool, the task should continue running. Over the last releases, we’ve worked to make these connected, continuous experiences across VS Code and other Copilot apps become reality.

In this blog post, we’re zooming into how far VS Code has come since the last Universe, and what you can do with it today.

Screenshot of the Agents Window

Agents that keep working

Developers can hand off more of the work without handing over the decisions that matter. We built on our Language Server Protocol and Debug Adapter Protocol experience to create the Agent Host Protocol (AHP), which just went 1.0.

Just as a language server makes code completion and Go to Definition available to different editors, an Agent Host brings agent functionality into an independent process. It manages sessions and provides access to multiple harnesses, models, files, and terminals.

AHP lets clients connect to those sessions and stay in sync. Cloud sessions run on GitHub’s infrastructure, so closing your laptop doesn’t stop them. You can continue the same session in VS Code, the GitHub Copilot app, GitHub Mobile, github.com, or Copilot CLI. And because the protocol is open, anyone can build a client that works with the same live sessions as VS Code.

Choosing your agent

Screenshot of selecting a harness

The agent harness is what coordinates the agent loop and connects the language model to context and tools.
We combined our Local VS Code harness with the Copilot CLI harness to create the new Copilot harness, now the default for new sessions in both the editor and Agents window. Built on the Microsoft Copilot SDK developed by GitHub, it brings more consistent agent behavior across VS Code, Copilot CLI, and the GitHub Copilot app. This also means that you can reuse your agent customizations across different Copilot experiences without modifications.

You can also use the Claude and Codex harnesses in VS Code through the Agent Host. Each runs on its provider’s own agent harness, with its own runtime and capabilities. VS Code brings their sessions together in one place, where you can manage work across agents without requiring every agent to work the same way.

Choosing your model

Access to multiple models remains one of Copilot’s pillars. The model picker lets you select from Copilot and bring your own key models. You can specify options like reasoning effort and context size to optimize the model configuration for the task.

As newer and more capable models become available, choosing the right model for the task is becoming more and more difficult. Maybe one model is not the best for each part of the task.
Copilot Fusion autonomously chooses one model or orchestrates a set of models to solve the task at hand. In the Agents Window, you can also use the Compare Models feature in Preview to run different models and harnesses on the same task, review results side by side, and combine the best ideas. Together, these options help you balance speed, cost, and quality.

Managing parallel work

The work we started with Agent HQ in VS Code has grown into the Agents Window, a dedicated space to manage agents across all your workspaces and environments. Run agent sessions in parallel, follow progress, and review changes from a single interface. Seamlessly switch between the editor and the Agents window without starting over. Both views stay in sync with the same live Copilot session. For recurring tasks, use automations, either locally or in the cloud. To avoid conflicts, worktrees help you keep changes isolated between agents.

And when you need to dive into the code or run a debugging session, you can switch to the editor and back to the Agents window at any time. Your active sessions remain running uninterrupted.

The Agent Host is a separate process that lets the Agents window connect to multiple agent sessions at once, including those on remote machines over SSH or dev tunnels, or sessions running in the cloud. Remote agents use that machine’s code, tools, and dependencies and keep working after you disconnect, as long as the machine and host stay running.

Screenshot of multi host interface

Shaping your agents

Instructions, skills, hooks, custom agents, and plugins help agents understand your project conventions and workflows. Projects already customized for the Claude Code or OpenAI Codex developer tools can use that setup with their respective harnesses, without rebuilding it for VS Code.

Support for the Model Context Protocol, including MCP Apps, connects agents to your tools and services. Extension authors can contribute agent tools and MCP servers through the Marketplace.

Copilot connectors, now in preview, bring context from services such as Slack, Notion, and Microsoft Learn into your agent sessions without requiring you to install or manage an MCP server. Connect once and reuse the connection across supported Copilot clients signed in with the same account. Connectors work with the Copilot harness and are available on all Copilot plans. For Business and Enterprise plans, administrators must allow editor preview features.

For organizations, managed settings apply policies across teams, while sandboxing can restrict agent access to files and network resources.

Beyond the chat

The integrated browser gives you and your agent a shared view of a page, so you can both see and interact with it without leaving VS Code. Your agent can use Playwright to test a workflow, check the results of its changes, and help identify web accessibility issues.

Some workflows are easier to navigate visually than through a conversation. Canvases, now in preview, let you create interactive interfaces for working with your agent and its context, such as a task board for tracking a project. You can also choose from readily available canvases. The Markdown editor lets you edit a rendered plan or document directly and leave comments for your agent to act on, rather than describing every revision in chat.

Completing a task might mean working with a desktop application that doesn’t have an MCP server or another tool integration. Experimental computer use lets your agent interact with those applications on macOS and Windows by clicking controls and editing text. You control application access, and organizations can disable it through policy.

With models that support image generation, you can create visual assets for your project alongside the code, whether you’re exploring a design idea or building a prototype.

For a little fun, there’s Blobby, the VS Code pet who reacts as you work with agents, with achievements to unlock along the way.

Still your editor

We remain just as committed to the editor you rely on every day. Precision editing, code completion, navigation, refactoring, and debugging remain at the heart of VS Code. Next edit suggestions continue to improve with new models and are available to Copilot Free users.

The extension ecosystem remains central to making VS Code your own, from language support to AI extensions like Claude Code and Codex. And it has never been easier to build your own extension.

Last, but not least, our UI modernization work brings shared design choices to the editor and Agents window for a clearer, more consistent experience that preserves your customization and familiar workflows.

Screenshot of the modernized VS Code interface.

Feedback and ideas from the VS Code community have shaped how the product has evolved over the past year. Please keep sharing what is working and what could be better in VS Code GitHub issues!

Happy coding! 💙

Modernizing the VS Code UI


VS Code has changed a lot since its first preview in 2015. Tabs, themes, and new ways to organize your work have made it more capable, but over a decade of adding and refining features has also introduced visual complexity and inconsistencies across the workbench.

This modernization isn’t about reinventing the editor. We’re refining the familiar interface to make its hierarchy clearer, reduce distractions, and give VS Code a shared design foundation that can support both editing and newer workflows such as agent sessions. The goal is a more coherent, approachable experience without giving up the density, customization, or muscle memory developers rely on.

The modernized UI is available today in preview. The work began with the 2026 color themes, expanded through the Agents window, and is now shaping the editor itself. In this post, we’ll share how the modernization evolved and how your feedback continues to shape it.

An interface that’s always evolving

Some interface changes have been small refinements. Others have introduced new ways to organize your work. Even features that now feel like part of the original editor arrived gradually.

Timeline showing major VS Code interface milestones from 2015 to 2026.

The timeline highlights the first preview in 2015, editor tabs in 2016, the new tree widget in 2019, the Dark Modern and Light Modern themes in 2023, and the modernized UI preview in 2026.

Screenshot showing overlapping VS Code windows with the classic and modernized interfaces, connected by an arrow.

The previous workbench design, which we refer to as the classic UI, and the modernized UI preview.

We continued refining each feature after it was introduced, guided by feedback across different themes, layouts, and workflows. The current modernization follows the same approach.

The first step: color

Color is part of how you make VS Code your own, but it also shapes how quickly you can read the interface. A balanced palette helps important content and states stand out without making every part of the workbench compete for attention.

We began the modernization journey by rethinking color with the Dark 2026 and Light 2026 themes. We looked at workbench colors and syntax highlighting as one experience, establishing a visual foundation that we later carried into the modernized UI. A tighter range of surface colors creates a clearer hierarchy and keeps code at the center. More consistent hover, focus, selection, validation, and agent states help the interface read clearly in both light and dark environments.

Screenshot showing overlapping VS Code windows using the Dark 2026 and Light 2026 themes.

Dark 2026 and Light 2026 themes.

Color gave us a starting point, but creating a more cohesive interface required shared rules for spacing, typography, surfaces, and controls. The opportunity to develop those rules came with a new kind of VS Code window.

One VS Code, different ways of working

The Agents window became available in Stable as a Preview earlier in 2026. It brings the full agent workflow into one place, from starting sessions and following progress to reviewing results. It represents a new way of working in VS Code, centered on delegating tasks and reviewing work as it progresses. Supporting that shift called for a fresh approach to the interface, so session state and next actions remain easy to scan without crowding the prompt and review areas.

We’re aligning the Agents and editor windows around the same approach to typography, spacing, colors, tabs, and controls. Moving between them should feel like changing how you’re working, not switching to a different product. That doesn’t mean making the layouts identical or making everyone’s VS Code look the same. Each window remains optimized for its purpose, and you can still choose a theme, adjust density, and arrange your workspace to suit your screen and workflow.

The existing workbench was designed around direct interaction with files and had evolved component by component. Spacing, typography, surfaces, and controls didn’t always follow a shared system, which made it harder to adapt the interface to this new workflow or carry improvements across windows. The Agents window gave us a place to develop that shared design system.

We worked through those design decisions together and tested how they supported managing sessions, following progress, and reviewing changes. The result was a shared visual language we could refine across VS Code, not a separate identity for the Agents window.

The Agents window showing the Sessions and Customizations sidebar, new-session composer, and Files panel.

The Agents window organizes the interface around agent sessions and reviewing their work. The screenshot shows an early implementation of the updated design system.

Once those decisions worked together in the Agents window, the next question was whether the same system could support the editor. The editor brings different demands, including dense file navigation, multiple editor groups, and long-established workflows.

Bringing the shared system into that environment became the next phase of the modernization. Rather than redesigning file editing itself, we started with the shared workbench shell: the foundational areas and controls people see and use across workflows. These elements define how the interface is organized and how people move through it. Starting there let us improve consistency while preserving dense navigation, multiple editor groups, and long-established patterns.

As the workbench had grown, related parts such as the Activity Bar, side bars, editor groups, panel, tabs, and status bar had developed different approaches to common design problems. The initial work focused on:

  • Separating major areas of the workbench clearly without making them feel disconnected.
  • Making controls for resizing and moving panels easier to discover.
  • Simplifying typography and visual hierarchy so your work remains the focus.
  • Using a consistent approach to spacing, corner radii, colors, and elevation.
  • Refreshing tabs while preserving customization.

Shared design tokens provide named values for spacing, sizes, and colors instead of defining them separately in every component. This lets us adjust the interface consistently and support different densities and themes.

An earlier editor window and Agents window shown side by side, each based on its own UI foundation.

Earlier: the editor and Agents experiences began with layouts shaped independently around their workflows. Both windows use Dark 2026.

The modern editor window and Agents window shown side by side with consistent spacing, surfaces, typography, and controls.

Now: a shared design system creates a stronger family resemblance while each window remains optimized for its purpose. Both windows use Dark 2026.

Rolling out and learning from feedback

We introduced the modernized UI gradually so we could learn from increasingly broad groups of developers before making it the default. It first appeared as an experimental setting in Stable and was enabled by default in Insiders. We then ran a controlled experiment in Stable for a subset of users. After learning from that rollout, we enabled it by default while keeping the option to return to the classic UI during the transition.

As the preview reached more people, our design assumptions met the realities of different displays, zoom levels, themes, and workflows. We opened a public feedback discussion, and developers shared dozens of detailed examples. We combined that feedback with individual issue reports and team self-hosting to identify patterns rather than treating any screenshot or preference as universal.

Several common themes emerged:

  • Overall density: Gaps and panel padding left less room for code, tree rows, and terminal output, particularly on smaller displays and layouts with several editor groups.
  • Editor tabs: The pill design made the active file feel detached from its editor, while tab labels and actions competed for limited horizontal space.
  • Status bar: Wider item spacing reduced how much information fit before items were hidden.
  • Panel boundaries: Separators and resize controls needed to be easy to find without becoming visually distracting.
  • Theming and contrast: Theme users and authors needed more control over new surfaces, borders, and active states.
  • Responsiveness: Some reports called out rendering performance as the workbench updated.

On a 1920 x 1080 display at 100% zoom, the modernized UI currently uses approximately 20 px more horizontal space and 12-18 px more vertical space, depending on layout. We added space to separate content and make controls easier to find, but that also leaves less room for your work. Your feedback highlighted the importance of offering a better balance for different layouts.

How your feedback changed the design

Layout density

You told us that a more spacious interface wasn’t an improvement if it meant seeing less of your code or project. That feedback led us to implement Layout Density.

Compact density reduces spacing while keeping the structure and customization of the modernized UI. It’s designed for smaller displays, information-dense workflows, and anyone who prefers a tighter layout.

Combined with theme and color customization, it can give you a layout closer to the previous interface while keeping the new foundation.

To use compact density, open Customize Layout from the title bar and select Layout Density > Compact, or set window.density.layout to compact.

Screenshot showing the same VS Code workspace side by side at default and compact layout density.

Default density and compact density, shown with the same window size, theme, open views, and editor content.

Redesigned editor tabs

More recently, feedback about editor tabs prompted us to revisit their design. You use tabs to navigate files and see which content is active, so their relationship to the editor matters.

The initial pill-shaped tabs appeared as separate controls above the editor. That made the selected file harder to connect visually with its content, especially in themes with subtle active-state colors. With connected tabs, the selected tab joins the editor surface below it. The tab and its content appear as one continuous area, restoring a familiar cue for the active file.

Pill tabs and connected tabs shown side by side with the same files, active tab, theme, and layout.

Pill tabs and connected tabs, captured from matching production component fixtures.

If you prefer the pill design, you can still select it using the workbench.experimental.modernUIEditorTabStyle setting.

Smaller workbench refinements

Feedback also led to smaller changes across the workbench:

  • Simplified typography and removed all-caps labels.
  • Refined spacing, corner radii, and colors for a more consistent hierarchy.
  • Adjusted panel separation and resize controls.
  • Provided more controls for editor tabs.
  • Revisited status bar spacing.
  • Expanded theme customization for modernized UI elements.

You don’t have to change any settings to use these refinements. The following optional settings provide more control:

  • workbench.experimental.modernUIUppercaseViewHeaders uses uppercase text for view headers, side bar titles, and panel tabs.
  • workbench.activityBar.compact uses a narrower Activity Bar size that frees up more horizontal space in the UI.
  • workbench.editor.tabActionReserveSpace controls whether tabs in the modernized UI always reserve space for action buttons. Turn it off to give clean inactive tabs more room.

Settings with experimental in their name can change or be removed as the design stabilizes. The other settings are supported customization controls, not required migration steps.

What the modernized UI means for theme authors

Color themes are one of the main ways developers make VS Code their own, supported by a vibrant community of theme authors. As we updated and expanded the built-in themes for the modernized UI, we also exposed the new color controls to extension authors.

Existing themes remain compatible with both the modernized UI and the classic UI. The new color IDs for the modernized UI fall back to established workbench colors, so themes that don’t define them keep their existing palette.

Theme authors can opt into the new IDs for finer control over surfaces, borders, tabs, the Activity Bar, and window states. The IDs are experimental, so test any overrides in both the modernized and classic interfaces, and across light, dark, and high-contrast themes.

The theming guide for the modernized UI documents the complete token list, defaults, precedence rules, high-contrast behavior, and examples. The existing Color Theme guide explains how to package and publish a theme extension.

Keeping the modernized UI responsive

Visual consistency can’t come at the cost of responsiveness. Some feedback reports called out rendering performance, so we investigated with browser traces and repeatable benchmarks.

When the UI changes, the browser recalculates which styles apply. Broad CSS selectors can make that work more expensive than necessary. In the first set of selector fixes, we replaced selectors that inspected large parts of the DOM with state classes that components already knew, such as whether the diff overview or a debug action was present.

We measured those changes with a repeatable sequence of common workbench interactions: resizing, switching views, scrolling, opening diffs, and running widget animations. The fixes reduced style-recalculation time by 8.2% and wall-clock time by 3.3% in that combined benchmark. Layout time increased by 6.6%, so the result recovered some of the difference from the previous interface, but not all of it.

These are targeted improvements rather than a claim that the whole workbench became faster. To prevent the same patterns from returning, lint rules reject known expensive selectors, and npm run perf:css gives us a repeatable benchmark for future changes.

Where we go from here

The modernization is still evolving. Today, you can choose between the updated interface and the previous VS Code workbench design, which we refer to as the classic UI. Over time, we plan to retire the classic UI so we can focus improvements on a shared foundation.

During the transition, you can return to the classic UI by opening Settings, searching for workbench.experimental.modernUI, and clearing the checkbox. This option is temporary, although we haven’t set a date for removing it. We’ll share the timeline and give you advance notice before the transition ends.

Before then, we’ll continue to:

  • Align shared controls and styling across the Agents and editor windows while preserving what each workflow needs.
  • Continue refining Dark 2026 and Light 2026 through feedback on contrast, readability, and syntax colors.
  • Refine tab styling and customization.
  • Profile rendering costs and validate further improvements with repeatable workbench measurements.
  • Adjust density, layout controls, and other details in response to specific feedback.
  • Make Layout Density and related customization easier to discover.

Thank you for helping us improve the design. The larger updates and smaller refinements across the workbench reflect what we’ve learned from you. Please keep sharing what works and what gets in your way. You don’t need design terminology or a proposed fix. A screenshot and details about your display, zoom level, theme, settings, and workflow help us understand the problem. If you return to the classic UI, tell us what the updated interface needs to improve before it becomes the only interface.

Share feedback or report an issue

Happy coding! 💙

New Tools, New Workflows and the Value of the Visual Studio Subscription: What We Learned at VSLive! San Diego


VSLive SD recap blog banner imageWhat happens when developers who have spent decades working with Visual Studio start rethinking how they write code, learn new skills, and expand their access to development tools? 

At VSLive! San Diego, we had an opportunity to find out as developers gathered for five days of technical sessions, hands-on learning, and conversations about Visual Studio, .NET, AI, cloud, data, and modern application development.  

One of the most interesting things we heard in San Diego was how readily experienced developers are adopting new tools and workflows. 

GitHub Copilot is part of that story, and developers aren’t limiting themselves to a single AI experience. They’re building broader, more differentiated tool kits. But they aren’t necessarily replacing familiar tools. They’re expanding how they work, choosing different experiences depending on the task, and finding new ways to solve problems.  

This is why events like VSLive! provide such an amazing opportunity for developers tackling these kinds of changes. Not only do they get to learn from expert led sessions and hands on labs, they get to learn from each other. 

AI is changing how developers approach unfamiliar problems 

One of the best parts of this event was being able to explore how developers learn new technologies and work through challenges.  

AI is increasingly becoming an early step in that process. 

Developers are using AI to research unfamiliar topics, understand existing code, troubleshoot problems, and explore possible approaches before deciding what to try next. 

But they aren’t relying on AI alone. 

They still move between documentation, technical videos, sample code, and hands-on experimentation to develop a deeper understanding of what they’re building. And a significant number of participants shared that hands-on learning was a preferred way to learn. 

That stood out to me. 

Even as developers adopt AI-assisted workflows, they continue to value opportunities to work directly with technology, test ideas, and understand how things behave. AI may help developers get started faster. Experimentation helps them decide what to do with what they’ve learned. 

The suite of benefits offered through a Visual Studio Subscription complements this developer journey, not only by providing significant discounts at VSLive! events, but also through access to learning paths, Azure credits, certifications, and hands-on labs.  

More generated code means more to evaluate 

Another interesting observation was how AI is changing the work that happens after code is written. Developers told us AI helps them produce code faster, but that doesn’t necessarily mean they’re spending less time on development. 

Instead, they’re spending more time reviewing and validating generated code. Does it work as expected? Does it fit the architecture? Is it secure? Can someone maintain it later? 

These questions have always mattered. AI-assisted development makes them even more important as developers evaluate code they may not have written themselves. 

AI can accelerate development, but developer resourcing and judgment remains essential. 

Time is still the biggest obstacle to learning 

With so many learning resources available, you might expect developers to struggle with finding the right information. But our conversations with developers at VSLive! San Diego signaled that the biggest barriers to learning new skills are time and the pace of technological change. 

Sometimes developers need a quick explanation to move forward. Other times, they need a course, a technical session, a community, or an environment where they can experiment. 

That helps explain why the flexible learning environment at VSlive! matters now more than ever. And it’s another reason Visual Studio Subscription benefits remain valuable. They aren’t just about the software developers use today. They can also help support the technologies and skills developers want to explore next. 

Let’s keep the conversation going 

What stood out most from San Diego was the combination of experience and curiosity. We met developers who have used Visual Studio for decades and are actively exploring how AI can change the way they build software. 

They’re adopting new tools, reconsidering familiar workflows, and looking for more opportunities to experiment. And they’re helping us better understand what developers need as those workflows continue to evolve. 

That’s why the conversations we have at events like VSLive! matter. They give us a chance to hear directly from the people using our tools and help us better understand where we can improve. 

If you’d like to continue learning and connecting with the developer community, join us at future VSLive! events: 

  • Orlando November 15–20, 2026  

Thanks to everyone who joined us in San Diego, and especially those who shared their experiences and ideas. The tools developers use are evolving quickly. Hearing how developers are adapting helps us understand what we should build and improve next. 

The post New Tools, New Workflows and the Value of the Visual Studio Subscription: What We Learned at VSLive! San Diego appeared first on Visual Studio Blog.

Building the new GitHub Copilot Inline Suggestions Model: Part Two


September 23, 2026 by Julia Gong, Shengjie Ma, Ben Liggett, and Ulugbek Abdullaev

Completion-style ghost text, next edit suggestions near the cursor, and edits farther away were previously powered by separate models. We built one model for all three, and learned that the best results come from training, evaluation, and editor design evolving together.

Phase 2: The 3-in-1 model

In the first part of this blog post, we shared the first phase of the unified modeling effort: unifying the NES and long-distance edit behavior into a single 2-in-1 model.

The unification strategy diagram showing the stagewise merge from completions, NES, and long-distance edit models into the 2-in-1 model and then the final 3-in-1 model.

Figure 1. We first unified the NES and long-distance NES models to yield the 2-in-1 unified model, followed by unifying the 2-in-1 model with the completions model to yield the 3-in-1 model.

The next step was to bring completion behavior into the 2-in-1 model. Previously, an edit opportunity could involve a completion request followed by another request for a richer 2-in-1 model edit. With the fully unified 3-in-1 model, one request can consider the full range of code editing behaviors and decide the best response at any given moment, or chain many of them together in a single response.

This greatly reduces model calls and serving complexity, but the biggest benefit isn’t even the efficiency. A single model can optimize for the best edit that fits the moment instead of preserving the artificial boundaries that resulted from the system architecture.

Case in point, in our final 3-in-1 model candidate, we found that while the proportion of less-intrusive ghost text decreased in the 3-in-1 model compared to the 2-in-1 model setup, there were actually significant measurable improvements in user satisfaction. We will talk more about this later in this post.

Training the v4 models: adding in completions

To train the 3-in-1 model, we applied what we learned while developing the 2-in-1 model. As the goal was to add completion behavior to the 2-in-1 model, the distribution of the training data needed to change. We gathered ghost text completions data through a variety of techniques, including distilling ghost text from the original completions model and filtering them for quality using an LLM judge. We leveraged the original training recipes from the 2-in-1 model while adding this new ghost text data.

We also had to carefully rebalance the distribution of the multi-edit data inherited from the 2-in-1 model recipe. Models that showed too little ghost text or were too eager to jump away from the user’s cursor often resulted in more disruptions to the user flow and thus higher dismissal rates. This naturally gave rise to a dedicated subset of multi-edit data where the first patch was a ghost text completion at the user’s cursor. During RL, as mentioned earlier in part one, we also kept the grader design that encouraged the model’s edit sequences to begin with the most immediate continuation of the developer’s work, then move outward to related follow-up changes, which made edits least intrusive and kept more logical flow and continuity.

Early model candidates produced ghost text more often and more suggestions overall as a result. We measured these results offline with three benchmarks discussed in part one: STests, Output View Kind, and Pseudo-Online Evaluation. We also noticed that the HumanEval benchmark results improved because of having stronger completions capabilities.

When we flighted these v4 models against the now-production setup of the 2-in-1 model and the completions model, results were quite promising: no statistically significant changes in acceptance rate, dismissal rate, shown rate, and user engagement metrics. But we did find a marginally statistically significant regression in accumulated retained characters, or the number of characters that were not reverted by the user within a certain time interval after accepting a suggestion.

We considered several potential causes of this regression, including poorer suggestion quality, but because of the lack of movement in other metrics, we ultimately pulled the thread on one hypothesis in particular: suggestion length.

Training the v5 models: ghost text completeness

Our hypothesis was that because the model was producing slightly shorter ghost text suggestions compared to the production completions model, users might be accepting promising but incomplete suggestions. As a result, they might be more frequently reverting or editing the suggestions. For instance, writing the function signature and docstring is nice, but if we don’t follow through with the full implementation, then the user might remove the function, make edits, or rewrite it manually.

To test this hypothesis, we applied what we learned from the 2-in-1 model’s insertion challenges and gathered a subset of data that specifically targeted this type of longer-output scenario and performed a similar upweighting of the data. We further added another auxiliary grader dedicated to ghost text completeness and gated it to these specific curated samples. To measure the offline impact of this change, we also introduced a second version of the Output View Kind dataset that measured the character lengths and proportion of ghost text in model responses compared to the original distribution of the production model.

We flighted our most promising model candidate and were pleased to see that the regression in accumulated retained characters had decreased but was not eliminated, and the dismissal rates were trending higher. However, there were several observations made during the dogfooding experience that led us to look beyond the model itself. This reinforced an important lesson we had learned through iterating on our previous models: client behavior is just as important as the model.

The model is part of a larger end-to-end experience

The ultimate user experience is much more than just the model’s capabilities: a great inline suggestions experience is the fusion of a great model with a great end-to-end system. Careful client orchestration is also necessary to show edits to the user at the best time and in the best way.

For example, when dogfooding the most promising 3-in-1 flight candidate, we noticed an important past client behavior decision for NES that was worth revisiting. When ghost text was shown to the user but ignored, if the user moved their cursor to a different location, that cached ghost text suggestion would be re-shown as an NES edit. Upon deeper investigation, we estimated that this client behavior alone could potentially be responsible for inflating the 3-in-1 model’s dismissal rate by 7-8%. Once we ablated this issue in an A/B flight, we found the impact was even larger than we had estimated—the dismissal rate went from a 15.9% increase to a 10.1% decrease—a 26% difference—compared to the production 2-in-1 setup.

The reason for this behavior requires some historical context. Originally, the standalone NES model’s suggestions could arrive asynchronously as the user moved their cursor, whereas the standalone completions model’s ghost text disappeared when the cursor moved away. As a result, the ghost text from the standalone NES model was intentionally made persistent so it could be shown as the user moved their cursor. However, because the 3-in-1 model identified itself to the client as an NES model, it inherited this behavior despite its ability to also provide completion-style ghost text at the cursor. By ablating this NES ghost text persistence behavior through a client setting, nesMimicGhostTextBehavior, we were able to revisit and change this behavior to make a choice that best fit the new model behavior. This underscores the importance of experimenting with the feature end-to-end in the client—new models have new behavior, which might warrant different client settings.

Beyond this ablation study, we also did extensive testing to make the best client-side choices for the 3-in-1 model’s edits, including optimizations in edit caching, speculative decoding, how to render the edit to the user, and progressive reveal of longer edits. Through multiple rounds of internal dogfooding and A/B testing, we discovered that each of these client choices made a big impact on the user experience.

We evaluated five client-side optimizations as a joint configuration that resulted in the best end-to-end unified model experience:

  1. Speculative decoding: The prior standalone NES model already used speculative decoding to reduce suggestion latency, but the new unified model output format required us to revisit what output should be speculated. We ablated several variants of the speculated text with progressively stronger guidance toward completion behavior: only the file path header (without specifying any line, the default used for the 2-in-1 models), replacing the current line (specifying the current line but not a particular view kind), and completing the current line (specifying both the current line and the ghost text view kind). After load testing, latency analysis, view kind distribution analysis, and online flights comparing these options, we chose to speculate completion at the current line, which yielded the lowest suggestion latency without negatively impacting the user experience.

  2. Ghost-text progressive reveal: Progressive reveal shows the immediately relevant portion of a longer ghost text suggestion first, then progressively reveals the remainder. This prevents the user from navigating a long block of text while making incremental progress on their work. Progressive reveal of ghost text was a critical client feature that underwent several rounds of optimization for the original standalone completions models, and its functionality was extended later to the standalone NES models—we thus ported over this technique to the unified model client behavior.

  3. Diff-based edit rendering: For the standalone NES models, the client would take parse the code in the rewritten window to determine the code diff and thus the corresponding view kinds to show the edits to the user. This was required because raw rewritten code had to be parsed to show a minimal edit to the user. However, for the unified models with diff patch output formats, we had a choice—should we display the view kinds implied by the raw patches themselves, or perform this diff-based rendering per-patch as well? Earlier, we found that the model may generate suboptimal-efficiency patches in exchange for better overall suggestion quality (see the discussion on patch validity in part one of this post). For instance, the model might produce the following patch:

    aquarium.py:2
    -cuttlefish
    +axolotl
    +blobfish
    +cuttlefish
    +dolphin
    

    If we used the raw patch, we would show a side-by-side “diff” view kind to the user, where cuttlefish is replaced by axolotol, blobfish, cuttlefish, and dolphin. However, if parsed, this could be optimized so that the user first sees this insertion ghost text:

    aquarium.py:2
    -cuttlefish
    +axolotl
    +blobfish
    +cuttlefish
    

    Followed by this insertion on a different line:

    aquarium.py:4
    -cuttlefish
    +cuttlefish
    +dolphin
    

    Thus, we hypothesized rendering might serve as another safeguard in case there were an even stronger way to present the edit to the user than what was implied by the model output. Through online A/B experimentation, we found this was indeed a positive change for the user experience. Thus, we first interpret each change in the patch and then present it through the appropriate rendered interaction (for example, ghost text, a nearby rewrite, a farther rewrite, a cross-file suggestion, or no suggestion), rather than rendering edits based on the model’s raw patch structure.

  4. Cache delay and debounce settings: Immediate presentation of suggestions can be disruptive when they arrive too quickly, which results in a worse user experience. A slight delay before presenting a cached suggestion better matches the developer’s typing rhythm to help them stay in-flow, especially with the decreased suggestion latency from optimizing the speculative decoding. This setting was already in use, and we ablated several configurations of cache delay durations to arrive at a configuration tailored to the unified models. We did the same for debounce settings—whether to delay calling the model for a suggestion while the user is still typing—and found that immediate model invocation while the user was still typing did not result in a worse experience.

  5. Cross-mode ignored suggestion suppression: As discussed above, this prevents ignored ghost text from immediately resurfacing as a next edit suggestion after the cursor moves. To the system, these may be different views, but to the developer, they are the same unwanted suggestion.

This work underscored a point that applies across interactive AI systems: ultimately, a good model is just one component of a complex system—UX, client logic, networking, and server-side logic, to name a few—and all parts of that system must be designed with care and optimized intentionally to create a great experience for the user. The end-to-end experience is the product.

Takeaways and learnings

Folding completions into the unified model had a much higher development velocity because it built directly on the 2-in-1 foundation, showing how compounding learnings accelerate each strategic phase. A few lessons to call out:

  1. Build on successes. The ghost-text length regression was resolved with the same playbook from Phase 1: Targeted longer-output data, upweighting, and a dedicated auxiliary grader gated to completeness. Identifying successful patterns and reusing them when appropriate was critical.
  2. The model is only one part of an end-to-end experience. When changing the fundamental model behavior and the task formulation, some parts of the end-to-end system had to change as well. Some client behaviors were intentional choices optimized for the previous standalone NES model and needed to be revisited as the unified model took on completion behavior. Through careful experimentation, one such change—preventing ignored ghost text from resurfacing as NES suggestions—helped swing dismissal rate by 26%, from +15.9% to -10.1%.
  3. The beauty of unification. The unified 3-in-1 model saw a 10.1% drop in dismissals during online experimentation with no key metric regressions, despite showing 13% less non-intrusive ghost text. One model deciding the end-to-end best edit beat orchestrating independent specialists, illustrating that the unified experience is greater than the sum of its parts.

Beyond the individual model results themselves, another broader lesson we learned is the value of reflection and learning across the end-to-end system.

From a science perspective, the 2-in-1 model took our team over 15 SFT training runs, 170 RL training runs, and several times as many checkpoint-selection runs, resulting in 14 A/B flight candidates before the final shipping candidate. In contrast, the 3-in-1 model was developed using only RL on top of the 2-in-1 model, and it took us only 35 RL training runs and 10 A/B flight candidates. Each modeling milestone has benefited from, built on, and been accelerated by our learnings in previous ones.

This iteration extended far beyond the model itself. Over the same period, the VS Code client team made 113 PRs improving and supporting the NES experience, including the changes described earlier in this post. These spanned experimentation and configurability, model integration, prompting and context construction, serving and request orchestration, caching and rebasing, rendering and interaction, telemetry and observability, correctness and robustness, and the extensive ongoing work of keeping the experience running smoothly as it shipped to millions of users each week.

This is the reward of building the product as an end-to-end system: the model and the surrounding experience evolved together, with learnings from each continually shaping the other. The acceleration we see in the end-to-end system getting better at learning and improving is just as, if not more, exciting than any individual milestone itself.

The learning loop between the model and the full end-to-end experience.
Figure 2. The learning loop between the model and the full end-to-end experience is a two-way street, and evaluation and reflection at every step benefits all components of the experience.

Online results

We flighted the 3-in-1 model compared to the then-production baseline of the 2-in-1 model and completions model. We were excited to see a 10.1% decrease in dismissals with the new unified model without statistically significant regressions in any key metrics, including accumulated retained characters. This was especially notable given that the proportion of ghost text at the cursor decreased by 13% compared to the control, adding nuance to our prior learnings that increasing the proportion of less intrusive ghost text lowered dismissal rates.

This underscores the benefit of a unified model. The model can choose the best edit for the given context, often more effectively than complex client logic that orchestrates independent models. We consider this to be a promising data point to show that the unified experience can be greater than the sum of its parts.

We are excited for you to try this unified system that treats inline editing as one continuum, from finishing the current line to carrying a change through the rest of the file.

What’s next?

We hope you enjoyed this two-part deep dive into training the new unified inline suggestions models (and in case you missed it, you can find part one here: Building the new GitHub Copilot Inline Suggestions Model: Part One). Please also stay tuned for a more detailed technical report!

We are also working on expanding this model’s capabilities to make the code editing experience even more seamless and intuitive. This includes personalized model eagerness, which builds on our work in model quality by tailoring how proactively the model suggests edits to user preferences.

Try it out

The unified Inline Suggestions experience is available now for paid GitHub Copilot users in VS Code. Update to the latest version of VS Code, then make sure next edit suggestions are enabled.

Give it a try the next time you are in the editor, whether you’re working on a refactor or writing a new function. We hope you enjoy the tab-tab-tab experience, and we’d love to hear your feedback!

In the second part of this blog post, we’ll dive deeper into how we moved to the 3-in-1 model for inline suggestions. Stay tuned!

Happy coding! 💙

Acknowledgements

Special thanks to Luciana Abud, Alexandru Dima, Yu Hu, Simona Liao, Gaurav Mittal, Elsie Nallipogu, and Nick Trogh for their thoughtful feedback, insights, and contributions to this blog post.

We extend our deepest gratitude to our developer community for the ongoing feedback that pushes us to deliver the best possible experiences with VS Code and GitHub Copilot. Huge thanks to the researchers, engineers, product managers, and designers across GitHub and Microsoft who curated the training data, built the training pipeline, evaluation suites, and serving stack, and to the VS Code and GitHub Copilot teams for smooth model releases.

Visual Studio Code 1.141 (Insiders)


Follow us on LinkedIn, X, Bluesky, Instagram | Follow Insiders Changelog on X or Bluesky


VS Code Insiders banner.

Last updated: September 30, 2026

Welcome to the 1.141 Insiders release of Visual Studio Code.

These release notes cover the Insiders build of VS Code and continue to evolve as new features are added.

You can still track our progress in the Commit log and our list of Closed issues.

These release notes were generated using GitHub Copilot and might contain inaccuracies.

Happy Coding!


September 29, 2026


We really appreciate people trying our new features as soon as they are ready, so check back here often and learn what’s new.



Building the new GitHub Copilot Inline Suggestions Model: Part One


September 16, 2026 by Julia Gong, Ben Liggett, and Ulugbek Abdullaev

Completion-style ghost text, next edit suggestions near the cursor, and edits farther away were previously powered by separate models. We built one model for all three, and learned that the best results come from training, evaluation, and editor design evolving together.

At GitHub Copilot, our mission is to support all development workflows, from AI-assisted coding using inline suggestions to agent-first software engineering in the VS Code Agents window. Inline suggestions are used and loved by millions of developers, and we continue to push the quality bar on it and all GitHub Copilot experiences.

Writing code is rarely linear. The next useful change might be a few characters at the cursor, a nearby rewrite, or a related edit elsewhere in the codebase. Inline suggestions accommodate these different workflows through completion-style ghost text, nearby next edit suggestions, and long-distance edits.

Previously, specialized model paths powered each type of suggestion. The tried-and-true completions model doesn’t need much of an introduction, and in earlier posts, we shared how we trained a custom model for next edit suggestions and extended those suggestions to edits farther away. We have now unified all three models behind a single “3-in-1” model that can do it all.

Unifying the models improves suggestion quality by allowing a single model to choose the best edit for the developer’s current work end-to-end instead of using programmatic logic to choose among specialized models. For instance, let’s say the developer has typed class Fa in the penguin feeding program below. Using the previous standalone models (left), the most mature and battle-tested completions model is always triggered first. Since it can only append to the prefix Fa, it does what it knows best and suggests FastingPenguin. However, in this particular case, a better NES suggestion exists, as suggested by the unified model (right): semantically rewrite Fa to Fish.

Before (standalone models) After (unified model)
A code example where the standalone completion model chooses FastingPenguin instead of the better Fish rewrite. A code example where the unified model selects the better Fish rewrite for the same context.

Not only can we tackle all existing tasks in one model, but because this model can output multiple edits in one response, we can cache these additional edits to deliver a faster experience for subsequent edits if the preceding suggestions were desirable. This creates a smoother, snappier tab-tab-tab experience across the editing flow.

To enable this better editing experience, we first reframed the modeling task—especially the prompt and output format—to generalize across code editing tasks. We then combined our learnings in data quality, model training and evaluation, and client design from the standalone models, in addition to extensive additional experimentation (over 200 offline and 20 online experiments, whose course we will chart in the remainder of these posts), to carefully optimize the model and end-to-end experience. The result is a higher quality, faster, and more cohesive typing companion that is greater than the sum of its parts.

An animation of a VS Code coding experience with ghost text and fast follow-up tab-tab-tab suggestions showing the unified inline suggestions experience.

Why unify?

Prior to the unified model, the production implementation of inline suggestions in VS Code was powered by three separate models:

  1. Completions (the familiar ghost text we all know and love),
  2. NES (next edit suggestions, or nearby edits bounded by a few lines above and below the cursor position),
  3. Long-distance NES (longer-range NES-style suggestions farther from the cursor).

This dedicated work on individual tasks, with a highly mature completions model alongside newer editing models, resulted in a client-orchestrated experience that triggered each where appropriate.

While effective for these individual tasks and a necessary step to bring new editing capabilities to users, this created key shortcomings not only in terms of user flow quality (sometimes making suboptimal or piecemeal edits rather than a single clear edit that best serves the context) and latency (potentially up to 4 model calls per opportunity, as shown in the figure below), but also in terms of extensibility to future features (for example, multi-file edits).

Standalone models diagram showing separate completion, NES, and long-distance NES call paths.

Figure 1. The original stepping-stone production setup for VS Code inline suggestions with three standalone models: completions, NES, and long-distance NES. Note that this diagram is simplified for clarity and represents the behavior from a user’s perspective (real provider calling behavior is more complex and involves issuing parallel calls to completions and NES, for instance, depending on the position of the user’s cursor and how quickly the prioritized model responds). Each model handled its own standalone task, while the client orchestrated the logic of when to trigger which model. The completions model would always be triggered first to predict ghost text at the user’s cursor, which would be shown if ghost text was generated. If no ghost text was produced, the NES model would be invoked to rewrite the window around the user’s cursor, and shown using the appropriately rendered view kind if the rewrite resulted in a net edit. If still no edit was predicted, the long-distance edit model was triggered to predict a potential line number to jump to. If no line number was produced, no edit would be shown. If it did jump to a new line number, the NES model would be invoked once more to rewrite a window around the long-distance line number, resulting in a long-distance NES edit.

Unification also creates a compounding benefit. With one shared model powering every inline suggestion, each model improvement or new model feature can now benefit the full experience rather than remaining isolated to a single suggestion type.

Reformulating the code editing task

Knowing that a unified model was the north star, we realized this was an opportunity to reformulate the code editing problem, starting from the model output format. None of the three individual siloed tasks of predicting a suffix (completions), a window rewrite (NES), or a line number (cursor jump), which we had solved systematically and individually over time, were sufficiently expressive to represent the other tasks entirely. To combine these into a single model that could do all three, we needed a similarly unified output format—this gave rise to an elegant solution that we call the “diff patch” output format.

Consider a developer changing a function signature. The next useful action may be completing a new argument at the cursor. A moment later, it may be updating a call site below. After that, it may be adjusting validation logic elsewhere in the file. These are different interactions, but they are part of one editing task. A shared patch language lets the model reason about them as sequential steps of the same problem, which can be presented to the user with greater fluidity.

To fully understand the model output format changes, one can think of the three individual model tasks each as natural extensions of LLM next-token prediction capabilities—completions continued unfinished code, NES rewrote a local edit window, and long-distance edits predicted the next line number to jump to, accompanied by a call to NES. The 3-in-1 model puts these together to tackle all three at once while allowing the model to predict multiple edits in one pass.

To make this concrete, consider this example, where the symbol <|cursor|> represents the position of the user’s cursor.

def feed_penguin(penguin, fo<|cursor|>):
    penguin.meals += 1
    penguin.hungry = False
    penguin.last_ate_time = datetime.now()

    print(f"{penguin.name} ate {fish.type}")

penguin = Penguin("emperor")
feed_penguin(penguin, fish="silverfish")

The completions, NES, and long-distance edit models might predict the following in isolation to make the best edit for their corresponding tasks:

Completions format NES (Window Rewrite) format Long-Distance Edit format
od
def feed_penguin(penguin, food):
    penguin.meals += 1
    penguin.hungry = False
    penguin.last_ate_time = datetime.now()

    print(f"{penguin.name} ate {food.type}")
5 (the next line number where fish should be replaced with food)

The diff patch output format puts all of these elements together into a chain of edits that makes most sense at the cursor, farther away from the cursor, and even in a related file:

/path/to/penguins.py:0
-def feed_penguin(penguin, fish):
+def feed_penguin(penguin, food):
/path/to/penguins.py:5
-    print(f"{penguin.name} ate {fish.type}")
+    print(f"{penguin.name} ate {food.type}")
/path/to/penguins.py:8
-feed_penguin(penguin, fish="silverfish")
+feed_penguin(penguin, food="silverfish")
/path/to/antarctica.py:42
-feed_penguin(penguin2, fish="krill")
+feed_penguin(penguin2, food="krill")

Multi-patch responses also importantly allow us to cache subsequent patches (in the example above, the edits at lines 5, 8, and 42). Upon acceptance of preceding patches, they can appear with low latency, which results in a fast tab-tab-tab code editing experience.

This format expresses the three previous tasks in full and allows for flexibility in elegantly expressing future behaviors like cross-file edits (edits suggested in a related, but different file from the current one). More general formats such as tool calls are more abundant in pretraining and support actions beyond editing, but for code edits, we found that this format is most compact while remaining expressive.

In addition to reformulating the output task, we also took the opportunity to revisit the context given to the model as input. Originally, the input to the model included:

  1. Recently viewed code snippets without line numbers
  2. Current file content with line numbers
  3. Recent edit history of the user in unified diff format
  4. Area around the code to edit, a total of +/- 15 lines around the user’s cursor to pad the code to edit region
  5. Code to edit, the rewrite window spanning 2 lines above and 5 lines below the user’s cursor

The unified output format enabled us to simplify the input context as well. Because the task scope now allowed for arbitrary edits anywhere in the file and was not limited to predicting the suffix at a specific location or rewriting a fixed window, we could remove the last two sections of the input—area around the code to edit and code to edit—and instead replace it with a single 3-line block with the line number and file content of the current cursor location. One important learning we carried forward from the previous models was that since the user’s cursor is constantly changing positions, we kept the cursor location section at the end of the prompt as opposed to directly placing it inside of the current file content. This optimizes key-value caching by maximizing the common prefix of the prompt with previous prompts.

We wanted to tackle the problem of unification methodically, so we approached it in two phases. First, we unified the NES and long-distance capabilities into a single model with the unified diff patch format, which we refer to as the 2-in-1 model. The completions model was left intact, and the client orchestration logic was simplified to prioritize completions, followed by the 2-in-1 model. We then unified the 2-in-1 model with the completions model to bring in the ghost text capabilities to arrive at the 3-in-1 model. We’ll describe our experimental process and share some of the methods we developed, challenges we encountered, and learnings we gained along the way.

The unification strategy diagram showing the stagewise merge from completions, NES, and long-distance edit models into the 2-in-1 model and then the final 3-in-1 model.

Figure 2. We first unified the NES and long-distance NES models to yield the 2-in-1 unified model, followed by unifying the 2-in-1 model with the completions model to yield the 3-in-1 model.

Phase 1: The 2-in-1 model

We deliberately chose to first tackle NES and long-distance edits before completions. In our experience, the completions model accounted for most of the inline suggestions traffic—higher than 70% of edit opportunities. Previous experimentation from the team also showed that NES suggestions were more prone to user dismissals than ghost text. Thus, we chose to first unify the two other models and tackle the flagship completions model last. Because the diff patch output format could be used for the 2-in-1 model, this also meant that later training for the 3-in-1 model could directly take advantage of the data and other learnings from the 2-in-1 model, accelerating experiment velocity.

Evaluation

To build a good system and improve it, we must start by deciding what we want to measure. No single score captures the quality of an inline suggestions model. We therefore used four complementary stages of evaluation, similar to the process we used for earlier next edit suggestion releases.

  1. Offline evaluation: Targeted offline tests helped us inspect completion behavior, difficult editing scenarios, patch validity, suggestion length, and the balance among different types of edits.
  2. Internal dogfooding: Daily use exposed issues that aggregate scores could miss, such as suggestions that were reasonable but poorly timed, too eager, incomplete, or awkwardly presented.
  3. Human evaluation at scale: We also did human evaluation with programmers of diverse backgrounds on thousands of coding tasks using structured feedback templates to get a quantitative assessment of model quality from real developers.
  4. Controlled online experiments: Promising model candidates were flighted live using A/B testing so we could evaluate the ultimate impact of the model on real users.

Each stage answered a different question. Offline evaluation told us whether a candidate was worth testing. Dogfooding gave us a firsthand perspective on how it felt in realistic workflows. Human evaluation quantified the dogfooding experience and provided structured feedback. Online experiments told us whether the complete system created value in use compared to the existing production setup.

Offline benchmarks

Offline evaluation for the original NES models consisted primarily of 3 benchmarks, which each assessed different dimensions of the NES models:

  1. Simulation Tests (STests). A manually curated set of workspace recordings from our team that demonstrate must-have, nice-to-have, and must-avoid suggestion behaviors.
  2. HumanEval. An augmented version of the HumanEval dataset from OpenAI that was expanded to evaluate models’ completion capabilities on single-line, multi-line, and random spans of code.
  3. Output View Kind. Examples passed through prior production models, including the view kinds (ghost text, side-by-side NES, no edit, etc.) of the models’ output, used to track any differences in the distribution of view kinds produced by new candidates compared to the original models.

Training the v1 models: Diff-patch NES

We began by building tools to robustly convert the original NES model evaluation and training data into diff patch format. Once the data was converted, we trained some initial supervised fine-tuning (SFT) models, followed by reinforcement learning (RL) on the NES-only training data—let’s call this round of models the v1 models.

As we expected, the resulting models could perform on par with the NES models in offline benchmarks, but the distribution of edits they learned was exactly that—NES edits, with almost no long-distance edits. We also discovered that the difference in data formats, despite using identical data samples, sometimes resulted in different behaviors. For instance, edits tended to be more incremental, which might be due to the diff patch format naturally expressing targeted changes at specific locations instead of rewriting an entire target window (this will come up again later when we discuss the 3-in-1 model). Upon flighting these models, we also discovered several client-side nuances for handling this new output format, including caching and error handling, that were refined early so that future model candidates could benefit from this dry-run.

Now it was time to fold in long-distance edits. In the diff patch formulation of the problem, an elegant property emerges for the long-distance NES case: An NES edit + a long-distance NES edit = a multi-patch response. Multi-patch responses were also critical to add because of the user experience economies of scale that come with caching subsequent patches for fast follow-up edits.

But how were we going to get multi-patch responses when our existing models did not have multi-patch capabilities?

Training the v2 models: Adding in long-distance NES

Folding in long-distance edit capabilities wasn’t trivial because the sets of existing data for long-distance edits and NES were not joinable, as they were from completely different files and edit histories. We needed to bootstrap multi-edit data from the single-edit data. We ultimately came up with two approaches to solve this problem:

  1. Bootstrapping responses using v1 model pseudolabels. We first fast-forwarded the diff patch-format NES data by moving the output label into the edit history. We then fed this fast-forwarded data back into the best v1 models that we trained. If the model produced an edit response, we appended this pseudolabel to the original data’s output label as another patch. We continued to repeat this process until the v1 model produced no edit in its response. This yielded samples with n patches that we could then teach the model to produce. See the figure below for details.
  2. Edit playback. We parsed the NES data model input, which contained user edit histories, and used those edits to “rewind” the state of the workspace file by anywhere from 1 to n edits. We then removed those edits from the edit history in the input and prepended them to the output.

A diagram showing the multi-patch bootstrapping techniques used to generate multi-patch data from single-patch data.

Figure 3. Two processes by which we repeatedly bootstrapped multi-patch data by fast-forwarding single-patch data. Top: We first fast-forwarded the data with n patches in the output by moving the output label into the edit history. If the model produced a response for this fast-forwarded sample, that output would be added to the original sample’s output label to create a response with n+1 patches. Bottom: We performed edit playback by moving recent edits from the edit history to rewind the session state and predict them as part of the model output.

After these approaches yielded enough data, we then filtered the data using an LLM-as-a-judge and rules-based quality filter. The criteria in this filter were distilled from our understanding of developer preferences throughout the development of our preceding code editing models, such as correctness, necessity, and intent and edit history alignment, and the rules-based filters accounted for patch validity and undesirable behaviors like code duplication.

We then used SFT to train a new model on a new mix of this data and the previous NES data, which yielded models that produced 1.3 to 1.4 patches on average, compared to the original near-1 averages. While this number might sound small, we later found this is a sweet spot that makes a significant difference in the user experience without degrading quality. After all, to get an average of 2 patches per response, long-distance edits would need to happen on average at every edit opportunity, which was not the case in the existing production setup with a dedicated long-distance edit model.

RL was applied to the v2 SFT models in a similar fashion, using the same techniques to bootstrap multi-patch data. The grader logic was also altered to incorporate guidance for multi-patch responses. We found this model had much stronger offline results compared to the SFT model.

Patch ordering

When there are multiple edits, the natural question of how to order them comes up. This was also a deliberate choice we made.

During data filtering, in addition to the criteria for edit quality, we also added a new criterion targeting edit ordering requiring a smooth logical flow of the edits through the file in order of priority and proximity to the user’s cursor. This choice sounds intuitive because it was distilled from our experience in orchestrating the three standalone models in the client. The logic was to first query the completions model, followed by the NES model, followed by the cursor jump model and a subsequent NES model call if the cursor jump model chose to jump.

In addition to including these criteria in the data filtering pipeline, we also included them in the RL grader with some additional nuances in the reward function, which we observed was important for prioritizing logically coherent edits.

The Pseudo-Online Evaluation benchmark

The v2 models were a step-function improvement compared to the v1 models in online A/B testing compared to the production three-model control. Aside from the dismissal rates being elevated, all other metrics like acceptance rate, shown rate, accumulated retained characters, and user engagement metrics had no statistically significant movement. But one strange finding emerged: offline results were not very predictive of the online results. One of the strongest offline candidates with the highest-ever score in STests, for instance, did not do as well as another with lower STests in the A/B flight. This got us thinking: how do we close the gap between our offline and online results so we can iterate on model candidates more efficiently and confidently?

The result was a fourth offline benchmark that we call the Pseudo-Online Evaluation (POE). The benchmark consists of three equally-sized sample buckets representing acceptance, rejection, and no edit cases from production model outputs, along with suggestion quality signals. The benchmark runs each of the samples in these groups through the candidate model. It then uses an LLM judge using in-context learning to determine whether the candidate response would be accepted or rejected given the known outcome of that sample.
The most critical metrics that arose from this benchmark were the reject rate (lower being better), accept-to-reject-rate ratio (higher being better) and the ratio of rejects that became no edits to the accepts that became no edits (a measure of whether the model learned to abstain more for previously poor responses without losing previously good responses). We also quantified issues like patch validity errors, which we will talk about later, and other metrics, such as the number of patches in responses. These metrics, while admittedly still not a perfect proxy, became a stronger predictor of online performance for subsequent model candidates.

Grader and quality filter calibration

Developing the POE benchmark also raised another question: were we leaving anything on the table with our new diff patch-specific RL graders? Could we improve it using additional data and quality signals?
We decided to try to calibrate the grader better to user feedback by taking a self-refinement approach to the grader. We developed an agent skill that performed the following loop:

  1. Take the samples from POE and run them through the grader to get the grader’s judgment on the production model response.
  2. Construct the confusion matrix of false positives, false negatives, true positives, and true negatives after running all samples.
  3. Randomly sample examples from each category to understand common failure modes of the grader and patterns in its blind spots.
  4. Adapt the existing grader instructions to incorporate any observed feedback that clearly formed a pattern.
  5. Repeat.

It is worth noting that the quality signals we use are oftentimes noisy. However, through this process, we were able to automatically increase concordance between the RL grader and these quality signals, reducing false negatives by 8.4% and false positives by 1.1%. This improved the reliability of our training, evaluation, and data filtering pipelines.

Tackling invalid patches

Later v2 model variants benefited from the updated RL grader and better offline model selection, but a few other challenges emerged as we dogfooded the models more regularly. One of these challenges was invalid patches.

We noticed that the model would sometimes create patches that were malformed or introduced mistakes that were programmatically verifiable. We characterized patch validity with two tiers: critical issues that impact the user experience, and suboptimal patches that are token-inefficient. We developed fine-grained rules-based filters to catch these issues. An example of a critical issue is duplication of code in the lines preceding or following the line where the user’s cursor is. These are visible to the user and negatively impact the suggestions they receive. In contrast, an example of a suboptimal issue is no-op patches, or patches where additions and deletions are perfectly matched; in other words, patches that completely undo their own work. These were wasteful from a token and latency perspective, but not detrimental to edits presented to the user.

Incorporating these rules-based patch validity checks into the RL grader did decrease the proportion of invalid responses, but it improved less than expected. We turned to examining the distribution of data in our RL dataset and hypothesized that it did not capture the common contexts in production that led to these model errors. To validate this suspicion, we conducted targeted data mining on examples from the latest v2 models that triggered patch validity failures. We ran the responses through our patch validity checks, repaired them automatically using an iterative LLM feedback loop guided by those checks, and filtered the repaired samples for quality. By carefully experimenting with the sampling ratio of these examples during training, we were able to reduce patch validity issues without negatively impacting other scenarios.

One last thing we ablated for the patch validity checks was whether to penalize both critical and suboptimal issues, or just the critical issues. We hypothesized that allowing the model to produce suboptimal patches might clean up the reward signal for reducing critical issues and also have unexpected benefits (e.g., a no-op patch between two valid patches might almost serve as a ‘chain of thought’ as the model thinks through possible edit locations). Indeed, once we removed the penalty for suboptimal patches, we did see more consistent reduction in critical issues without significant detriments in other offline quality metrics.

Training the v3 models: Tackling issues in insertion pattern propagation

As we got closer to a strong shipping candidate, one other persistent issue presented itself through dogfooding: misplaced insertions during pattern propagation, and specifically, correct content with incorrect placement. This was a very specific failure mode of the v2 models when the appropriate response would be to insert new content at another location in the file to propagate a pattern of repeated insertions following user intent. For instance, if the user added the field password after email in a web form, the expectation would be to add the corresponding Password label after the Email label, and a validate_password check after the validate_email check. However, the v2 models were found to frequently place Password before Email, or even at the very bottom of the list of fields.

Building on our learnings from suppressing invalid patch behavior, we approached this problem in two ways.

First, we used LLM judges to identify examples from the v2 model outputs that exhibited this specific failure mode: generating the correct content but placing it incorrectly when user intent implied pattern propagation. This proved surprisingly difficult because long-distance insertion scenarios were relatively rare compared to replacement scenarios. Even after LLM-based response repair and quality filtering, we obtained thousands of positive examples, but only a few hundred negative examples exhibiting the original placement error.

Diagram of the data mining workflow used for targeting problematic behaviors.

Figure 4. The data mining workflow we distilled to target problematic behaviors, such as invalid patches and insertion pattern propagation. Raw data is first collected from model outputs, then filtered to specific problematic examples, then repaired and filtered for quality before being used in training.

After folding this data into both SFT and RL, we did not notice a significant impact on model behavior. We then hypothesized that the positive examples and corrected negative examples did not have the same distribution or value for model learning, so we upweighted the negative examples during RL.

After doing so, we inspected model rollouts during RL training and were surprised to see that the RL grader was not reliably flagging insertion pattern propagation errors of this type despite the sufficient data representation. Because of the multiple objectives in the already complex grader, to avoid destabilizing the existing grader behavior, we developed a new technique for the RL grader that introduced a new auxiliary grader to specifically address the insertion pattern-following deficit in the primary grader. We gated this grader to examples that had insertions in the ground truth or prediction.

Altogether, the targeted examples, hard example upweighting, and grader changes ultimately corrected the models’ problematic insertion behavior, resulting in the v3 models. This combination of data representation, data balancing, and grader augmentation was a very important learning for us, and a technique we would reuse again when developing the 3-in-1 model.

The Qualitative Must-Haves benchmark

The challenges we faced with the insertion pattern propagation issue, which surfaced only through dogfooding and not through flighting nor through offline evaluation, led us to think about the potential gaps in our existing evaluation methodology. This prompted us to develop a fifth offline evaluation benchmark, Qualitative Must-Haves (QMH), which is a living curated collection of scenarios that previous and current models have found challenging, often discovered through dogfooding.

The objective of this benchmark is distinct from the others. While the others are larger-scale and quantitative, we deliberately kept this one lean and small so that it could serve as a “canary” set to flag issues with models and filter out or rule in model candidates quickly. In addition, it focuses more on preventing past bad behaviors than generically measuring model quality. The name is somewhat of a misnomer, though, as it eventually became quantitative as we developed LLM judges that could serve as human proxies for judging the results.

Both our 2-in-1 and 3-in-1 modeling efforts have greatly benefited from this benchmark as a heuristic for model regressions and potential user frustration, as well as the quick iteration it has enabled due to its small size. We also further included scenarios we added to the QMH dataset in the larger-scale human evaluations that we do at scale.

One of our greatest learnings in developing this benchmark has been that because the models we train have shared data and training pipelines, problematic behaviors can crop up again in future models if not carefully monitored, especially if future models have different objectives, such as adding a new feature. Having a small set of samples that measure critical behaviors that can quickly flag regressions, or if used proactively, prevent possible regressions, has been a game-changer for model selection. It is worth noting that for this set to be reliable, it must have good coverage, so spending time to curate the examples and making sure they are a fair representation of past and potential regressions has been important.

Another learning to underscore is the importance of dogfooding. Nothing beats trying it out yourself, especially as not everything can be captured perfectly on a quantitative scorecard. Testing the boundaries of the model ourselves as end users provides a unique perspective. As developers of products for developers, we consider this mandatory and an important part of the culture we pride ourselves on in providing high-quality code editing models.

Diagram illustrating the model selection process, showing how evaluation benchmarks, human feedback, dogfooding, and online experimentation are combined to compare and choose candidate models.

Figure 5. Our model selection process was refined to leverage the insights gained in each step to efficiently narrow down model candidates, from early filtering using QMH to extensive offline evaluation to dogfooding to online flighting. All intermediate steps in this process are valuable evaluation signals and can also loop back to inform another round of model training.

Takeaways and learnings

Unifying NES and long-distance edits hinged on reformulating the output as a single diff patch format. This one representation could express every prior task and, critically, chain multiple edits into a multi-patch response, which was the foundation for a low-latency tab-tab-tab flow. A few core lessons stood out:

  1. Bootstrap data when pioneering new scenarios. Multi-patch training data didn’t exist, so we synthesized it from single-edit data using pseudolabels and edit playback, followed by quality filtering. This formed the foundation of the SFT and RL data to start the flywheel of multi-patch model development.
  2. A repeatable recipe emerged for fixing specific failure modes. Targeted examples, hard-example upweighting, and a gated auxiliary grader were critical to refining the model from a good model into a shipping candidate. It fixed issues of invalid patches and insertion-pattern propagation, and became our go-to technique going forward.
  3. Try to close the offline-to-online gap. This drove the Pseudo-Online Evaluation (POE) benchmark and a self-refinement loop to calibrate the grader against model outputs and quality signals, and tightening the offline to online gap led to faster and more confident experimentation.
  4. Bring tried and true lessons and intuition into new territory. In both the data filter and the RL grader, we enforced the guideline that edits must flow logically outward by priority and proximity to the cursor. This arose from our experience in orchestrating a successful experience for inline suggestions in the three-model setup.
  5. Dogfooding can catch what metrics are missing. Issues that were invisible offline and online surfaced only through daily use, motivating the small Qualitative Must-Haves “canary” benchmark to guard against regressions in shared pipelines.

Online results

We flighted 2-in-1 model candidates against the production baseline of the three standalone models (completions, NES, and cursor jump). The final shipping candidate was observed to have no statistically significant regressions in any key metrics (acceptance rate, dismissal rate, shown rate, recurring engagement, and accumulated retained characters). In addition, we saw a decrease of 10% in the time it took for suggestions to be shown to the user, along with a reduction of 61% in output tokens. These were mostly due to the more efficient output and input formats and more streamlined client logic.

Try it out

The unified Inline Suggestions experience is available now for paid GitHub Copilot users in VS Code. Update to the latest version of VS Code, then make sure next edit suggestions are enabled.

Give it a try the next time you are in the editor, whether you’re working on a refactor or writing a new function. We hope you enjoy the tab-tab-tab experience and we’d love to hear your feedback!

In the second part of this blog post, we’ll dive deeper into how we moved to the 3-in-1 model for inline suggestions. Stay tuned!

Acknowledgements

Special thanks to Luciana Abud, Alexandru Dima, Yu Hu, Simona Liao, Shengjie Ma, Elsie Nallipogu, and Nick Trogh for their thoughtful feedback, insights, and contributions to this blog post.

We extend our deepest gratitude to our developer community for the ongoing feedback that pushes us to deliver the best possible experiences with VS Code and GitHub Copilot. Huge thanks to the researchers, engineers, product managers, and designers across GitHub and Microsoft who curated the training data, built the training pipeline, evaluation suites, and serving stack, and to the VS Code and GitHub Copilot teams for smooth model releases.

Happy coding! 💙

Visual Studio Code 1.139 (Insiders)


Follow us on LinkedIn, X, Bluesky, Instagram | Follow Insiders Changelog on X or Bluesky


Last updated: September 16, 2026

Welcome to the 1.139 Insiders release of Visual Studio Code.

These release notes cover the Insiders build of VS Code and continue to evolve as new features are added.

You can still track our progress in the Commit log and our list of Closed issues.

These release notes were generated using GitHub Copilot and might contain inaccuracies.

Happy Coding!


September 15, 2026

September 14, 2026

September 11, 2026


We really appreciate people trying our new features as soon as they are ready, so check back here often and learn what’s new.