Reviewers
The reviewers plugin gives a thread reviewers of its own: other agents that look at what the
thread changed once its agent is done, and report what they find as comments on the lines of the
changes. You choose who reviews (profiles), when (the trigger), and whether the findings only wait
for you or also go to the agent.
It is an ordinary plugin with no privileges. Turned off (qcc plugin disable reviewers), it starts
no reviewer, hears of no turn and shows no panel; the comments and reviewer threads it already made
stay, like any others. Turned on again, each thread's set-up is where it was.
Setting up a thread
Section titled “Setting up a thread”In the app: the Reviewers tab of the panel beside the thread (Ctrl+B). From the CLI:
qcc reviewers configure --thread <id> --enabled on --profiles general,securityqcc reviewers configure --thread <id> # how it is set up nowqcc reviewers profiles --thread <id> # the profiles it can useFrom inside an agent --thread can be left out: it is the agent's own thread.
In the panel the agent is picked from those the daemon runs, then its model from the models that agent lists (the same list as the new-thread dialog), and the effort from the levels that model takes; each also has "As the profile says". Until the agent's models are in, the panel says it is loading them and is drawn again when they come. Another agent clears the model and effort; a model that does not take the chosen effort clears the effort. An agent that lists no models, or cannot be asked, gets text fields for the model and effort instead (and a button to ask again).
| Setting | configure |
Default | |
|---|---|---|---|
| Review on its own | --enabled on/off |
off | Reviews start by the trigger. A review asked for by hand runs either way. |
| Profiles | --profiles a,b |
general |
Each chosen profile reviews in a thread of its own. |
| Agent, model, effort | --provider, --model, --effort |
the profile's | Override every profile's choice; an empty value goes back to it. |
| Delivery | --delivery collect/auto |
collect |
See Findings. A profile may override it. |
| Trigger | --trigger finished/every-turn/every-turns/manual |
finished |
See When a review starts. |
| Delay | --delay 30s |
30s | For finished: how long the agent stays idle first. |
| Every | --every 3 |
3 | For every-turns. |
| Rounds at most | --max-rounds 3 |
3 | Per thread; 0 is no limit. qcc reviewers reset --thread <id> counts again. |
| Review answers | --review-responses on/off |
off | Whether the turn in which the agent answers the findings is reviewed too. |
The defaults of a new thread are the plugin's own settings (app settings, or qcc plugin set reviewers …): profiles, provider, model, effort, delivery, trigger, delay,
max_rounds.
Who runs a reviewer is decided in this order: the thread's choice, the profile, the plugin's settings, and last the reviewed thread's own agent. A model or effort is taken only along with the agent it was given for (or one given without an agent).
Profiles
Section titled “Profiles”A profile is a markdown file: a frontmatter saying who reviews and how, and a body saying what to look for.
---name: security # lowercase letters, digits, - and _; default: the file namedescription: Security problems in what changedprovider: codex # optionalmodel: gpt-5.1-codex # optionaleffort: high # optionalpaths: [src/**/*.rs, "*.toml"] # optional: only these files; a glob without / matches the file name anywhereseverity: medium # findings below it are dropped: info, low, medium, high, criticaldelivery: auto # optional: collect or auto, over the thread's choice---Look only for security problems: injection, secrets, missing permission checks…They come from three places; one of the same name in a later place replaces the earlier:
- built in:
general(bugs, risks, missing tests) andsecurity; - global:
<data>/plugin-data/reviewers/profiles/*.md(~/.local/share/qcc/…for./dev app); - the project:
.qcc/reviewers/*.mdin the directory the thread works in, so a worktree thread sees the profiles of its branch.
A profile that cannot be read is named in the panel and in qcc reviewers profiles.
When a review starts
Section titled “When a review starts”- When the agent is done (
finished, the default): a turn completed, and no new turn started and no message came for the delay. A turn that starts meanwhile puts it off until that one ends. - After every turn (
every-turn) and every few turns (every-turns), counting completed turns. - Only when asked (
manual): from the panel's Review now, orqcc reviewers request. - The agent can ask too: a thread with reviews on gets the
qcc-reviewersskill, which tells it to runqcc reviewers requestwhen it is done. That starts a round at once, without the delay.
(commit and deliver triggers are reserved in the settings but not wired up yet.)
Whatever the trigger, a round starts only if:
- there are changes, and they are not the ones the last round reviewed (the diff's fingerprint is compared);
- no round is running;
- the thread has not had its rounds at most;
- the turn was not the agent's answer to the findings sent to it, unless reviewing answers is on.
qcc reviewers request says why when it starts nothing.
Reviewers
Section titled “Reviewers”Each profile of a round is a service thread under the reviewed one (hidden: not in the sidebar
or qcc thread list without --hidden; the panel opens it), in its directory, in the
read-only permission mode (see Permission mode): it reads and
looks around, nothing that changes a file runs, and it never stops to ask you. Claude Code, Codex
and opencode can run that way. An agent that cannot runs its reviewer in ask mode instead, and
then it may ask you for approval; the panel says so before a round, and qcc reviewers request
says so when it starts one.
The prompt does not carry the diff, which can be large. It says which thread and directory to
review and against which base (and branch), lists the changed files the profile covers with their
lines added and removed, gives the task the agent was given, and the commands to look with:
git diff <base> -- ':/<path>', reading and searching files, git log/git show/git blame, and
qcc thread diff <id> [--full] <path>… / qcc thread changes <id> (which a Codex sandbox keeps
from reaching qcc, so git comes first). The reviewer reads what it needs. It answers with a JSON
object at the end of its reply,
{"findings": [{"file": "src/lib.rs", "line": 12, "severity": "high", "text": "…"}]}From the second round on, a reviewer is pointed only at the files changed since the last round, and told what it found before with what became of it (resolved, with the agent's note, or still open), so it checks the fixes instead of starting over.
The panel
Section titled “The panel”The Reviewers tab of the panel beside the thread is where reviews are followed; there is no other thread to switch to. From the top:
- Run a review and the rounds so far. While a round runs, each reviewer has a line: looking…, waiting for your approval (an agent that cannot run read-only), done, N findings or error. "reasoning" opens the reviewer's own thread, to read how it got there; its panel leads back to the reviewed thread.
- Findings of the current and the earlier rounds, grouped by reviewer or by severity, the ones
still to do first. Each shows its severity, where it stands,
file:line(a click opens that line in the Changes tab), stale when the changes moved on while the reviewer looked, the reviewer and the round, its text, and the agent's note once fixed. - What can be done: Send one finding, Send all open, or pick some and Send selected (one message either way); Dismiss a finding that needs nothing; Restore a dismissed or fixed one. With auto delivery the round's findings are sent on their own, and their statuses show the same.
- Settings: everything of Setting up a thread, and the rounds' history.
The panel draws itself again as a round goes and when a finding's status changes, without
polling: the plugin tells the app (views.refresh).
Findings
Section titled “Findings”Once every reviewer of the round answered, each finding gets an id (f1, f2, … within the
thread) and a status:
| Status | |
|---|---|
| open | nobody acted on it yet |
| sent | handed to the agent with a message |
| fixed | the agent resolved its comment (qcc comment resolve <id> --note …); its note is shown |
| dismissed | you decided it needs nothing |
- A finding with a file and a line of the changes is also a line comment in the Changes tab, marked with the reviewer's name and severity, Outdated when stale, Sent once handed over. It is the same finding: sending it there with Send to agent, resolving or reopening it there, or deleting it (which counts as dismissed) changes its status in the panel, and the other way round. Dismissing resolves the comment with "Dismissed by the user", so the agent sees it closed.
- A finding about the change as a whole, about a file the changes do not touch, or a reviewer's reply that was not in the format, is a remark: in the same list, with no comment. It is sent in the text of the message, and its status is kept by the plugin.
- Sending hands the comments over the way Send to agent does (each in full, with how to resolve it) and lists the remarks in the message.
From the CLI:
qcc reviewers findings --thread <id> [--json] # every finding, with its statusqcc reviewers send [<finding-id>…] --thread <id> # those named, or every open one, in one messageqcc reviewers dismiss <finding-id>… --thread <id>qcc reviewers restore <finding-id>… --thread <id>How it is built
Section titled “How it is built”The plugin uses only the public plugin API (see Writing a plugin), with the
permissions kv, timers, threads, turn-events, comments, files and skills:
turn-eventstells it of every turn that ends; it keeps a timer per thread for the delay and checks withthreads.getthat the agent is still idle;threads.diffreads the diff, whose fingerprint tells a new round from one already reviewed and marks findings stale;threads.changeslists the files with their line counts and the base for the prompt (both answered later, as events);threads.spawnandthreads.watchrun the reviewers,threads.senddelivers the message;comments.addleaves the comments, with the plugin as their author;comments.resolvedismisses and restores them,comments.sendhands them to the agent as the user's button does (the daemon notes when), andcomments-changedtells the plugin when anyone changes them;filesreads the profiles; the panel is athread-panelview built from UI nodes.
Rounds in flight are kept in its key-value store and picked up again after a restart of the daemon; the timer of a delay is not.