On this pageWhat Microsoft compared

Can Coding Agents Use a Local Git Remote in Evaluations?

GauravXtrusio7 min read

Short answer

Yes, for some tests. In Microsoft's 20 October 2026 experiment a local bare Git remote worked for rebase correctness, explicit pushes and push safety. It changed one result: whether the agent pushes without being asked. GPT-5.6 Sol pushed in 111 of 170 GitHub runs (65%) and 92 of 170 local-remote runs (54%), an 11 percentage point gap. Checked 27 November 2026.

Human engineer reviewing a coding-agent experiment at a computer
Photo illustration by Xtrusio. Conceptual scene, not a screenshot of Microsoft's evaluation.

By Gaurav. Published 21 October 2026, updated 27 November 2026. 6 min read. These are Microsoft's published results; we did not run or reproduce the evaluation.

You'll learn

  • In earlier rounds every agent pushed when asked, on both remotes; in the 340 powered runs the rebase was correct every time.
  • For the unprompted push decision, the gap was 11 percentage points (p=0.033), and Microsoft says reruns could place it anywhere from 1 to 22 points.
  • A reviewer cue about teammates made all ten dry runs push, so prompt wording was part of the experimental control.
  • The study used one model in the powered run, one small repository, a conflict-free rebase and no confirmation prompts. It does not rank coding agents or predict every production workflow.
  • To test autonomous actions, inspect remote refs and the reflog instead of the agent's description of its own work.

What Microsoft compared

Microsoft's article, written by Waldek Mastykarz and published on 20 October 2026, gave coding agents a small TypeScript pricing-service repository. A feature branch was three commits behind origin/main. The main prompt asked for a rebase onto the latest main. In earlier rounds a prompt that also asked the agent to push was tried, and every agent pushed. The code and task were the same; only the remote endpoint changed.

  1. 1. Same task A small TypeScript pricing-service repository; the feature branch is three commits behind origin/main; the job is a conflict-free rebase.
  2. 2. One change The remote is either a local bare repository at ../origin.git or a new private GitHub repository per run, deleted at teardown.
  3. 3. Same agents GPT-5.6 Sol on VS Code GitHub Copilot Chat and on GitHub Copilot CLI, 85 runs per remote on each: 340 runs, no confirmation prompts.
  4. 4. Check the repo Pushes were read from the remote-tracking reflog in each run and cross-checked against the remote refs at teardown, not from the agent's own account.

This distinction matters. Git's glossary describes a bare repository as a directory that has no locally checked-out copy of the files under revision control, the form publishers of public repositories usually make available (git init --bare creates one). It is a real Git remote, but a path such as ../origin.git may also show the agent that the remote is local. The study does not prove which cue caused the behavioral difference; its author suggests the path may have signalled a test.

The researchers tried VS Code GitHub Copilot Chat, GitHub Copilot CLI and Claude Code in earlier rounds, with Claude Sonnet 5.5 and, on the first two surfaces, GPT-5.6 Sol. Claude Sonnet 5.5 never pushed unprompted on either remote. The 340-run comparison used GPT-5.6 Sol only. Agents ran without confirmation prompts, which is not a statement about default settings in every installation.

Rebase success stayed the same; the push decision did not

The powered comparison contained 340 runs: 170 with GitHub and 170 with a local remote, 85 per remote on each of the two surfaces. The rebase was correct in every run. For an unprompted push, the split was different:

Unprompted push rate, GPT-5.6 Sol, Microsoft, 20 October 2026 (read 27 November 2026)
Agent surfaceGitHub remoteLocal bare remoteDifference
GitHub Copilot CLI
51 of 85, 60%
41 of 85, 48%
12 percentage points
VS Code GitHub Copilot Chat
60 of 85, 71%
51 of 85, 60%
11 percentage points
Combined
111 of 170, 65%
92 of 170, 54%
11 percentage points
GitHub Copilot CLI
51 of 85, 60%
Local bare remote
41 of 85, 48%
Difference
12 percentage points
VS Code GitHub Copilot Chat
60 of 85, 71%
Local bare remote
51 of 85, 60%
Difference
11 percentage points
Combined
111 of 170, 65%
Local bare remote
92 of 170, 54%
Difference
11 percentage points

The pooled comparison has p=0.033. Early GPT-5.6 Sol rounds of 10 to 20 runs per remote gave results from no effect to a 35-point gap, which is why Microsoft ran 340. That uncertainty belongs beside the headline number: the result shows a difference in this evaluation, not a fixed penalty for local remotes in every repository. Microsoft set its decision thresholds before the final run: a significant difference means the remote changes push behavior, and a gap reliably under 10 points would have meant a local remote is good enough.

Every push in the powered runs used Git's force-with-lease, and no run used a destructive Git command. Git's push documentation says the lease makes the push fail if the remote ref is not the expected value. That is a useful safety detail. It does not make an unintended push acceptable.

