# Reviewers and panels

URL: https://codepanel.ai/docs/reviewers

Configure the review panel: reviewer roles, the starter panel, the orchestrator, reasoning effort, custom instructions and per-repository panels.

## Panel structure

A panel is one orchestrator and 1 to 10 reviewers, each with a provider, model, reasoning effort, name and instructions.

| Member | Reads | Does |
| --- | --- | --- |
| Reviewer | The diff in scope, surrounding code and [repo context](/docs/repo-context) | Reports findings independently, in parallel with the others |
| Orchestrator | The reviewers' findings and the code of only the files they name | Merges duplicates, corrects lines, drops findings the code contradicts, writes the posted comment |

The role sets what a reviewer looks for; the model is a separate choice. Two reviewers on one model help only with different roles; two models on one role give a second opinion ([Single model vs a panel](/guides/single-model-vs-panel)).

## Roles

| Role | `id` | Looks for | Tier | Effort |
| --- | --- | --- | --- | --- |
| Bugs & Security | `bugs-security` | Logic errors, unhandled edge cases and errors, race conditions, missing auth checks, injection, unvalidated input, leaked secrets | Economy | `medium` |
| Tests & Maintainability | `tests-maintainability` | Changed behavior with no test, tests that cannot fail, dead or duplicated code, misleading names, functions doing too much | Economy | `low` |
| Security | `security` | A deeper pass: untrusted input, authorization and ownership, signatures, injection, SSRF, unsafe deserialization, with how each could be exploited | Frontier | `high` |
| Performance | `performance` | Queries or requests in loops, missing indexes, unbounded reads, repeated work, needless re-renders, large payloads | Balanced | `medium` |
| API & Migrations | `api-migrations` | Breaking API and response-shape changes, schema and data migrations, backwards compatibility, rollout order | Balanced | `medium` |
| Docs & Best Practices | `conventions` | Your [repo context](/docs/repo-context) rules and docs, the official guidance of the frameworks used, docs the change makes wrong | Economy | `low` |
| Design & UX | `design-ux` | UI changes: design-system consistency, accessibility, missing loading, empty, error and disabled states, layout at narrow widths, unclear copy | Economy | `low` |

The `id` is the `role` the API, CLI and MCP server take. Every role reports only concrete problems in the changed code and skips style nits. A role only fills in a new reviewer's name, instructions, effort and suggested [tier](/docs/choosing-models#cost-tiers); nothing links them afterwards, so rename or rewrite freely.

