Nine engineers, 1,211 pull requests in a day: the rules Microsoft uses to keep agents honest
The Copilot Cowork team wrote down the six practices that let a tiny team ship mostly agent-written code without losing control of it.
Every change starts as a markdown spec answering three questions: what it does, how we will know it works, and what it must not break. Many specs start spoken and an agent drafts them. Agents then run narrow, one task and one spec each in their own copy of the repo, with the model picked per task for quality and cost. Merged PRs went from 257 in January to 2,754 in May.
The sharpest lesson is about checks. A size limit stayed green for weeks because the script piped its output through tail, which always exits 0. Now every check reports how many files it checked and ships with a test that makes it fail on purpose. Team lessons live as about 30 rule files in the repo, and every automated loop gets a keep or revert rule, a metric that must not regress, an attempt cap (20 rounds, or the same CI failure three times) and a list of actions only a person may take.
Agents keep working until the checks pass, so if a check can pass without testing anything, an agent will eventually find that path.
