GitHub: Better Tools Made Copilot Code Review Worse — Rewriting Prompts Restored Quality at 20% Lower Cost
GitHub revealed that migrating Copilot code review to better-maintained tools initially made results worse — the cause was not the tools but outdated agent instructions. By rewriting the instructions to a diff-first approach (batch discovery before reading files, analysis anchored to the PR diff), they achieved around 20% lower average review cost with the same quality.
This article was generated using artificial intelligence from primary sources.
On July 10, 2026, GitHub published an unusually candid engineering post: when Copilot code review was moved to better-maintained tools, results initially got worse. Analysis showed that the problem was not the tools, but the instructions (agent prompts) that no longer matched the actual workflow of a code reviewer.
Where was the mistake?
The old instructions led the agent into ‘broad exploration’ — scanning a large portion of the repository before focusing on the changes. This spent tokens and time on context that a pull request review generally does not need. When the new, more capable tool received those same instructions, it simply did the wrong thing more efficiently.
How does the diff-first approach work?
The solution was to rewrite the instructions around two principles. First: batch discovery operations (grouped information gathering) before reading individual files, instead of interleaved exploration. Second: analysis anchored to the PR diff — the agent starts from what actually changed, and fetches broader context only when needed. The result is around 20% lower average review cost with unchanged quality.
Why is the lesson universal?
The finding is concrete evidence of the thesis quantified that same week by the arXiv paper ‘Harness Effect’: the economics of AI agents are determined by orchestration (instructions, flow, context), not the model itself. GitHub’s case also illustrates the flip side — upgrading a model or tools without adapting the instructions can make results worse. For anyone building AI coding tools, the practical message is clear: before swapping out the model, read and rewrite the prompts.
Frequently Asked Questions
- Why did better tools make Copilot code review worse?
- Because the agent instructions were not adapted to the new tools or the actual workflow of a code reviewer — the old 'broad exploration' logic wasted resources on context that reviews don't need.
- How did GitHub fix the problem?
- By rewriting instructions to a diff-first approach: batch discovery operations before reading files, and analysis anchored to the PR diff rather than broad exploration of the entire repository.
- How large is the saving?
- Around 20% lower average review cost with the same quality of results.
Sources
Related news
AWS: SageMaker Brings Serverless Fine-Tuning for NVIDIA Nemotron 3 Models with SFT, RLVR, and RLAIF Techniques
Anthropic: Claude Code v2.1.206 Brings /cd with Path Suggestions, /doctor Advice for CLAUDE.md, and Auto Git Push in /commit-push-pr
AWS: Henry Schein One Verifies Dental X-Ray Quality with Real-Time AI — 11 Million Images per Week at 1.4-Second Latency