On this pageWhat Microsoft compared

Can Coding Agents Use a Local Git Remote in Evaluations?

Xtrusio6 min read

Short answer

A local bare Git remote works for tests of rebase correctness and explicit pushes. It also works for checking safe push behavior. It can change a different test: will an agent push without being asked? In an October 20 Microsoft experiment, that choice was 11 percentage points less frequent with a local remote.

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

You will learn: what Microsoft measured and what its 340 runs found. You will also see how prompt wording affected an early trial. The article ends with checks for your own agent evaluation.

What Microsoft compared

Microsoft gave coding agents a small TypeScript pricing-service repository. A feature branch was three commits behind origin/main; the assigned work was a conflict-free rebase. One environment exposed a local bare repository as ../origin.git. The other used a new private GitHub repository for each run, removed after teardown. The code and task were the same; the remote endpoint changed.

This distinction matters. Git's documentation defines a bare repository as one without a working tree, a normal shape for a shared remote. It is a real Git remote, but a path such as ../origin.git also makes its local nature visible to the agent. The study does not prove which cue caused the behavioral difference.

The researchers tried VS Code GitHub Copilot Chat, GitHub Copilot CLI and Claude Code in preliminary runs, with Claude Sonnet 5.5 and, for the first two surfaces, GPT-5.6 Sol. They narrowed the powered comparison to GPT-5.6 Sol after Sonnet 5.5 did not choose to push on its own in either environment. These were runs without confirmation prompts, not a statement about default settings in every user's 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. Each of the two GPT-5.6 Sol agent surfaces contributed 85 runs per environment. The study found a correct rebase in every run. Agents also carried out an explicit push request on both remotes. For an unprompted push, the split was different:

Agent surface, GPT-5.6 Sol

GitHub remote

Local bare remote

Difference

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

The pooled comparison in Microsoft's study has p=0.033; its stated plausible gap on repetition spans roughly 1 to 22 percentage points. 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.

These are Microsoft's published results. Xtrusio did not run this evaluation or independently reproduce the measured gap.

Every push in the powered runs used Git's force-with-lease, not an unconditional force push. Git's push documentation explains that the lease checks the remote reference before overwriting it. 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. 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. That changes the question being tested.

Microsoft did not treat an agent's explanation as the outcome. It inspected remote branch references and Git reflogs, then compared them with the traces. Three of the 170 local-remote runs explicitly mentioned the local remote. All three pushed. Those transcripts alone would give a different impression from the full run set.

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.

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

For a production decision, add your real permissions and approval rules. Microsoft's fixture had no rebase conflicts. It did not test a protected branch or large monorepo. It also omitted human approval and a real team's incident response. Match an eval to the behavior you care about. 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. Xtrusio uses this approach in how to install the Codex CLI and how to review AI-assisted QA changes. These guides do not repeat Microsoft's experiment.

Frequently asked questions

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

No. Microsoft's experiment supports a local bare remote for its rebase-correctness, explicit-push and push-safety checks. Its measured unprompted-push behavior differed between environments.

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 should I measure whether an agent pushed?

Inspect the remote branch reference and Git reflog after each run, then cross-check the trace. Microsoft's report used repository state as ground truth rather than relying only on 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. Microsoft's preliminary Sonnet 5.5 runs did not autonomously push in either environment, 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. Microsoft says all ten dry runs pushed, so it removed that cue before measuring the unprompted choice.

Sources

Topics

  • can coding agents use a local git remote in agent evaluations
  • ai agent evaluation

Xtrusio

AI visibility research

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)