Multi-review + subagents + verdict
Define parallel reviews[], each with if_paths, main, subagents[], verdict{mode,min_severity}.
reviews:
- id: security-strict # runs only on sensitive paths…
if_paths: ["auth/**", "payments/**"]
main:
provider: codex
instructions: "Staff security reviewer. OWASP, authz, injection. High-confidence only."
verdict: { mode: request_changes, min_severity: high } # …and can block
- id: general-quality # …while everything gets the general pass
if_paths: ["**"]
main:
provider: go
instructions: "Synthesize sub-agent findings."
subagents:
- { name: correctness, provider: go, instructions: "Bugs, races, missing tests." }
- { name: perf, provider: go, instructions: "N+1 queries, hot loops." }
verdict: { mode: comment, min_severity: medium }
global_verdict:
strategy: any_blocking # one request_changes verdict decides the run
-
mainsynthesizes (main_mode: synthesize, the default). Subagents review first;mainthen gets the diff plus their findings (each with an id) and returns the final list: duplicates merged, false positives dismissed with a reason, issues the others missed added. It also writes a PR summary and a per-file walkthrough, both shown on the sticky under the verdict, with a collapsed list of what it dismissed and why. It is fail-safe: a subagent finding the synthesizer never mentions is kept as reported, and if the synthesizer fails (error, unusable reply, run budget spent) the review falls back to the plain union of subagent findings and is floored like any partial review. The cost is latency:mainwaits for the slowest subagent. Setmain_mode: parallelto runmainalongside the subagents as one more reviewer (the behavior before 0.13), with no summary or walkthrough. -
Each agent in a review casts one ballot: its own verdict over its own findings (
mode+min_severity).strategycombines them:any= most severe ballot wins (identical to the old pooled behavior),all= unanimous to escalate,majority= median ballot (even-count ties break toward more severe). A finding the synthesizer merged from several agents counts in each contributing agent's ballot; one it added itself counts undermain; a dismissed one counts nowhere. Opt-inverdict.consensus_escalationescalates a finding confirmed by 2+ agents one severity before the ballots are counted. -
if_pathsscopes the diff, not just the trigger. A review only receives patches for files matching its ownif_paths, and its prompt ends with a note saying how many of the in-scope files were withheld:# OpenReview scope note: 2 of 9 in-scope changed file(s) are included,# matched against if_paths. 7 omitted. Judge only the files above.So in the example above the
security-strictreview never sees (and never spends tokens on)website/changes, and cannot file a finding about them. Cross-file context (context_files, call-site excerpts) is still built from the whole repo — that is what makes a finding onauth/**able to cite a caller inlib/. -
global_verdict.strategy: any_blocking|majoritymerges per-review verdicts. -
Incremental re-review (per-review
incremental: true, off by default). Onsynchronize, the review diffs head-vs-last-reviewed-SHA (compare API, full-diff fallback) instead of base..head, and carries the previous round's open findings so agents validate each asfixed/openand report only genuinely new issues. Fixed findings neither show nor vote; unmatched priors stay open (fail-safe) and re-enter next run's state, flooring a clean approve tocomment. A/reviewcomment always runs a full review. Only works when the sticky holds the previous run's state (written automatically since 0.14.0); truncated state or an unresolvable base falls back to full. -
Output: sticky comment (marker
openreview:sticky), inlinepulls.createReview(max 20, pre-validated against the diff — bogus paths/lines are dropped and counted on the sticky instead of 422ing the batch; file-level notes ride in the review body),verdictoutput.verdict.post_inline: falseopts a review out of inline comments.global_verdict.sticky_comment_mode: appendkeeps a per-run history in the sticky (head SHA + verdict + run link per section, rotates past ~60KB) instead of replacing it. -
One-click fixes (per-review
suggest_fixes, default true). Agents attach full replacement lines assuggestion; line-mappable findings render as appliable ```suggestion blocks inline, line-less ones as fenced code in the review body, and the sticky gains a collapsed Suggested fixes section. No auto-commit - a human applies. -
Every run appends usage footers to the sticky (
Models: <model> <in>/<out> <tok/s> …, summed per model, plus anAgents:line with each agent's own spend and attempt count). Token counts accumulate across all attempts — a retried attempt still billed — and model throughput divides by wall-clock elapsed, not summed durations. Providers that omitusagerender as?/?(unknown, never zero); a model total covering only some agents carries a+partial marker.