Command-line coding agents lift merged PRs at Microsoft
Microsoft gave its engineers Claude Code and GitHub Copilot CLI in early 2026, then had its own researchers track who took up the terminal agents and what they shipped.
MicrosoftUnited StatesEnterprise softwareScaled since Jan 2026
- Scale
- Tens of thousands of engineers studied
- Scenario
- Command-line AI coding agents for engineers
- Business function
- Software engineering
- Kind of solution
- Software engineering assistant
- Who built it
- Vendor product (Anthropic)
- Human oversight
- Acts under watch
- Organization
- Enterprise
- AI types
- Generative AI, Agentic AI
- Users
- tens of thousands
tl;drEngineers who adopted the terminal agents merged roughly 24% more pull requests over four months.See the results
In early 2026, Microsoft gave its engineers two command-line coding agents: Anthropic’s Claude Code and GitHub’s Copilot CLI. Both run in a terminal, where they call large language models and carry out semi-autonomous commands on the engineer’s behalf1.
In May 2026, Microsoft told most engineers in its Experiences and Devices division to move from Claude Code to Copilot CLI by June 303, 5.
In July 2026, three Microsoft researchers published a study of the rollout across tens of thousands of engineers. Adopters merged roughly 24% more pull requests than they would have otherwise, and the lift held for the four months that the researchers observed1.
Before the deployment
Microsoft’s engineers already had GitHub Copilot in their editors, with code completion, chat, and an agent mode in IDEs such as VS Code1. The terminal agents came as an addition to those tools. The question was whether a command-line agent that plans and runs multi-step work adds anything the IDE assistant doesn’t, and for whom.
The rollout started from the following position:
- Wide IDE use: Microsoft had said that 91% of its engineering teams were using GitHub Copilot5.
- High token cost: At an organization’s scale, token spend for these tools can run into millions of dollars a year1. Misjudging who adopts, who keeps using a tool, and what it produces can make a rollout expensive without changing how fast engineering moves1.
- Weak outside evidence: Most impact studies inferred AI use from signals in public repositories, which can’t tell a non-user from someone whose use leaves no trace1. One study of Cursor in open-source projects found an early productivity lift that faded within months1.
- Microsoft’s own data: Microsoft could see every engineer who could adopt through individually identifiable telemetry of AI tool use. It also held HR records on each of them1.
What was built
Microsoft didn’t build a system. It licensed two vendor agents, decided who got which, trained engineers on them, and measured what happened1. The work is divided as follows:
- Claude Code: Reached specific divisions and individuals through a managed program from late 20251. The access list changed as the program matured, and two large divisions got broad access1. Microsoft also opened it to project managers and designers so that they could experiment with coding for the first time and prototype ideas5, 2.
- Copilot CLI: A command-line version of GitHub Copilot that runs outside apps like Visual Studio Code5. It was sanctioned for every software engineer, and Microsoft used it through a product preview before GitHub’s general release1.
- The engineer: Describes a task at the command line, reads what the agent returns, steers it, and decides what becomes a pull request1.
- Agentic Engineering Day: An internal event of demonstrations, tutorials, and hands-on sessions on the tools1. Two weeks later, a survey of attendees collected 609 responses on how their work had changed1.
Microsoft ran the two agents side by side on purpose, because it expected employees to use both, compare them, and give feedback5.
“When we began offering both Copilot CLI and Claude Code, our goal was to learn quickly, benchmark the tools in real engineering workflows, and understand what best supported our teams”
Survey respondents described the following uses:
- Delegated chunks of work: One respondent called the tools a good fit for experienced, senior developers who can break work down into smaller chunks1.
- Routine code: Others used the agents for boilerplate plumbing and repetitive unit tests1.
- Larger changes: Some took on larger changes that they’d never have taken on before1. One said a recent change was nearly 100% of the code written by Copilot CLI agent1.
Rollout
The researchers ended their window before the switch, because weeks of migration would have made moved engineers look like organic Copilot CLI adopters1. The switch covered Experiences and Devices, the division that builds Windows, Microsoft 365, Outlook, Teams, and Surface3, 2. By then, GitHub had already shipped significant improvements to Copilot CLI based on Microsoft feedback5.
Technology and architecture
The following table lists the two agents.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | Claude Code | Anthropic’s command-line agent, licensed to selected divisions and individuals | 1, 7 |
| Solution platform | GitHub Copilot CLI | GitHub’s command-line agent, open to all software engineers and later the standard | 1, 6 |
Claude Code is an agentic coding tool that reads a codebase, edits files, runs commands, and works with the developer’s other tools7. Copilot CLI brings GitHub Copilot into the terminal6. Its current version has a plan mode, in which it asks clarifying questions and builds a plan before it writes code6. In manual approval mode, it asks the user before it runs a tool that isn’t already allowed, such as one that modifies or executes files6.
In May 2026, Anthropic’s models were to remain accessible through Copilot CLI, along with internal-only Microsoft models and OpenAI’s range5. A setup like this most likely runs each agent on a local checkout and sends the prompt and code context to a hosted model.
Data inputs
The researchers joined the following data for each engineer:
- Usage telemetry: Each engineer’s daily use of either agent, plus their use of Copilot in the IDE before the rollout1.
- Merged pull requests: Pull requests from Azure DevOps, counted only if they merged within 28 days of creation1.
- HR records: Career stage, tenure, and reporting lines, which let the researchers work out each engineer’s peers, skip-level group, and manager1.
How one coding task flows through the system
One principal-level developer described a typical assignment in the following steps:
- The engineer gives the agent a coding assignment at the command line1.
- The agent calls the language model and runs commands on the engineer’s behalf1.
- The engineer steers the agent, often with five to ten clarification prompts, plus a few more of the “I see this error” kind1. Each round takes 10 to 15 minutes1.
- While the agent works, the engineer reviews pull requests, reads design documents, or sits in meetings1.
- The engineer submits the finished change as a pull request, which the study counted once it merged within 28 days1.
Results
The researchers ran two kinds of analysis, a synthetic control and a within-person comparison, and each figure belongs to one of them1. The following table lists the results from January 5 to April 29, 2026.
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Merged pull requests per engineer per day | Synthetic counterfactual of non-adopters | +24.0% | Active engineers using either agent in the first rollout week; January 5 to April 29, 2026 | Microsoft researchers, measured1 |
| Same lift, by period | Synthetic counterfactual | +29.4% in February; +20.0% in March and April | Same cohort | Microsoft researchers, measured1 |
| Merged pull requests in a week with five or more days of agent use | Same engineer’s weeks with no use | +50.1% | All active adopters, January 5 to April 29, 2026 | Microsoft researchers, measured1 |
| Merged pull requests in a week with Copilot CLI use | Same engineer’s weeks with no use | +24.9% | Engineers who used only Copilot CLI | Microsoft researchers, measured1 |
| Merged pull requests in a week with Claude Code use | Same engineer’s weeks with no use | +11.4% | Engineers who used only Claude Code | Microsoft researchers, measured1 |
| Odds of trying Copilot CLI | No skip-level peers using it | +216% | Engineers where more than a quarter of skip-level peers had used it | Microsoft researchers, measured1 |
The following points explain the figures:
- Synthetic control: The cohort is active engineers who used either agent in the week of January 5 to 11, 20261. CausalImpact compares their merged pull requests with a counterfactual from 10 groups of never-users, over a 461-day pre-period1. Both groups were limited to engineers with at least two merged PRs in a four-week pre-rollout window1.
- Placebo and decay checks: Run with a placebo intervention on October 6, 2025, the method found no effect1. The February and March to April lifts differ within sampling noise, so the lift didn’t fade inside the window1.
- Days of use: The within-person analysis compares each engineer’s weeks of use with their weeks of no use1. The lift was +15.0% in weeks with three days of agent use1. The researchers read this dose-response as an association, not a cause1.
- Career stage: At three days a week, mid-level engineers saw +21.3%, and more junior engineers and more senior managers saw larger lifts1.
- Tool comparison: Among engineers who used only one tool, Copilot CLI adopters saw about 2.2 times the lift of Claude Code adopters1. Several survey respondents said they had moved toward Copilot CLI after the workshop1.
- Peer adoption: The adoption study covers only Copilot CLI, and use among skip-level peers was the strongest predictor of first use1. A direct manager’s use raised the odds of trying it by +82% and of sticking with it by +22%1. Reviewer peers raised the odds of trying it by up to +54%1.
- Activity and career: Engineers already shipping two or more pull requests a week were more likely to try Copilot CLI and to stay with it1. Career stage and tenure mattered little1.
Lessons learned
The study’s strength is its denominator, because Microsoft could see every engineer who could have adopted alongside their logged daily use1. First use spread through peers and managers, and the authors advise organizations to treat visible peer use as central to rollout strategy1.
Microsoft decided not to keep the deployment as measured, and shortly after the window closed it announced that most engineers would lose their Claude Code licenses1, 2. Microsoft told employees it was converging on Copilot CLI, which it can help shape directly with GitHub for its repos, workflows, security expectations, and engineering needs5. The Verge’s sources said that the decision was also financial, because June 30 ends the fiscal year and dropping licenses cuts operating expenses5.
Copilot CLI’s larger lift runs against what engineers preferred, because Microsoft’s developers had favored Claude Code before the switch5, 2. Public comparisons in early 2026 also rated Claude Code the preferred option for autonomous agentic work, and gaps between the products remained1, 5. The authors offer two explanations, different task mixes and an in-house tool aligned with Microsoft’s workflows, and the comparison excludes multi-tool users1.
Prior IDE Copilot users had up to +83% higher odds of trying Copilot CLI but kept it less, which the authors put down to a familiar alternative1. Junior engineers were less likely to try it at all, and one respondent worried about what the tools mean for junior colleagues1. The principal developer’s rounds of prompts describe a tool that works in the background and gets corrected, not one that finishes tasks unattended1.
Merged pull requests, the authors note, reward small, frequent changes, can miss quality costs such as added complexity, and come from Azure DevOps only1. They also name lighter tasks in heavier-use weeks, peer influence mixed with homophily, and a 16-week window that can’t show a long-horizon decline1. A Harvard working paper on more than 700 software firms, reported in November 2026, found 23% more pull requests but no statistically significant change in resolved Jira issues4.
Every outcome figure comes from one preprint by three Microsoft employees1. They note that Microsoft owns GitHub, the maker of Copilot CLI, and that their proximity might have shaped their questions, design, and interpretation1. The account of the switch rests on The Verge’s reporting of an internal memo and unnamed sources, which other outlets repeated5, 2, 3.
Case study scorecard
- +24.0% Merged pull requests per engineer per day1
- +50.1% Merged pull requests in weeks with five or more days of agent use1
- +24.9% Merged pull requests in weeks with Copilot CLI use1
- +216% Odds of trying Copilot CLI1
- Source quality: 73%, High quality. Rests on a preprint.
Sources by publication date
- Vendors and partners 2
- Press, academic, and regulators 7
Build this solution yourself
Analysis
What you need
To build this solution, you need the following in place:
- A roster of every engineer who could adopt: It let the researchers compare users with true non-users instead of guessing from traces1.
- Usage logs tied to each person: The study joined each engineer’s daily agent use to merged pull requests and HR records1. Check that your agent’s usage logs and your code platform’s pull requests can be tied to the same person.
- More than a year of pull request history: The counterfactual was built on a 461-day pre-period before the rollout1.
- Central control of licenses: It let Microsoft run two agents side by side and then end one1, 5.
Reference architecture
Software engineering assistant
A software engineering assistant writes, reviews, tests, or migrates code in the tools that developers already use, and a developer approves its output. A language model writes a change, a test, or a review comment from the code for a task, and automated checks and a checker model build, test, and filter it. A reviewer approves each checked proposal in code review before it merges, and developers do the work that fails the checks by hand.
- Developer tools
- Assistant platform (documented in this case study)
- Code repository
- Code index
- Deterministic code analysis
- Standards and guidelines
- Code and platform map
- Prompts and context
- Language model
- Automated checks
- Checker model
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- Salesforce rolled out Claude Code across the whole company as its main AI agent and gave every developer unlimited tokens8. Merged pull requests per developer climbed 79% in April 2026 against a year earlier8.
- Intuit deployed Claude Code across the whole organization, to the point where designers set it up and product managers act as engineers9.
In the library
- How Uber scaled coding agents and cut cost per session Uber
- Pictet takes Claude Code from developers to business teams Pictet Group
- TUI cuts external IT staff with AI coding assistants TUI Group
- eBay's Copilot pilot cut pull request merge time by 17% eBay
- Meta's just-in-time LLM tests catch bugs before code lands Meta
- AI coding assistants speed up software work at Deutsche Bank Deutsche Bank
Cite this case study
Enterprise AI Case Studies. "Command-line coding agents lift merged PRs at Microsoft." Updated Nov 19, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-014-command-line-coding-agents-microsoft/
@misc{csai-er-014,
author = {{Enterprise AI Case Studies}},
title = {{Command-line coding agents lift merged PRs at Microsoft}},
year = {2026},
note = {Updated 2026-11-19},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-014-command-line-coding-agents-microsoft/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Supporting excerpts (98)
Studying tens of thousands of engineers
Microsoft software engineers, every one of whom could have
run into millions of dollars annually, so misreading adoption, retention, or impact can make a
adopters merged roughly 24% more pull requests than they would have otherwise
agents that call large language models, where the agents execute semi-autonomous commands on behalf
of the user from the command line.
In the first half of 2026, Microsoft engineers had access to two sanctioned agentic command line
GitHub announced general availability of Copilot CLI on
February 25, 2026; Microsoft had earlier access through a product preview program.
starting in late 2025, specific divisions and
individuals received access through a managed program, and the access list evolved as the program
We refer throughout to January 5, 2026
broader internal use of these tools took off
April 29, 2026; shortly afterward, an internal announcement indicated that Claude Code licenses
would be discontinued for most engineers in about a month, with affected engineers directed to
Prior to this period, employees at Microsoft already had access to GitHub Copilot in non-CLI
These included Copilot for code completion, chat, and agent mode in IDEs
members of two large divisions that received broad Claude Code access through a managed
prior impact work largely infers AI
longitudinal, individually-identifiable telemetry of AI tool usage
The pre-period for predictor construction runs October 1, 2025 through January 4, 2026 (13
a set of demonstrations, tutorials, and hands-on sessions on these tools
From the 609 responses, an author identified recurring themes
at least 5 of the 14 days beginning with their first use.
engineer whose skip-level peers were largely using Copilot CLI had +216%
higher odds of trying it where more than a quarter had.
an engineer with no coworkers who used Copilot CLI in the prior 14 days.
trying it (+82%) and, more modestly, sticking with it (+22%).
reached +54% higher where a quarter or more had used it, with retention rising similarly.
up to +83% at 60+ days.
But those same engineers were less likely to stick with Copilot CLI.
Junior ICs were less likely to try Copilot CLI.
senior developers, who can break work down into smaller chunks
One principal-level developer said coding assignments often required 5–10
prompts, with each iteration taking 10–15
now I can just prompt it and switch to another
at least two merged PRs in a four-week pre-rollout window
CausalImpact estimates a+24.0%lift in PRs/engineer/day over the post-period
buckets, the lift shows no statistically distinguishable decay:+29.4%(95% CI
in February versus+20.0%(95% CI
re-running it with a placebo intervention at 2025-10-06
completes within 28 days of creation.
from+15.0%at three days a week to+50.1%at five or more.
so we read the dose-response as an association, not a cause
Claude Code , any use: +11.4%
Copilot CLI , any use: +24.9%
Copilot CLI adopters experienced about a 2.2×the lift of Claude Code adopters
tools are used fordifferent task mixes
maker of Copilot CLI, but is a buyer of Claude Code, organizational forces likely helped align the
several reported migrating toward Copilot CLI after the workshop
nearly 100% of the code written by Copilot CLI agent
repetitive unit tests faster
Merged PRs are an imperfect proxy for throughput and reward small, frequent PRs; we may
also miss quality costs such as added complexity.
We also measured PRs from Azure DevOps only, undercounting engineers on other ecosystems in both
The authors are Microsoft employees
Our 16-week window is long enough to surface an early fade but not a long-horizon decline.
pressing open question is now about quality, whether this added throughput yields better software.
In a 30-day period, total employee usage on the dashboard exceeded 60 trillion tokens,
showed that an early productivity lift
and (2) human resources (HR) data about developers.
Operationalization: career stage from HR records, coded as IC2–IC6 (individual contributors) and
our enterprise setting instead observes every engineer
who could adopt alongside direct usage.
The adoption study covers only Copilot CLI
more modest (+66% at the top level).
CLI — from +19% higher at up to 1 PR/week to +34% at 2 or more.
+14% at 1–2, and +31% at 2 or more.
of trying it than a mid-level IC (−13% and−14%)
retention markers are negative (between−12% and−15%)
with any tool activity during Jan 5–11, 2026, forming a
The synthetic counterfactual is built from a pool of 10 daily-mean regressors: we sampled PR
The pre-period runs October 1, 2024 – January 4, 2026 (461
days) and the post-period January 5 – April 29, 2026 (115 days).
passing this check. In Part 2, heavier-use weeks may carry a lighter task mix
counterfactual may be biased; re-running it with a placebo intervention at 2025-10-06 returned
Part 2 holds each engineer as their own control, comparing weeks in which they used a tool to weeks
We fit this on the single-tool subset defined above.
ence adopters experienced a+21.3%
Compared to this reference, the figure indicates that more junior ICs and more senior managers
I complete more PRs per week
I am able to make PRs faster and understand the codebase easily
good fit for experienced, senior developers, who can break work down into smaller chunks
what these tools mean for junior colleagues and how they can develop a good
task (reviewing PRs, reviewing design docs or just meetings).
the ability to make larger changes that I never would have taken on in the
boilerplate plumbing a lot faster
owns GitHub, the maker of Copilot CLI. Though under no explicit pressure,
our proximity may have shaped our questions, design, and interpretation.
Both studies draw on one company in a single early-2026 window, so findings
heavier-use weeks may carry a lighter task mix
we cannot separate peer influence from homophily
restriction also excludes possibly-distinct multi-tool users.
coding tools generally rate Claude Code as the preferred option for autonomous agentic work
though whether that output justifies its cost is a question of value, not throughput alone.
organizations should treat visible peer use as central to rollout strategy.
Copilot CLI but have a familiar alternative to fall back on
We end our analysis window before this point because including weeks in
- Source 2:
Microsoft pulls Claude Code licenses and pushes developers back toward its own AI tool
Supporting excerpts (9)
Microsoft will cancel most internal Claude Code licenses and move its developers to GitHub Copilot CLI, the company's own command-line tool.
The change hits the Experiences and Devices team, which is responsible for Windows, Microsoft 365, Outlook, Teams, and Surface, among others.
Claude Code usage there is expected to end by late June.
Just last December, Microsoft gave thousands of employees access to Anthropic's AI coding tool.
Even designers and project managers with no programming experience were encouraged to experiment with it.
developers preferred it over Copilot CLI, effectively undermining Microsoft's own product.
Copilot CLI, however, offers the advantage of letting Microsoft work directly with GitHub to tailor the product for its own repositories and security requirements, he added.
June 30 marks the end of Microsoft's fiscal year, and cutting Claude Code licenses lowers operating expenses right at the changeover.
Anthropic's models will still be available through Copilot CLI, in Microsoft 365 apps, and via the Foundry deal - but significant feature gaps remain between Claude Code and Copilot CLI.
- Source 3:
Microsoft and Uber Are Running Into an Expensive New AI Problem
Supporting excerpts (5)
Microsoft told thousands of its engineers on May 14 to stop using Claude Code
In an internal memo, Microsoft EVP Rajesh Jha explained the decision as a push toward standardizing on one tool.
switch to GitHub Copilot CLI, Microsoft's own AI coding tool, by June 30.
At the same time, Copilot CLI has given us something especially important: a product we can help shape directly with GitHub.
Uber admits it cannot find a clear return on investment after its engineers burned through an entire annual AI budget in four months.
- Source 4:
Harvard study: AI coding agents add 30% code, flat shipped output
Supporting excerpts (4)
A Harvard working paper covering roughly 300 million work events from more than 700 software firms finds that AI coding agents lift per-worker code volume by about 30%, while the amount of finished software shipped at the firm level does not move, according to Ars Technica.
and 23% more pull requests
Resolution of Jira issues and epics, the paper's proxy for finished software, showed no statistically significant change.
Average time between a pull request being submitted and merged rose 49%, comments per pull request climbed 35%, and the share of pull requests with changes requested nearly doubled.
- Source 5:
Microsoft starts canceling Claude Code licenses
Supporting excerpts (19)
Microsoft first started opening up access to Claude Code in December, inviting thousands of its own developers to use Anthropic
It was part of an effort to get project managers, designers, and other employees to experiment with coding for the first time
allowing designers and project managers to prototype ideas
Microsoft had also originally expected employees to use both Claude Code and GitHub Copilot, to compare the two and provide feedback.
a command line version of GitHub Copilot that runs outside of development apps like Visual Studio Code
is winding down its usage of Claude Code by the end of June.
Sources tell me that engineers are being encouraged to start transitioning their workflows to GitHub Copilot CLI in the coming weeks, ahead of the cutoff.
Microsoft is telling employees that the decision is about converging on Copilot CLI as its main agentic command line interface tool across Experiences + Devices
but sources tell me the decision is also a financial one.
canceling Claude Code licenses is an easy way to cut some operating expenses for when the new financial year starts in July.
When we began offering both Copilot CLI and Claude Code, our goal was to learn quickly, benchmark the tools in real engineering workflows, and understand what best supported our teams
a product we can help shape directly with GitHub for Microsoft’s repos, workflows, security expectations, and engineering needs
own developers have favored Claude Code over GitHub Copilot CLI in recent months instead
there are still gaps between the products that will now need to be addressed.
The GitHub team has already shipped significant improvements based on Microsoft feedback
This is a shared accountability across GitHub and E+D leadership: to make Copilot CLI the best agentic coding experience for Microsoft engineers.
models will remain accessible through Copilot CLI, along with internal-only Microsoft models and OpenAI
Microsoft is also encouraging developers to file bug reports and feedback on Copilot CLI ahead of Claude Code being removed.
Microsoft told me last year that 91 percent of its engineering teams were using GitHub Copilot
- Source 6:
Supporting excerpts (4)
The command-line interface (CLI) for GitHub Copilot allows you to use Copilot directly from your terminal.
In plan mode, Copilot analyzes your request, asks clarifying questions to understand scope and requirements, and builds a plan before writing any code.
In manual approval mode, Copilot asks for your approval when a tool request isn't already allowed.
This can include tools that modify or execute files
- Source 7:
Supporting excerpts (1)
Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
- Source 8:
Salesforce claims AI agents cut a 231-day migration to 13 days with fewer incidents
Supporting excerpts (3)
They rolled out Anthropic's Claude Code across the whole company as the main AI agent and gave every developer unlimited tokens to use it.
For April 2026, Salesforce reports a sharp efficiency jump compared to the same month last year.
Merged pull requests per developer climbed 79 percent.
- Source 9:
Intuit Rolled Out Claude Code Company-Wide. Now PMs Are Merging Their Own PRs
Supporting excerpts (3)
to talk through what his teams are actually seeing after deploying Claude Code across the whole organization.
The designer had set up Claude Code and asked
PMs can act as engineers.
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.