AI-tooling

How to review AI agent pull requests when agents open them faster than your team can read them

Blazity team

9 min. read

To review AI agent pull requests at the pace agents open them, let the repository reject what a machine can judge before a person looks. Send a pull request to review only when its checks ran, found the files they are meant to check, and passed. Let the agent close a review thread only with a commit.

Why do AI agent pull requests pile up in review?

They pile up because agents add pull requests but no reviewers, so the queue grows at the step where a person decides.

Median time to first PR review rose 156.6% as teams moved from low to high AI adoption, per Faros's AI Engineering Report 2026 (March 2026).

Part of any review goes to judgment only a person can give. Part goes to problems a machine could have reported before review: a failing test, a broken import, a rule a linter already knows. The second part is the time you can win back.

To see the split in your own repository, sort one week of review comments on agent pull requests:

  1. Collect every review comment left on agent pull requests in the last five working days.
  2. Put each comment in one group: an existing check could have caught it, a new check could, or it needed a person.
  3. Count the groups. The first two are work to move in front of review.

Keep the comments that needed a person as they are. Comments about intent, about edge cases the ticket never named, or about how a change fits the design are why the review exists.

Repeat the count after each change to your checks, and divide each group by the number of agent pull requests reviewed that week. When the first two groups fall per reviewed pull request, reviewers are writing fewer comments that a check could have written. Teams that already track review time can add this count to the metrics in measuring AI coding agent ROI.

If agent pull requests already stall in review, Blazity's AI software delivery service finds where they wait and which decisions need an engineer.

When should a person be asked to review an agent's pull request?

On GitHub, ask for review only after the pull request's checks have run and passed on its latest commit. If the change edits those checks, ask their owners as well.

A reviewer who opens a pull request with red or missing checks does the machine's work first. Three steps keep that work in front of review:

  1. Let the checks run. The required checks must run on every push to the agent's branch. Copilot cloud agent's workflows wait by default until its code is reviewed and a write-access user approves the run, per GitHub's risk guide. So by default a person looks at the code before any check runs. GitHub lets you switch on automatic runs, which reverses that order, but counts the default wait as a safeguard in its risks and mitigations page. Turning on automatic runs is a risk decision to take on purpose.
  2. Keep it a draft until the checks are green. Have the agent open draft pull requests. The agent or the person who started it marks them ready only when the required checks pass on the latest commit. GitHub's code owners documentation says code owners are not automatically requested to review drafts and are notified when one is marked ready. The ready state then tells reviewers that the checks are done.
  3. Send changes to the checks to their owners. A pull request can change the checks that judge it. On GitHub, a workflow triggered by pull_request runs the workflow file from the pull request's merge commit, per GitHub's pull_request_target security guide. Give the checks owners. A /.github/ @your-team entry in CODEOWNERS covers the workflow folder, and the CODEOWNERS file too if it lives there, per GitHub's code owners documentation. Add the paths of the scripts, thresholds and tests those workflows run to CODEOWNERS separately. Then require a code owner's approval before merge, through "Require review from Code Owners" in a branch protection rule, described in GitHub's code owners documentation. A ruleset can require the same through its pull request rule, listed in GitHub's available rules for rulesets.

Sending changes to the checks to their owners matters most for agent work. GitHub's own guidance on reviewing agent pull requests treats any change that weakens CI as a blocker (GitHub blog, May 2026). A required owner review puts that call with the people who wrote the checks.

Can a check pass without checking anything?

Yes: a check that reports only violations passes when it scans no files at all. If it does not print how many files it read, that pass looks real.

A gate is a required check that proves one rule over a set of files. An example rule: no file outside the data layer imports the database client. A gate that only reports violations finds none in an empty set, so it passes. Any pull request, an agent's included, can empty that set without touching the gate. A renamed folder does it, and so does a folder that now holds only tests. Our post on the AI software factory explains how GitHub counts skipped checks.

Blazity's AI Workflow repository turns this into a rule in ADR-007: a gate that scanned nothing fails. Each gate names the paths it reads and the rule it proves. It fails when a path is missing or the scan finds nothing, and a passing gate prints how much it checked.

The ADR names two exceptions. First, some tools report what they found but not how much they read. A gate built on one cannot prove it read anything, and the ADR records its weaker guarantee. Second, where zero files is the correct result by design, the gate prints the count instead of failing.

Counting files under a path catches only a path that disappeared. To catch a folder that still exists but holds nothing the rule covers, count only the files the rule is about. This guard counts source files under src/ and leaves tests out:

