How Prompt Tuning Improved GPT-5.5 in VS Code Microsoft and OpenAI partnered to tune the GPT-5.5 system prompt in VS Code, testing two variants that nudge the agent to explore less and validate sooner. The experiment, run over two weeks on live traffic, aimed to improve token efficiency and reduce costs under usage-based billing. Treatment A, a compact reminder to limit exploration, was shipped as the winner. How Prompt Tuning Improved GPT-5.5 in VS Code July 6, 2026 by VS Code Team, @code https://x.com/code In our previous post https://code.visualstudio.com/blogs/2026/05/15/agent-harnesses-github-copilot-vscode , we introduced the VS Code coding harness, the layer that connects the model to tools, context, instructions, and the agent loop, giving the model the ability to perform coding tasks. Each model responds to tool calls and instructions differently, and the harness can adapt to improve results. This post walks through a two-week experiment we ran in partnership with OpenAI to tune the GPT-5.5 system prompt in VS Code. The question was simple: if we nudge the agent to explore less and validate sooner, can it get faster and cheaper without getting worse? With OpenAI's model expertise and our harness data, we tested two small prompt changes, measured them against a control on live traffic, and shipped the winner. This matters more with usage-based billing in place. Token efficiency isn't only an infrastructure metric: every token the agent spends wandering is a token you pay for and wait on. An agent that reaches a grounded edit sooner is both a better experience and a smaller bill. The hypothesis: explore less, validate sooner Following the launch of GPT-5.5 , we looked at how the model spent tokens inside the VS Code agent harness, as part of the work described in Improving token efficiency in GitHub Copilot https://code.visualstudio.com/blogs/2026/06/17/improving-token-efficiency-in-github-copilot/ . Two patterns stood out: where the model spent tokens, and where it over-explored before acting. Agents can spend a lot of effort searching, rereading, and comparing nearby paths before making a useful edit. That pointed to a single, testable idea: the agent should spend less effort wandering and more effort moving through a deliberate loop of evidence, action, and validation. After testing different hypotheses and running offline evaluations, we turned that idea into two variants of the GPT-5.5 system prompt, both were promising in offline evals, and we tested them against the current default on live traffic. Inside the experiment We ran the experiment in VS Code over a two-week window, splitting GPT-5.5 agent traffic across two treatment groups and one control group with a 25/25/25 split. Both treatments test the same hypothesis but differ in how much structure they add to the prompt. | Group | Variant name | Description | Traffic allocation | |---|---|---|---| | Control | PRPT CTRL | Current default prompt | 25% | | Treatment A | PRPT SRCH | Economical search and edit: single, compact reminder to limit exploration before acting | 25% | | Treatment B | PRPT LRG | Large prompt sections: broader restructure covering the full edit-and-validate loop | 25% | Note:The allocations add up to 75% because the experiment scorecard compares evenly sized groups. The remaining GPT-5.5 traffic continued to use the default prompt outside this scorecard slice, so we could compare the treatments and control across the same kind of user traffic. Treatment A: economical search and edit Treatment A makes a small, focused change: a single, compact reminder that nudges the model to reduce unnecessary exploration. The