Back to blog
8 min readBy VIBPS

How to design an AI code review system maintainers can trust

A useful AI reviewer needs more than a strong model. Build a pipeline that gathers repository context, separates focused checks from verification, measures noise and keeps maintainers in control.

AI agentsCode reviewDeveloper guide

When code generation gets faster, the review queue can become the new bottleneck. An automated reviewer only helps if its findings are specific enough to act on and quiet enough that people keep reading them. That makes review architecture a trust problem: the system must show how it reached a concern, make weak claims easy to reject, and fit the way maintainers already work.

Google’s November 18, 2026 account of Sashiko, its open-source Linux kernel review system, is a useful case study. The project describes a sequence of context gathering, focused analysis, triage, deeper verification and a human-readable report. Those are design choices for a demanding codebase, not a guarantee that the same model or workflow will work for every repository. Here is how to turn the pattern into a review system your team can evaluate.

Start with the maintainer’s inbox

Set a clear boundary for what the reviewer can inspect and where it can speak. A team might run it locally, attach it to a pull request, or subscribe selected repositories or components to a central service. Begin with a small opt-in group and define when comments appear, who receives them, and whether a clean review should be silent. A stream of ‘looks good’ messages can be as distracting as a stream of false alarms.

Treat notification policy as part of the product, not an afterthought. The Sashiko maintainer guide documents controls for replying to a public list, contacting an author, copying other recipients, muting a scope, and delaying reports with findings. For a private repository, the equivalent decisions include whether results are a draft check or a posted comment, whether security-sensitive findings are held for human review, and how a maintainer can pause the integration.

Give every review enough local context

A diff alone often cannot establish whether a change is safe. Fetch the relevant base revision, changed functions and types, direct callers, and the project’s documented constraints. For a large codebase, do this selectively: a patch touching a device driver may need hardware and locking context, while a documentation change probably does not. Keep source paths and revision identifiers attached to the material so a later verifier can check the same code.

Separate facts derived from the repository from rules supplied by people. Sashiko’s current repository describes three layers: automatic code notes verified against the source tree, maintainer-curated notes about subsystem expectations, and shared review procedures. This division helps keep a local preference from being mistaken for a universal rule, and gives maintainers a place to correct outdated guidance.

Split the search into narrow questions

Ask focused reviewers to inspect different failure classes rather than giving one prompt every possible concern. Depending on the project, those passes might cover whether the change meets its stated intent, control flow, resource lifetime, concurrency, security or platform-specific behavior. A planner can omit irrelevant passes and allocate more effort to complex changes. Keep the number of parallel passes bounded; extra agents add latency, cost and more findings to reconcile.

Require each pass to return evidence for both its concerns and the important concerns it ruled out. A statement such as ‘the lock is probably held by the caller’ is not evidence. Ask for the relevant call path, lock operation or invariant that supports the conclusion. This makes omissions visible to the next stage and discourages a reviewer from stopping after it finds one obvious issue.

Verify claims before they reach a person

Have a triage stage compare the candidate findings with the dismissed concerns. Drop claims disproved by the code, accept clear issues with direct evidence, and send ambiguous cases to a separate verifier. Give that verifier one concrete question and require it to inspect the applicable callers or state transitions. The same evidence rule should apply whether it is trying to prove a bug or reject one.

Do not force every case into ‘bug’ or ‘clean.’ A finding that cannot be established should be marked inconclusive or withheld for human inspection, with the uncertainty made plain. This is a product decision: if the system posts every possibility, maintainers learn to ignore it; if it hides uncertainty, they may mistake silence for a guarantee. The aim is a short report whose claims can be checked, not an automated merge decision.

Measure noise as carefully as detection

Build a benchmark from issues that were actually fixed, including bugs missed in prior review and examples that should remain clean. Replay the same patch and repository revision after meaningful prompt, model or orchestration changes. Score missed defects, useful findings, false alarms and correct suppressions separately. Keep results split by issue type and patch size so one easy category cannot hide a weak one.

A historical benchmark has limits. It contains defects that were found and repaired, not every defect that exists; the descriptions and labels may also need expert judgment. A high detection score therefore says how a system performed on that set, not how safe a project is. Pair offline tests with a limited rollout and observe whether maintainers confirm findings, dismiss them, request changes, or stop reading the comments. Track review delay and notification volume too, while avoiding metrics that reward posting more warnings.

Google reports results for Sashiko on its own Linux kernel datasets, including a benchmark of nearly 1,000 real bugs and differences in later fix rates between commits with critical warnings and clean reviews. These are vendor-reported, project-specific observations; they do not establish that Sashiko alone caused the changes or predict results in another codebase. Use them as examples of what to measure, not as a promise for a new deployment.

Protect code and preserve human authority

Repository context can include proprietary code, secrets in history, or security issues that are not ready for disclosure. Decide which provider may receive each patch, what is retained, who can inspect prompts and tool traces, and how credentials are scoped. The Sashiko project explicitly warns local users that patch data and surrounding files are sent to their configured model provider; teams adopting any reviewer should make the same data path visible before enabling it.

Keep the reviewer read-only at first. It can suggest a question or point to code; a maintainer decides whether to change, reject or merge the patch. If you later add automated actions, authorize them separately and limit their permissions. An agent’s explanation is not an access-control check, and a successful review is not a substitute for tests, static analysis or an accountable human decision.

Roll out one repository at a time

  • Choose a small, willing maintainer group and state which patches are in scope.
  • Capture a baseline for review volume, response time and current defect checks.
  • Run the reviewer in shadow mode so maintainers can compare findings without public notifications.
  • Inspect false alarms and misses with the relevant code owners; update repository notes and benchmark cases.
  • Enable narrowly scoped reports, with an obvious mute or rollback path.
  • Revisit provider, privacy and cost assumptions before expanding to sensitive or high-volume code.

This guide focuses on designing the review workflow and its trust boundary. If your software is something people can use and follow, VIBPS is the social network for software where makers introduce apps and build an audience around what they create.

Source: Google Cloud: Lessons from building Sashiko, an agentic code review system (November 18, 2026)

Source: Sashiko project repository: architecture, review stages and provider configuration

Source: Sashiko: Guide for Kernel Maintainers (recipient, muting and embargo controls)

How to test an AI agent harness before shipping it

Introduce your app on VIBPS

Built around one question: what happens when software becomes easy for almost anyone to create?

Explore apps