#!/usr/bin/env bash
set -euo pipefail
count=$(git ls-files -- 'src/*.ts' ':(exclude)*.test.ts' | wc -l)
if [ "$count" -eq 0 ]; then
  echo "refusing: 0 source files under src/ (tests excluded)" >&2
  exit 1
fi
echo "checked $count source files"

Run it before the gate's own scan, and have the gate print its count when it passes. Then test that the gate fails on empty input:

  1. Run each gate on an empty fixture and expect it to fail.
  2. Run it on a fixture whose folder holds only tests and expect it to fail.
  3. Skip both runs for gates where an empty set is correct by design, and check that they print a count instead.

What should happen when a reviewer comments on an agent's pull request?

Every review comment on the code should get an answer in its own thread, and only a commit should close it. Any other answer stays open, because a person has to judge it.

A review comment is the costliest output in the queue: someone read the diff and wrote down what they need. If the agent replies "already done" without proof, the reviewer has to read the code again to check. If it closes the thread itself, the reviewer may never see the reply.

What the agent says in a code review threadWhat backs itThread after the answer
I changed the codeThe commit, named in the replyClosed by the agent
This was already doneA quote from the file, found there by codeOpen for the reviewer
Here is the answer to your questionNothing a machine can checkOpen for the reviewer
This belongs in another changeA stated reasonOpen for the reviewer

Of the three answers that leave the thread open, only one can be checked by a machine: the quote. Search the file for it before the reply is posted. The answer to a question and the stated reason need a person to judge them.

We built this into AI Workflow, Blazity's open-source workflow platform, as an opt-in part of its review runs. Before the change, the agent received every comment on a pull request as one flat list, including ones it had already handled. It did not answer in the threads, so a reviewer could not tell whether a comment had been seen, handled or skipped.

For each review thread it handles, the agent picks one answer: changed, already done, answered, or out of scope. It replies in the thread. Any quote it posts as proof was first found in the file by code, not judged by a model. For an inline comment, the quote must sit near the commented line.

The code that checks each answer rejects it when, for example, the quoted text is not in the file. The agent then gets a correction that repeats the reason. If the code rejects it again, the run stops and leaves a note listing the threads still open. In AI Workflow's code as of October 2026, a run handles up to 20 threads awaiting its answer and counts the rest. The thread becomes the record of each decision. Tracing the run itself is the subject of AI agent observability.

To copy this in your own setup, have code check any quote offered as proof, and let only a commit close a thread.

Which agent pull requests still need a senior engineer?

An agent pull request needs a senior engineer when it changes how parts of the system fit together. When it touches security, data, payments or the checks, it needs the owner of that area.

Route each agent pull request with three questions, in this order:

  1. Does it touch authentication, authorization, personal data, payments or the checks? If yes, an owner of that area reviews it, using controls like those in AI governance compliance.
  2. Does it change how parts of the system fit together? If yes, a senior engineer reviews it, whatever the checks say.
  3. Can a check decide whether the change is right? If yes, let the check decide, and any engineer on the team can approve once it passes.

The evidence to ask for at each level of risk is set out in AI coding agents and junior developers.

A bot that answers review comments is not worth building while reviewers clear agent pull requests on the day they arrive. Start with checks that run on every pull request and print what they checked. Add automated answers to review comments only when your comment count shows that review is where agent work waits.

Let the repository say no before a reviewer has to

Put every rule a machine can judge in front of review, and make each gate say how much it checked. That leaves reviewers the comments only they can make, and an agent closes a thread only with a commit. The cost is upkeep: someone has to own the files behind your checks and test that every gate fails on empty input.

To find where agent pull requests wait in your repository, talk to Blazity about AI software delivery.

FAQ on AI agent pull requests

How small should an AI agent pull request be?

Small enough that a reviewer can state its purpose in one sentence. GitHub suggests a smaller pull request when the diff touches over five unrelated files or lacks a plan or description (GitHub blog, May 2026). A smaller change also keeps each check result tied to one decision, which makes a red check easier to act on.

Should an AI reviewer go before the human one?

Yes, as a first pass and not as a replacement. GitHub's guidance treats automated review as a prerequisite for human review of agent pull requests, tuned with team-specific instructions (GitHub blog, May 2026). When the AI reviewer keeps raising the same mechanical issue, turn it into a deterministic check, which gives the same answer on every run.

How do you know the review queue got shorter?

Track how long agent pull requests wait for their first review, at the median, week by week. Waiting time shows the queue itself, while time spent in review also reflects how hard each change is. Compare weeks with a similar number of agent pull requests opened, because a quiet week shortens any queue. If the wait falls while volume holds, the checks in front of review are working.

Sources

TABLE OF CONTENTS