Decoding Microsoft's Copilot Cowork lessons: six practices for running coding agents

A breakdown of how nine Microsoft engineers ran dozens of coding agents with specs, review bots, honest checks and repo rules, for teams scaling past one agent.

Picture a four-person platform team at a B2B SaaS shop. Over one quarter they went from one coding agent to five, each on its own branch. PR volume tripled. Now the humans are the bottleneck. A 30-file diff gets a skim instead of a review. The agents repeat last week's mistake because nothing carried over between sessions. Half the merge conflicts are in a registry file that every branch appends to. One day someone notices that a CI check has been green for a month while checking nothing.

Microsoft's Command Line blog published a field report on exactly this on Nov 2, 2026: Lessons from building Copilot Cowork. A small team took an agentic product from empty repo to worldwide GA, with agents writing most of the code, then moved the live runtime from Python to Rust. The post distills six practices. They are not a product you install. Most can be copied into a repo this week.

What it is

Copilot Cowork is Microsoft's agentic execution layer for Microsoft 365. Per WindowsForum's write-up, it sends emails, schedules meetings, creates documents and posts in Teams on a user's behalf. The news for builders is how it was built. According to Microsoft's post, the first commit landed January 13, Frontier customers got it March 30, and GA came June 16. On October 21, nine engineers merged 1,211 PRs into the backend's main branch.

The six practices, mapped to the lede's pains:

Two packaged alternatives, both from GitHub:

Who it's for

Pick this up if you already run more than one coding agent against a shared repo and review or merge conflicts are where your time goes. It also fits if you're designing an agent product and haven't yet decided where credentials live. The host/container split is the cheapest to adopt early. Microsoft says building it in at the start was much easier than adding it later.

Skip the heavier parts if you're one person with one agent. The spec rule and the honest-check rule still apply. The review bots and the crate refactor don't.

Before and after

Before:

  1. Someone types a request into an agent chat.
  2. The agent produces a plausible diff, which gets a quick read.
  3. CI goes green, including a check that may be testing nothing.
  4. A merge conflict lands in a shared list file and someone resolves it by hand.
  5. The next session repeats the same mistake.

After, per Microsoft's post:

  1. A spec states the change, how success is judged, and what must not break. It is often dictated, then edited.
  2. One agent takes one spec in its own repo copy, using a model picked for that task's quality and cost needs.
  3. A first agent review arrives in minutes. Specialized passes follow, and findings are tagged blocking or advisory.
  4. Critical changes get at least one human check.
  5. Every check reports its file count and has a must-fail test.
  6. Registries and generated files are structured so parallel branches don't collide.
  7. Any repeated mistake becomes a rule file that every future agent session reads.

Try it

The smallest concrete step comes straight from the post: audit your CI scripts for checks whose exit code is swallowed by a pipe. Microsoft's size check piped output through tail. A shell pipeline returns the exit code of its last command, so the check passed while the limit was exceeded. The post shows both versions (lint-size-check is the team's own script name):

# The pipeline's exit code is tail's, so this always passes
lint-size-check | tail -1
# Keep the check's own exit code and print it
lint-size-check > out.txt 2>&1; rc=$?; echo "lint rc=$rc"; cat out.txt; [ "$rc" -eq 0 ] || exit 1

Then adopt the two-part rule: report files checked, and give each check a test that makes it fail.

Second step: write your next agent task as a three-part markdown spec, then add a root instruction file. Following Microsoft's pattern, add a rule each time an agent repeats a mistake.

If you want the read-only, gated-writes model without building a host, the GitHub Agentic Workflows quickstart starts with gh extension install github/gh-aw and gh aw add-wizard, per Azure Greg's walkthrough (Oct 29, 2026). Data Studios notes that runs consume Actions minutes and model inference.

Where it breaks

Sources