GuidesUpdated

AI-generated pull request review checklist and reviewer prompt

Review an AI-written PR step by step: intent, changed files, risky paths, tests, reviewer findings and the final diff, with a reviewer prompt.

On this page

A reviewer agent helps when its findings can be checked. A green build or confident summary doesn't show the change meets the request. Use these six steps on every agent-written PR.

Canopy agent review workspace showing a pull request and draft findings
Canopy agent review workspace showing a pull request and draft findings

1. Write down the intent before reading the diff

Read the issue, acceptance criteria and PR description, and list the behaviors the change should add or keep. No testable goal? Ask for one first.

2. Map everything the change touches

List changed files, dependencies, migrations, configuration and generated files, and flag anything out of scope. In Canopy, the Agent Workspace ties the session to its diff, branch and PR. Review the latest commit.

3. Test the risky paths

Reproduce the intended behavior, then the error paths. Test allowed and denied permission cases. Run the app for UI changes. Send an API one bad and one good input. Note checks you couldn't run.

4. Make the reviewer agent show evidence

Give it the goal and branch or PR. Ask for concrete bugs with evidence, confirmed findings apart from hypotheses, and no code changes. Canopy's read-only review task stages draft findings for you to vet. Open each cited line before posting.

5. Recheck after every fix

After an agent addresses comments or CI, read the new diff, rerun checks, and confirm it didn't weaken a test or move the bug. Resolve a thread only when its concern is answered.

6. Record the merge decision

Summarize verified behavior, remaining risk, test evidence and who approved. Review is done when the latest commit is checked, not when an agent said 'done'. Keep the PR and session history for later regressions.

Copyable resources

Copyable reviewer prompt

Use in a separate review session. Keep it read-only until findings are vetted.

Review PR [number or branch] against this goal: [observable behavior and acceptance checks].
Read the latest diff, changed files, tests, CI status, and relevant call sites.
Find concrete correctness, security, data-loss, compatibility, or missing-test risks.
For each finding, give file and line, a failure scenario, how to reproduce it, and severity.
Separate confirmed bugs from hypotheses. Say when evidence is insufficient.
Don't edit code, post comments, approve, or merge.
Finish with: acceptance checks verified, checks not run, and questions for the author.

Final human review checklist

Use on the latest commit, after fixes.

[ ] The PR still matches the original request.
[ ] Every changed file is understood or explained.
[ ] Running behavior was checked where relevant.
[ ] The happy path and a meaningful failure path were tested.
[ ] CI passed on the latest commit; no test was weakened to get green.
[ ] Review comments are answered by the current diff.
[ ] Permissions, data changes, dependencies, and configuration were checked if touched.
[ ] Remaining risks and unrun checks are documented.
[ ] A person owns the merge decision.

Frequently asked questions

Should an AI reviewer automatically post every finding?

No. Check each finding against the code or a reproduction. Canopy stages read-only review findings as drafts so a person can vet them.

Is passing CI enough to approve an AI-written PR?

No. CI covers only the checks it runs. Compare the latest diff and real behavior with the request, including paths the tests miss.

More questions and answers →

Sources and further reading