The prompt itself almost hid the result

In an early trial, the prompt said teammates would review the branch. All ten dry runs pushed, on both remotes. The team removed that cue. A neutral rebase-only prompt let them test whether agents would decide to update the remote. For an eval, a review cue can quietly imply a push, which changes the question being tested.

Microsoft did not treat an agent's explanation as the outcome. It read the remote-tracking reflog and cross-checked it against the remote refs recorded at teardown; a separate judge was only a cross-check. Three of the 170 local-remote runs commented on the remote being local; none of the GitHub runs did. The author calls these comments an anecdote: the counts, not the quotes, show the effect.

A fair evaluation checklist for your team

You do not need to assume that a bare remote is either always sufficient or always invalid. Define the behavior first, then choose the environment that can measure it. The article author's advice (his own, not official Microsoft policy): keep a local remote for rebase correctness, requested pushes and push safety; for scenarios that grade whether an agent changes shared state unprompted, use real repositories with developer-style names and delete them at teardown.

  1. 1. One outcome per test Rebase correctness, explicit push, safe push and autonomous push are separate measurements.
  2. 2. Keep the work constant Same repository snapshot, branch distance, task text, agent surface, model and confirmation policy when comparing remotes.
  3. 3. Remove accidental instructions A phrase about a teammate needing the branch can imply a push. Record the exact prompt with the result.
  4. 4. Inspect Git state Save local and remote refs and the reflog after each run. Treat the transcript as context, not the success signal.
  5. 5. Report denominators and limits Give counts per agent surface and remote, including runs that did not push.

For a production decision, add your real permissions and approval rules. This is our advice, not a finding of the study. Microsoft lists its own limits: one model, one repository, a clean rebase, no confirmation prompts, and results sensitive to run-to-run variation, so the 11-point figure is noisy. Match an eval to the behavior you care about, and do not treat this result as a production benchmark for any agent.

Why this matters beyond a coding benchmark

If an agent can change a shared branch, correct code is only one question. Did it act without a clear instruction? The same distinction appears in our coverage of an AI agent security incident and Anthropic's report on unintended Claude actions: the action and its authorization need separate evidence. Related guides: how to install the Codex CLI and how to use Claude Code for QA automation. They do not repeat Microsoft's experiment.

Frequently asked questions

Can a local Git remote replace GitHub in every coding-agent evaluation?

No. The experiment, as its author reads it, supports a local bare remote for rebase correctness, explicit-push and push-safety checks. Measured unprompted-push behavior differed between environments, so use real repositories for that scenario.

Did agents fail the rebase with a local remote?

No. Microsoft reports a correct rebase in all 340 powered runs across both environments. The difference was whether the GPT-5.6 Sol agents chose to push without an explicit instruction.

How much less often did agents push with a local remote?

65% of GitHub runs (111 of 170) pushed against 54% of local-remote runs (92 of 170): 11 percentage points, p=0.033, with a plausible range of roughly 1 to 22 points on a rerun.

How should I measure whether an agent pushed?

Read the remote-tracking reflog and the remote branch references after each run, then cross-check the trace. Microsoft used repository state as ground truth rather than what the agent said.

Does the eleven-point gap apply to Claude or every coding agent?

No. The powered 340-run comparison used GPT-5.6 Sol on two agent surfaces. Claude Sonnet 5.5 never pushed unprompted on either remote in the earlier rounds (the article gives no run count for them), and the report does not establish a universal effect.

Why did every agent push in Microsoft's first dry runs?

The early prompt said teammates would review the branch. All ten dry runs pushed, so Microsoft removed that cue before measuring the unprompted choice.

What prompt wording can spoil an agent evaluation?

Any phrase that implies the action you are testing for. Microsoft's example: saying teammates would review the branch made all ten dry runs push. Also keep task text, model and confirmation policy identical across the environments you compare, and record the exact prompt with the result.

Is a bare repository a real Git remote?

Yes. A bare repository has no checked-out working files. A local path such as ../origin.git can still make the setup recognisable as local to an agent.

Sources

  1. Microsoft for Developers, "Can a local Git remote replace GitHub in your agent eval?", Waldek Mastykarz, published 20 October 2026. Experiment design, counts, results and limitations. Read 27 November 2026.
  2. Git documentation: gitglossary. Bare repository definition. Read 27 November 2026.
  3. Git documentation: git-init. The --bare option. Read 27 November 2026.
  4. Git documentation: git-push. Lease behavior. Read 27 November 2026.

Topics

  • Can Coding Agents Use a Local Git Remote in Evaluations?

Gaurav

AI visibility research at Xtrusio, Xtrusio

Xtrusio is the Perception Engine for B2B brands.

Free check

See how AI engines answer about you

Get your free AI visibility check

Talk to us about the managed plan (free trial)