Triggering reviews
When CodePanel reviews a pull request: automatic triggers, drafts, bots and forks, /review, round limits, and why a review did not run.
On this page›
All of this is set per repository under Automatic reviews on the repository's Settings tab.
Automatic triggers
With the default settings, a connected repository reviews on these pull request events:
| Event | Behaviour |
|---|---|
| Pull request opened | Reviews immediately |
| Pull request reopened | Reviews immediately |
| Draft marked ready for review | Reviews immediately |
| Commits pushed | Reviews after a 60-second wait |
| Pull request closed | No review; cancels a follow-up round that was waiting |
/review comment from someone with write access |
Reviews immediately |
It skips:
- Draft pull requests, until they are marked ready.
- Pull requests opened by bots: accounts of type Bot or whose login ends in
[bot], such as Dependabot and Renovate, unless the repository trusts that App (trusted bot authors). - Fork pull requests whose author is not an owner, member or collaborator of the repository. A fork whose source repository was deleted counts as a fork.
A /review comment from someone with write access reviews any of these.
Trusted bot authors
A coding agent that opens pull requests as its own GitHub App, such as my-agent[bot], is skipped like any bot unless the repository lists it in Trusted bot authors. A listed App's pull requests are reviewed on every event a member's are, and its /review comment runs as a member's does. Everything else about it stays a bot's:
- Its
/roundsmay raise a pull request only up to Rounds a bot may extend a pull request to, and its own/reviewis refused past that many rounds. - Its
/feedbackrates and disputes but cannot dismiss a finding, and its/fixis refused. - A pull request it opens from a fork is skipped. Only a head branch in the repository itself counts, which shows the App is installed there.
Each entry must be the App's exact login with [bot]; prefixes and wildcards are refused, and logins ignore case. Every bot not on the list, claude[bot] included, is still skipped. Adding an App also reviews its open pull requests that were already skipped, once, without a push.
A person adds an App, in the repository's Settings tab under Triggers. Trusting an App lets its pull requests through the same gate a member's go through, so an API token (the HTTP API, MCP's update_repo_settings or codepanel repos set --trusted-bots) can remove Apps from the list but not add one: an addition is refused with 403 and a nextAction naming that page (Who can loosen the gate). A token sends the list it wants kept:
curl -sS -X POST "$CODEPANEL_URL/api/v1/repos/settings" \
-H "Authorization: Bearer $CODEPANEL_TOKEN" -H "content-type: application/json" \
-d '{"repo":"owner/name","trustedBotAuthors":[]}'
update_repo_settings repo: owner/name trustedBotAuthors: []
codepanel repos set owner/name --trusted-bots none
[] or null (CLI none) trusts no App again. The setup check lists each repository's trusted Apps.
Push wait
A push waits 60 seconds before its review, so an author who pushes three fixup commits in a minute gets one review, not three. When the wait ends, CodePanel checks the pull request's head on GitHub. If a newer push has moved it, the newer push's job reviews everything and this one stands down. A review is also skipped if that commit was already reviewed or is being reviewed.
If a push arrives while a round is running, the running round stops before posting and a follow-up round reviews the new head (How it works). The reviewers of the stopped round are still paid, so an agent should not push while get_review says wait: it waits for the round with wait_for_review, reads it, then pushes once.
Round limits
Automatic rounds per pull request caps how many rounds pushes start, from 1 to 50. A repository connected since October 30, 2026 starts at 3; blank means no limit, which is where earlier repositories stay until you set one. From the CLI: codepanel repos set owner/name --max-auto-rounds 3, or none to remove it. Once a pull request has completed that many rounds, pushes, reopens and ready-for-review events no longer start a review.
- Every completed round counts, including rounds started with
/reviewor by hand. - A round for a push that only merged the base branch calls no model and does not count. With
REVIEW_BASE_MERGE_SCOPEon, no base-merge round counts (Base merges). - Start on the Pull requests tab, a person's button, always runs, whatever the limit.
- A
/reviewcomment,POST /api/v1/reviews/trigger, MCPtrigger_reviewandcodepanel review --triggercount as a round once the limit is used up, because an agent's/reviewcomes from the same GitHub login as a person's. Past the limit they start nothing. The API answers 409 withreason: "round_limit_reached"and anextAction; the/reviewcomment gets a reply that starts<!-- codepanel:trigger-refused reason=round_limit_reached -->and ends with the next action. To review more, raise the limit with/rounds +1(orset_review_rounds), which also reviews an unreviewed head, or press Start. - One trigger is always allowed past the limit: the round that confirms an agent's own
fixed(ordeferred) on a critical finding, which no push would start.get_reviewreports it asnextActiontrigger. - Without a limit nothing is refused.
- The comment from the round that reaches the limit says "Automatic reviews stop after N rounds on this repository; comment
/reviewfor another, or/rounds +1to review the next push." It says "on this pull request" when the pull request has its own limit, and to start another from CodePanel when comment commands are off.
A coding agent or a person sets one pull request's own limit with /rounds: /rounds stop ends the loop after the current round, /rounds +1 asks for one more, /rounds 3 sets a total and /rounds reset goes back to the repository's setting. People with write access may raise it without bound; a bot only up to Rounds a bot may extend a pull request to (5 unless set; 0 stops bots adding rounds). Full syntax and replies: /rounds. The API (POST /api/v1/reviews/rounds), MCP (set_review_rounds) and CLI (codepanel rounds owner/name#123 +1) act as the token's owner, so the bot ceiling does not apply.
Why a pull request has the rounds it has
The footer of the review comment, from the second round, says what started each round: "Rounds: 3 automatic, 2 requested (/review), 1 base merge". A round past maxAutoRounds is a /review request, not an automatic one (only the confirming round for a fixed critical, or a round after the limit was raised, can still be one). payload.convergence (GET /api/v1/review, MCP get_review, codepanel review --json) has the same split, the round after which the gate first went green, and the rounds that ran after that by trigger with how many reported a new warning-or-worse finding again. It only reports: it changes no round, verdict or gate.
Base merges
A repository can turn on the review switch REVIEW_BASE_MERGE_SCOPE (POST /api/v1/repos/settings {"repo":"owner/name","reviewSwitches":{"REVIEW_BASE_MERGE_SCOPE":true}}, MCP update_repo_settings, or codepanel repos set owner/name --switches REVIEW_BASE_MERGE_SCOPE=on). It is off by default. It applies to a push in which every commit since the last review merges the base branch into the pull request:
- No change of the pull request's own. When the pull request's diff is the same per file as at the last review, no round is posted. The merge commit gets the reviewed commit's
CodePanelstatus, pass or fail, described as "Carried over from<sha>; main's changes merged at<sha>were not reviewed", and the review comment says the same. - A conflict resolution. Only the hunks of the pull request's own diff that changed are reviewed, and no finding is raised again on lines an earlier round reviewed. Such rounds do not count toward Automatic rounds per pull request; they have a limit of their own, the same number, counted apart. Past it, the merge is not reviewed and its commit is judged on the findings already open.
- Size. How many files the base branch brings in never makes it a full review, also when the author's own commits came with the merge: the round compares the pull request's own diff, not the range since the last review. A file whose patch GitHub leaves out is reviewed with its whole diff and named in the comment.
Turning it on accepts one risk: the base branch can change behaviour the pull request relies on without a textual conflict, and CodePanel does not review that. Leave it off unless your CI runs on pull request heads, where it would catch such a break. /review reviews a base merge as any push.
Step back
From the third round that reviewed something (counted as the limit counts them), the review comment starts a line with Step back: and payload.stepBack carries the same facts: the round count, how many of the pull request's findings were first reported after round 1, and the next action, to reconsider the approach as a whole rather than patch the latest finding. A coding agent that fixes one finding per push can otherwise keep the loop going without converging. The notice stops nothing and never changes the gate or the verdict. It changes nextAction only when the repository escalates to a person on it.
Set the round with stepBackAfterRounds (0 to 50; 0 turns it off, null returns to 3): POST /api/v1/repos/settings {"repo":"owner/name","stepBackAfterRounds":0}, MCP update_repo_settings, or codepanel repos set owner/name --step-back-after-rounds 0.
The pull request's own limit shows on the Pull requests tab, with who set it and a button to go back to the repository's setting. GET /api/v1/review, get_review and codepanel review report it under rounds.
Idle nudge
A review that waits on its author waits for good once the author's agent has stopped: nothing wakes it. When an open pull request has had no push, comment, rating or read of its review for 6 hours, and its nextAction is one the author takes (fix, rate, trigger or review_locally), CodePanel posts one comment naming that action and its findings. The comment starts with <!-- codepanel:nudge head=<sha> action=<action> refs=<F1,F2> -->, so an agent that lists the pull request's comments can pick it up. It changes nothing: not the status, the gate or the rounds.
It is posted at most once per head commit, and at most 10 times a day per repository; past that the rest are not posted. A head gets one attempt: if GitHub refuses the comment or its answer is lost on the way, it is not tried again, so a head is never nudged twice and a repository that refuses comments is not asked again and again. A draft, a pull request with a round running, and one whose next step is CodePanel's (wait) or a person's (stop, escalate) get none. CodePanel looks for an hour after the pull request crosses its hours, so one that stays idle with nothing for its author to do is then left until something happens on it.
Set the hours with idleNudgeHours (0 to 23; 0 turns it off, null returns to 6): POST /api/v1/repos/settings {"repo":"owner/name","idleNudgeHours":0} or MCP update_repo_settings.
Suggestions after round 1
The first round of a pull request posts every finding. Each round after it posts only the warnings and criticals it finds for the first time: a new suggestion is stored but held back. Suggestions were the least often right of CodePanel's findings (over the 30 days to 2026-10-27, an agent's dispute of a suggestion was upheld 11% to 41% of the time, depending on the repository), and a later round's findings are mostly suggestions, so posting them started pushes that rarely fixed anything.
Nothing is thrown away, and it says so where your agent reads:
- The comment carries one line, starting with the count, naming the reason
later_round_suggestionand the command that turns it off. payload.heldBack(fromGET /api/v1/review, MCPget_revieworcodepanel review --json) lists each one with itsref, file, line, message,heldBackAtRoundandpostedIn: "payload", pluscount,reason,switchandwhy. Held-back suggestions are not infindings,counts,blockedBy, the merge gate ornextAction, so they never ask for a push.GET /findingslists them withheldBackAtRound.- A suggestion posted in round 1 stays posted in every round. A held suggestion that a later round reports as a warning or critical is posted, as new.
Each finding keeps its F number, so you can still rate a held one with /feedback. To post later suggestions again, turn the review switch REVIEW_HOLD_LATER_SUGGESTIONS off for the repository: codepanel repos set owner/name --switches REVIEW_HOLD_LATER_SUGGESTIONS=off, POST /api/v1/repos/settings {"repo":"owner/name","reviewSwitches":{"REVIEW_HOLD_LATER_SUGGESTIONS":false}}, or MCP update_repo_settings. The next round posts every held suggestion it does not find fixed, reported again or not. null (or =default) follows CodePanel's default, which is on.
Change the triggers
Open the repository, go to Settings, find Automatic reviews, and tick the events you want. Each change saves as you make it.
| Setting | Effect |
|---|---|
| Review automatically | Master switch. Off stops every automatic review, including /review comments |
| Review pull request activity | Off ignores pull request events; /review comments still work |
| When a pull request is opened | Reviews on open. With Include drafts on, it also decides whether a draft marked ready is reviewed |
| When commits are pushed | Reviews on push |
| When a pull request is reopened | Reviews on reopen |
| Include drafts | Reviews draft pull requests too. Off, drafts wait until they are marked ready |
| When a draft is marked ready | Shown when drafts are not included. Decides on its own whether a draft is reviewed when it leaves draft state |
| When someone comments a command | Enables the comment command, with an editable Command field (default /review) |
| Branches | Any branch, Only these or All except these, matched against the base branch. A pattern with * is a wildcard, such as release/*; one without must match exactly |
| Automatic rounds per pull request | See Round limits |
| Rounds a bot may extend a pull request to | The ceiling for a bot's /rounds; 5 unless set |
| Trusted bot authors | GitHub Apps reviewed like a member; see Trusted bot authors |
Starting a review from the Pull requests tab works whatever these settings say. Bot authors are skipped under every setting unless listed as trusted; otherwise only a person's command reviews a bot's pull request.
Start a review manually
/review
Open the repository → Pull requests tab → enter the number → Start
curl -sS -X POST "$CODEPANEL_URL/api/v1/reviews/trigger" \
-H "Authorization: Bearer $CODEPANEL_TOKEN" -H "content-type: application/json" \
-d '{"repo":"owner/name","pr":123}'
codepanel review owner/name#123 --trigger
trigger_review repo: owner/name pr: 123 (wait: true blocks until it finishes)
The comment's matching, permissions and replies are in /review. Manual reviews from the dashboard, API, CLI and MCP are limited to 20 per hour per account or API token; over the limit, the error is "Too many requests. Try again in N seconds." They fail fast with "GitHub token not configured. Reconnect GitHub and try again." or "Add a working provider API key in Settings → Provider keys first." when either is missing.
Why a review did not run
| Cause | Fix |
|---|---|
| Review automatically is off, or that event is turned off | Check Automatic reviews on the repository's Settings tab |
| Draft pull request | Mark it ready, turn on Include drafts, or comment /review |
| Bot author | Comment /review, or list the App in Trusted bot authors |
| Fork pull request from an untrusted author | Have someone with write access comment /review |
The /review comment came from someone who is not an owner, member or collaborator |
Ask someone with write access |
The /review comment got 👎 and a Refused: reply |
Ask someone with write access, or repeat it in a few minutes if the code is permission_check_failed (who may give commands) |
| Base branch filtered out | Adjust Branches |
| The repository is disconnected | Connect it again |
| That commit was already reviewed, or a review of it is running | Nothing to do |
| The pull request reached its automatic round limit | Choose Start for another round, comment /rounds +1 to review the latest push, or raise or clear the limit. A /review comment or API trigger past the limit is refused with round_limit_reached |
| A spending limit was reached | The comment says Review of `<sha>` skipped:. See Budgets and limits |
| No working provider key | The session in the dashboard names the provider. Fix the key under Settings → Provider keys (Providers and API keys) |
To see why GitHub's delivery was refused, open the repository on GitHub, go to Settings → Webhooks, choose CodePanel's webhook and open Recent Deliveries. CodePanel's response body names the reason, for example Commenter not permitted, Pull request from an untrusted fork, Not a command, Repository not active or Invalid signature.
Note
GitHub's Redeliver button does not re-run a review. CodePanel records each delivery ID that started work for 7 days, so a redelivery is answered 200 Duplicate delivery and does nothing, even if the review it started later failed. Comment /review or start it from CodePanel instead. Redelivering a delivery that was rejected (for example a 401 while the webhook was being set up) works normally, because rejected deliveries are not recorded.
Webhooks and the GitHub App
CodePanel receives pull request, issue comment and pull request review comment events from the repository webhook it installs, or from the CodePanel GitHub App. Every delivery that could start work is verified by signature first (Security). A repository that has its own webhook gets pull request events and commands through that webhook only, so the panel never runs twice for one push.
Each repository accepts up to 60 verified deliveries per minute. Over that, GitHub gets 429 with a Retry-After header.
Inline suggestion threads
In the thread of an inline suggestion, a reply with /feedback rates that comment's finding and a reply with /ask asks about it; neither needs an F-ref (commands). The answer is posted on the pull request's conversation. A reply with both is read as the rating. Any other comment on the diff is ignored, and commands such as /review are read only from the conversation.
These replies arrive as pull request review comment events:
- With the GitHub App installed, a rating that reads cleanly comes through the app even if the repository also has its own webhook. A question, a rating that also carries a
/rememberline, or a reply with a line CodePanel cannot read comes only through the repository's webhook, so it is never answered or recorded twice. - A repository webhook installed before CodePanel subscribed to these events does not send them until it is updated. Until then, with the app installed, clean ratings still arrive but questions,
/rememberand unreadable replies are not read; without the app, no thread reply is read.
To update the webhook, run codepanel repos connect <owner/name> or the MCP tool connect_repo again, or remove and reinstall the repository webhook on its Settings tab.