GitHub Copilot Adaptive Code Review Needs a Risk Ceiling
GitHub added Adaptive review, cross-repository context, and secret detection. I would still cap the agent’s maximum effort.
I hit the same review problem whenever a coding agent touches a SaaS repository: a documentation pull request and a change to authentication should not consume the same amount of attention. The first needs a quick sanity check. The second can affect every service that trusts the same identity boundary. GitHub’s November 17 update to Copilot code review moves that distinction into the product. Adaptive can choose Lite, Balanced, or Max effort; cross-repository context can read related public repositories; and secret detection can flag credentials in changed lines.
Set the ceiling before choosing the mode
Adaptive is a sensible default for a busy team. A reviewer should not have to remember to change a setting every time a pull request moves from a README edit to a shared library change. GitHub says Adaptive looks at complexity and risk, then selects an effort level. It also cannot exceed the maximum effort configured at enterprise, organization, or repository level.
That ceiling is the part I would configure first. For example, my initial policy might be:
Documentation-only PR -> Lite
Normal application change -> Balanced
Auth, billing, shared SDK -> Balanced, then human escalation to Max
The point is not to make Adaptive cleverer. It is to keep a surprising classification from silently creating an expensive or overconfident review. If a repository can use Max without any human decision, I want a very clear reason and a rollback path. GitHub describes Max as the most thorough effort level and says it is useful for authentication logic or libraries shared by several services. That makes it a useful second opinion, not an automatic merge authority.
More model passes do not give the agent a complete deployment graph. It may read more files and still fail to know which Kubernetes Secret is production-only, which service has a compatibility promise, or which migration has already run in one region. I would keep ownership for those decisions with a named reviewer.
Secret scanning is a gate, not a rescue plan
The secret-detection change is practical because it combines deterministic patterns with model-based detection. GitHub says its provider-pattern program covers more than 500 secret types, built with more than 150 industry partners, while a fine-tuned model can identify credentials that do not match a recognizable format. That division makes sense: stable patterns catch known token formats, and a model can notice a password embedded in an unusual connection string.
There is an important limit. The feature checks changes; it does not search repository history. If a token was committed yesterday and removed today, the operational response is still to revoke it, rotate the replacement, and investigate access. A review comment is not evidence that the old credential is safe.
Secret scanning is off by default in Copilot’s security review flow. For Copilot CLI, GitHub documents an opt-in command and a review command:
/settings aiSecretDetection on
/security-review
I would run that on the agent’s branch before asking for the pull request review. Findings should be checked against the actual credential owner, scope, and expiry. A string that resembles a token may be test data, but making the check green by deleting it blindly is also a poor security process. The useful outcome is a recorded decision: revoked, rotated, accepted as a false positive, or fixed before merge.
Cross-repository context changes what “the code” means
Cross-repository context is attractive when an API contract spans several repositories. A function signature can be correct inside the current checkout and still break a client maintained elsewhere. Reading related public repositories, documentation, custom instructions, and skills can give the reviewer more of the dependency story. GitHub currently describes this capability as a public preview for public repositories, so I would treat it as useful but not yet invisible infrastructure.
Public does not mean consequence-free. A README can contain a test endpoint, an unreleased interface, or an operational assumption that was never meant to become review context. I would maintain an explicit list of repositories that may be consulted and ask the review output to identify what it read. “The downstream call may be stale” is much more useful than a confident comment with no source boundary.
GitHub also added repository insights for Copilot review outcomes. The page can show addressed comments, addressed high-severity comments, pull requests that did not receive a later human change request, and merged pull requests that skipped Copilot review. Those signals are helpful for finding coverage gaps. They are not a quality score. A developer can close a comment because it is wrong, irrelevant, or too noisy.
My practical rollout would start with a few services, a capped maximum effort, and a manual escalation path for authentication, billing, and shared libraries. I would keep the review evidence with the pull request: effort level, repositories consulted, secret findings, and the human decision. Adaptive review should reduce settings people have to remember, not remove the boundary around who merges risky code. If the agent learns when to look harder, it earns a place in the workflow. If nobody trusts the comments, it has created a new queue.
Sources: Copilot code review update, secret scanning for agents
