CodePanel

Reviewer role

A reviewer role is the preset that tells one reviewer in a panel what to look for, such as bugs and security, performance or API changes.

Updated Also: role

A reviewer role is a preset that decides what one reviewer in a panel looks for. It fills in the reviewer's instructions, a suggested model tier and a reasoning effort. The model is a separate choice, so the same role can run on different models.

Roles exist because one prompt asked to check everything tends to check everything shallowly. A reviewer told to look only for authorization and injection problems reads the diff differently from one told to look for tests that cannot fail.

The roles

Role Looks for
Bugs & Security Logic errors, unhandled edge cases and errors, race conditions, missing auth checks, injection, unvalidated input, leaked secrets
Tests & Maintainability Changed behavior with no test, tests that cannot fail, dead or duplicated code, misleading names, functions doing too much
Security A deeper pass on untrusted input, authorization and ownership, signatures, injection, SSRF and unsafe deserialization
Performance Queries or requests in loops, missing indexes, unbounded reads, repeated work, needless re-renders, large payloads
API & Migrations Breaking API and response-shape changes, schema and data migrations, backwards compatibility, rollout order
Docs & Best Practices The repository's own rules and docs, the official guidance of the frameworks used, docs the change makes wrong
Design & UX UI changes: design-system consistency, accessibility, missing loading, empty, error and disabled states, layout at narrow widths, unclear copy

The default panel uses four of these: Bugs & Security, Tests & Maintainability, Docs & Best Practices and Design & UX. Design & UX is skipped, at no cost, on a round that changes no UI file.

What a role is not

A role is a starting point, not a link. After a reviewer is created from a role, its name and instructions can be rewritten freely. Every role reports only concrete problems in the changed code and skips style nits; style comments that slip through are graded as suggestions. The orchestrator, not the role, is what filters the reviewers' output. The full table, with the id each API takes, is on the reviewers page.