โ—€ Playbook index
NO.09

Copilot Code Review

Updated: 2026-07-22

In a nutshell

Copilot Code Review is a feature that lets you assign Copilot as a reviewer โ€” manually or automatically.

Once assigned, Copilot reads the code's intent and returns inline comments, a PR summary, and fix suggestions.

๐Ÿ’ก Analogy: A junior reviewer on call 24/7. Hand off all the basic feedback โ€” style, null safety, test coverage โ€” so humans can focus on design, business logic, and mentoring.

Strengths of Copilot Code Review

  • ๐Ÿง  Understands context โ€” grasps code intent and returns inline comments, PR summaries, and fix suggestions
  • โš™๏ธ Automation โ€” can run automatically at the Repo / Org / Enterprise level
  • ๐Ÿ“œ Customizable โ€” define review standards in copilot-instructions.md / AGENTS.md
  • ๐Ÿ”ง Fix suggestions โ€” apply fixes one by one or all at once
  • ๐Ÿ–ฅ๏ธ Smooth UI โ€” review and apply suggested changes via diff view in VS Code / GitHub.com
  • ๐Ÿ›ก๏ธ Respects content exclusion โ€” honors Repo / Org / Enterprise Copilot content-exclusion paths, keeping sensitive or irrelevant files out of review context
  • ๐Ÿ”Ž Transparency โ€” everything is traceable via Actions logs and agent sessions

Impact data

A leading automotive and manufacturing customer in Japan (Sep 2025 โ€“ Feb 2026, median PR open duration).

PR Open Duration (days)
Without Copilot Code Review With Copilot Code Review
14.2 days
11.6 days
Automotive customer
13.6 days
11.1 days
Manufacturing customer

๐Ÿ’ฐ Business value: Shorter time from PR approval to merge โ€” development lead time shrinks, time-to-market improves. Exceptionally high ROI.

How to use it

WhereTriggerWhat happens
GitHub.com manual reviewAdd Copilot to the Reviewers on a PRInline comments + PR Overview returned within minutes (on draft PRs, request it instantly via the Request button next to Copilot)
GitHub.com automatic reviewEnable โ€œauto-review on PR creationโ€ in Repo / Org / Enterprise settingsAll new PRs are reviewed automatically (deploy org-wide in 3 steps)
VS CodeRun Copilot: Review uncommitted changes from the Source Control panelInstant review of uncommitted changes โ†’ self-check before push
GitHub CLIRun /review in the terminalReview the current working tree / branch diff inline โ€” no editor needed
GitHub CLI (rubber duck)Discuss design or implementation approach โ†’ bounce ideas off the rubber-duck agentCatch blind spots, logic gaps, and alternatives before implementing โ†’ prevent rework

Setting up automatic review

Enable โ€œauto-review on PR creationโ€ via a Ruleset. Choose scope at Repo / Org / Enterprise level.

ScopeSettings pathKey options
RepositoryRepo โ†’ Settings โ†’ Code and automation โ†’ Rules โ†’ Rulesets โ†’ New branch rulesetโœ… Automatically request Copilot code review
โœ… Review new pushes
โœ… Review draft pull requests
OrganizationOrg โ†’ Settings โ†’ Repository โ†’ Rulesets โ†’ New branch rulesetTarget repositories by pattern (e.g. *-feature)
EnterpriseEnterprise โ†’ Policies โ†’ RulesetsForce-apply to all Orgs โ€” centralized governance

๐Ÿ“˜ Official guide: Configure automatic code review โ€” with screenshots

Customization

Define review standards by just adding files to your repo โ€” Copilot code review reads them automatically.

SourceLocationUse
copilot-instructions.md.github/copilot-instructions.mdRepo-wide review standards (the 4000-character limit has been removed โ€” long, detailed instructions are honored in full)
NAME.instructions.mdunder .github/instructions/Extra instructions scoped via applyTo to specific paths or languages
AGENTS.mdrepository rootIf an AGENTS.md already exists, itโ€™s used as context automatically โ€” share the same conventions across Cloud Agent / CLI

๐Ÿ’ก Key point: If you already run on AGENTS.md, the same conventions apply to reviews with zero extra setup. What is AGENTS.md? โ†—

๐Ÿ“˜ Official guide: Adding repository custom instructions for GitHub Copilot โ€” covers all three file types and which features support them

Governance & runner controls

Copilot code review runs on an agentic architecture, executing on GitHub Actions runners (consuming Actions minutes since 2026-06-01). Org admins can govern the execution environment centrally.

ControlSettings pathWhat you can do
Runner type (Org)Org โ†’ Copilot โ†’ Runner type โ†’ Runner type configurationSet a default runner (standard / large / self-hosted) across all repos. Lock it to override per-repo settings. Applies to both code review and Cloud Agent
Content exclusionRepo / Org / Enterprise settings (path-based rules)Exclude sensitive or irrelevant files/directories from review context

๐Ÿ”ง Shaping the runner environment: Control runner size / self-hosted / Windows switching via copilot-setup-steps.yml. See Cloud Agent โ†— (same mechanism as Code Review).

Limits and the human role

Copilot Code Review is powerful but not omniscient. Humans still own these areas:

  • Business logic correctness โ€” comparing against requirements and specs is beyond AI
  • Deep security analysis โ€” combine with dedicated tools like CodeQL for SAST / SCA
  • Design review โ€” architecture, module boundaries, and trade-off discussions
  • Mentoring โ€” explaining why code should be written a certain way to teammates

๐ŸŽฏ Division of labor: AI handles basic feedback, style, null safety, and missing tests, freeing humans for the high-value work of design, requirements, and team growth.