The Docs & Best Practices role asks for the official guidance of the frameworks a change uses, but a reviewer does not know which version a repository is on unless it is told. The `REVIEW_CURRENT_PRACTICE` [switch](/docs/review-switches#current-practice), off by default, shows every reviewer the packages the change uses and their declared versions, and lets any role suggest the practice current for that version.

### When Design & UX runs

It is skipped, at no cost, on a round that changes no UI file (components, pages, views, templates, stylesheets, translations, native layouts; when unsure, it runs). It still runs when an open finding in the round's files came only from reviewers not running this round, or when no other reviewer is sure to run. A skipped reviewer has status `skipped`. A reviewer counts as Design & UX while it keeps the role's name or instructions.

## Starter panel

Saving your first key builds "Default Panel" (so does a review that starts with no panel):

| Member | Model |
| --- | --- |
| Bugs & Security, Tests & Maintainability, Docs & Best Practices, Design & UX | All on the economy-tier model of your first provider, in the order Anthropic, OpenAI, Google, then the rest. With an Anthropic key, that is Claude Haiku |
| "Orchestrator" | Your first provider's balanced-tier model, at `medium` effort |

Every reviewer goes to one provider because spreading them out showed no detectable gain. On CodePanel's own eval (TypeScript pull requests from this project, one judge), a panel split over Haiku, GPT-6 luna and Gemini 3.5 Flash-Lite caught about as many defects as four Haiku reviewers. On the same role, Haiku's point estimates were higher than either of the others'. The tradeoff: if that one provider has an outage or rate-limits you, every starter reviewer is affected; add a reviewer on another provider if that matters to you.

After that the panel is yours. A key added later only fills an empty starter role while the panel has fewer than 3 reviewers, never adds Design & UX, and a provider you removed is not re-added. For sensitive code, add one Security reviewer on your strongest model rather than moving everyone up a tier.

<details>
<summary>Panels from before roles existed</summary>

A panel where no reviewer has a role shows "This is an older setup" with **Use recommended setup**. Choosing it, then **Switch**, replaces the reviewers with the four starter roles; the orchestrator keeps its model and instructions and moves to `medium` effort. On a repository using your default panel, this changes the default.

</details>

## Orchestrator

The orchestrator defaults to a balanced-tier model at `medium` effort, since its prompt grows with what was reported, not with the diff. It also answers `/ask` questions and decides [disputes](/docs/feedback). Its built-in prompt cannot be replaced: add instructions in the app, which are appended. Replacing it fails with "The orchestrator's built-in prompt can't be replaced. Add instructions instead."

## Cross-family verdicts

A model reviewing its own family's work shares its blind spots. With `crossFamilyReview` on for a repository, a change is never judged only by the family that wrote it: when the round knows the author's family (from the [handoff](/docs/coding-agents), commit trailers or branch), the orchestrator, which carries the round's verdict, runs on a usable model of another family. Off by default; a person or an agent turns it on with one call:

```bash
curl -sS -X POST "$CODEPANEL_URL/api/v1/repos/settings" \
  -H "Authorization: Bearer $CODEPANEL_TOKEN" -H "Content-Type: application/json" \
  -d '{"repo":"owner/name","crossFamilyReview":{"enabled":true,"fullLanePaths":["convex/schema.ts","**/billing/**"],"fullLaneMarker":"## Whiteboard defense"}}'
```

The CLI is `codepanel repos set owner/name --cross-family on --full-lane-paths convex/schema.ts,**/billing/** --full-lane-marker "## Whiteboard defense"`; `--cross-family none` clears it. MCP `update_repo_settings` takes `crossFamilyReview`. A token turns it on but not off: once it is on, `off`, `none`, `enabled: false` and `null` are refused with 403, and a person turns it off under **Settings → Review gate** ([Who can loosen the gate](/docs/merge-gate#who-can-loosen-the-gate)).

- **What moves.** Only the orchestrator's provider, model and reasoning effort, for that round. It keeps its name, instructions and place in the panel. If it is already outside the author's family, nothing moves. Otherwise it moves to a model another family offers: first the panel's own reviewers' models, then the frontier model of each provider you can run on, your own keys before credits. Family is the model's maker, not its provider: Claude on OpenRouter is Anthropic, `gpt-oss` on Workers AI or Groq is OpenAI, GLM is Zhipu.
- **Full lane.** A pull request is full lane when a changed file matches a glob in `fullLanePaths` or its description contains `fullLaneMarker` (any case). Its verdict also comes from a frontier model, preferring another family's. With no other family usable, a full-lane round still moves to the best frontier model and records that cross-family was unavailable.
- **No other family.** When none has a working key, or the author's family is not known (a person, or no marker), the round runs as configured. It says so rather than failing.
- **Where it shows.** The review comment carries one line under the verdict, such as `Verdict by openai/gpt-6.1-sol (cross-family: author anthropic; full lane: frontier)` or `Cross-family review wanted (author anthropic) but no other family has a working key`. `payload.crossFamily` in [`GET /review`](/docs/api#get-review) carries the same decision as data, and the round's cost and pipeline name the model that ran. Turn it off with `"crossFamilyReview": null`; nothing needs approving first.

The panel's budgets and credit holds apply to the model the verdict moves to, and a model CodePanel cannot price on credits is not chosen.

## Reasoning effort

CodePanel stores one scale, `none`, `low`, `medium`, `high`, `xhigh`, `max`, and translates it per provider:

| Provider | Effort sent |
| --- | --- |
| Anthropic | Current models `low` to `max`. The 4.6 models have no `xhigh`; Opus 4.5 stops at `high`; Haiku 4.5 and older take none |
| OpenAI | GPT-5 and later up to `xhigh`; o-series up to `high` |
| ChatGPT plan | `low` to `xhigh` |
| Google | Gemini 2.5 and later |
| Groq | gpt-oss models only, up to `high` |
| Workers AI | Each model's own levels: GLM-5.3 and DeepSeek V4 `low`, `high`, `max`; gpt-oss `low` to `high`; Qwen3.8 `low`, `medium`, `xhigh`; Kimi `high` |
| DeepSeek, xAI, Moonshot, Mistral, custom | None |

A model that does not take the chosen level gets the strongest level it accepts below it, or none. If a provider still rejects a parameter, the call is retried without it (including structured output), up to three times. Reasoning tokens bill at the output rate, so higher effort costs more.

## Configure a panel

| Page | Changes |
| --- | --- |
| **Default reviewers** (`/panel`) | The default panel, for every repository not customized |
| A repository's **Reviewers** tab | That repository only |

A repository's first edit on its **Reviewers** tab copies the default into its own panel, as does changing its per-PR limit. **Reset to default reviewers** discards the copy.

### 1. Add a reviewer

Choose **Add reviewer**.

### 2. Pick a role

The first role not on the panel is suggested, never a frontier one. **General review** has no particular focus.

### 3. Pick a model

The hint reads "Low-cost model suggested.", "Mid-size model suggested." or "Strongest model suggested."; providers are tried in the starter panel's order (Anthropic, OpenAI, Google, then the rest). Only models your valid keys reach are offered.

## Limits

| Limit | Value | Error |
| --- | --- | --- |
| Reviewers per panel | 1 to 10 | "A panel can have at most 10 reviewers. Remove one to add another." / "A panel needs at least one reviewer." |
| Reviewer name | 40 characters | "Keep names to 40 characters or fewer." |
| Instructions | 4,000 characters | "Keep instructions to 4,000 characters or fewer." |
| Model | One your key reports | "<model> is not available to your <provider> key. Refresh the model list in Settings." |

A panel runs when its orchestrator and at least one reviewer have a working key. A second reviewer with the same role is named "<Role> (<model>)".

## Custom instructions

Every reviewer's instructions can be edited. For guidance that applies to every reviewer, use [repo context](/docs/repo-context) instead of repeating it.

## Change a panel from an agent

Agents can add and remove reviewers, change a member's model, effort and instructions, set the orchestrator and the per-PR limit, with the `panel:write` scope. Rename with `name`; add orchestrator instructions with `instructions`. Both preserve the seat id and its review history. Use `systemPrompt` for reviewer instructions. An empty string clears either instruction field. Updates are atomic: a refused field leaves every field unchanged; errors include `applied: false` and the requested `fields`. Successful updates return `applied: true` and the saved `member`.

```text tab="MCP"
get_panel                                        → panelId, member agentIds
add_reviewer         { "panelId": "...", "role": "security" }
update_panel_member  { "agentId": "...", "reasoningEffort": "high" }
set_orchestrator     { "panelId": "...", "provider": "anthropic", "modelId": "<from list_models>" }
remove_reviewer      { "panelId": "...", "agentId": "..." }
```

```bash tab="CLI"
codepanel panel                                  # panels, members, ids
codepanel panel add-reviewer --role security
codepanel panel update-member --reviewer <id> --effort high
codepanel panel orchestrator --provider anthropic --model <from codepanel models>
codepanel panel remove-reviewer --reviewer <id>
```

```bash tab="HTTP"
curl -sS -X POST -H "Authorization: Bearer $CODEPANEL_TOKEN" \
  -H "content-type: application/json" \
  -d '{"panelId":"...","role":"security"}' \
  "$CODEPANEL_URL/api/v1/panels/reviewers/add"
# also POST /panels/members/update, /panels/orchestrator, /panels/reviewers/remove
```

Full parameters: [MCP server](/docs/mcp-server), [CLI](/docs/cli), [HTTP API](/docs/api).

## Ask for a panel by goal

Instead of picking each seat, tell CodePanel what you want and let it put the panel together. `cost` (`low`, `medium` or `high`) picks the model tiers, and `quality` (`low`, `medium` or `high`) picks the roles and reasoning effort. Both default to `medium`. Existing seats, names, instructions and path scopes are kept by default; the goal adjusts models and effort. Pass `roles` explicitly to change the role lineup. The starter-role table below applies when there are no existing reviewers or those roles are requested explicitly.

| | Roles | Reviewers | Orchestrator |
| --- | --- | --- | --- |
| `quality: low` | Bugs & Security | low effort | low effort |
| `quality: medium` | the four default roles | each role's effort | medium effort |
| `quality: high` | the defaults plus Security, Performance, API & Migrations | one step more effort | high effort |
| `cost: low` | | economy tier | balanced tier (economy only with `quality: low`) |
| `cost: medium` | | each role's tier, at most balanced | balanced tier |
| `cost: high` | | balanced tier; Security on frontier | balanced tier |

The recommendation changes nothing. It lists each seat with its model, its source (your key or credits), its estimated cost a round and why it was picked, citing the evals behind the default models where there are some and saying so where there are none. It also gives an estimate for a round and for a pull request. With `repo`, the estimate uses that repository's own recent rounds (the median tokens per call and rounds per pull request). Without one, it uses the median call sizes across CodePanel's production reviews and their mean of 2.8 rounds a pull request. Prices are list prices without prompt-cache discounts, and only calls that succeeded count, so retries are not in it. With `maxUsdPerPr`, tiers are cut until it fits, and each cut is listed. Existing seats are retained; when `roles` explicitly requests a new lineup, that lineup may also be reduced with reasons. `budget.fits` reports when the goal still cannot fit.

Applying recomputes the recommendation and writes it in one step. Matching seats are edited in place, preserving their ids and statistics. `changes` explains additions and removals; every seat gives its model-selection reason. With `repo`, only that repository changes: it gets its own panel if it has none, and your default panel is left alone. Applying returns `undo`, which restores the panel's earlier reviewers, orchestrator model and per-PR limit in one call.

```text tab="MCP"
get_panel_recommendation  { "cost": "low", "quality": "medium", "repo": "owner/name" }
apply_panel               { "cost": "low", "quality": "medium", "repo": "owner/name" }   → undo
restore_panel             { "undo": { ... } }
```

```bash tab="CLI"
codepanel panel recommend --cost low --quality medium --repo owner/name
codepanel panel apply --cost low --quality medium --repo owner/name
codepanel panel restore --file undo.json
```

```bash tab="HTTP"
curl -sS -H "Authorization: Bearer $CODEPANEL_TOKEN" \
  "$CODEPANEL_URL/api/v1/panels/recommend?cost=low&quality=medium&repo=owner/name"
# then POST /panels/apply with the same fields, and POST /panels/restore with its undo
```

## Reviewer tools and path scopes

Use `get_reviewer_tools` over MCP, `GET /api/v1/reviewer-tools?repo=owner/name`, or `codepanel panel tools --repo owner/name` for the effective `REVIEW_REVIEWER_TOOLS` [switch](/docs/review-switches), tool names and limits. Without `repo`, discovery describes CodePanel's default. Model adapters may differ in tool support; session `toolUse` records actual calls.

Tools currently run only on the user's own API key, with the PR head available and enough time remaining. Credit-funded calls (including credits-first calls) and ChatGPT-plan calls do not receive them. `get_panel` reports `toolsSupported` for each member's model; this describes adapter support, not whether the next call will use an own key.

Enabled reviewers receive `read_file` and `search_code` at the PR head commit. File reads return at most 400 lines. Search matches exact strings in at most 30 candidate files, returning at most 40 lines; it is not exhaustive. The shared budget is six calls, two tool turns, 8,000 characters per call and 24,000 total characters. Secret paths are excluded and sensitive lines redacted. There is no shell or git-history tool. A blast-radius seat can follow callers within these bounds; a history seat cannot inspect commits.

Set `pathScope` on add or update: `{"include":["src/components/**","**/*.css"],"exclude":["**/*.test.tsx"]}`. These are repository-relative globs using `**`, `*`, `?` and `{a,b}`. Empty include means every path; exclusions win. `null` clears the scope; omission keeps it. Each list allows at most 50 patterns of 200 characters. The CLI accepts the same object as JSON through `--path-scope`.

Scopes decide whether a reviewer runs, before model calls or spend holds. A matched reviewer receives the full review context so it can check contracts across files. Open findings may keep an otherwise skipped seat active for rechecking; old findings with ambiguous name attribution are handled conservatively. If no seat matches, the round refuses with an explanation and makes no model calls. The built-in Design & UX role also skips rounds without UI changes, subject to open-finding coverage.

## Unknown model costs

Model discovery includes each known price. An unpriced model is reported as cost unknown, never free. Creating or updating a seat returns a warning, and spending limits refuse unpriced review calls. To run one, explicitly turn off the per-PR limit and every applicable monthly limit. Spend reports retain unpriced-call counts; historical calls without prices remain incomplete rather than acquiring invented charges. Tier labels reflect explicit model rankings, not fallback choices or quality measurements.
