-
Notifications
You must be signed in to change notification settings - Fork 0
Use Code Review
Note
Goal: Adversarially review any diff or PR with the /code-review command — no /work cycle, no commit required.
Prereqs: the code-review plugin installed (Install crickets plugins); git. Optional: gh (for PR review) and gemini (for the cross-model pass).
/code-review is the standalone command from the code-review plugin. It dispatches the adversarial reviewers against a diff and reports — it never fixes. Use it on an open PR, a branch, a commit range, or your uncommitted working tree.
-
Invoke the command with a target (or none, to review the working-tree diff):
/code-review # uncommitted working-tree diff (git diff HEAD) /code-review main...HEAD # a commit range /code-review #123 # a PR by number (needs gh) /code-review <PR URL> # a PR by URL (needs gh)If the resolved diff is empty, the command says so and stops.
-
The command dispatches up to two reviewers against the diff (plus the spec /
.harness/PLAN.mdtask if obvious, plus the relevantAGENTS.mdslice):-
adversarial-reviewer-cross— the cross-model reviewer. Runs first whengeminiis on PATH; escapes the same-model echo chamber. -
adversarial-reviewer— the in-process reviewer (same model). Corroborates, or becomes the sole reviewer when the cross-model pass falls back.
-
-
Read the contract output. Each reviewer returns exactly one of:
- a failing test in a fenced code block (first line is a
//or#path comment), or - a line
DEFECT: <path>:<line>(with spec / actual / minimal reproducer), or -
NO ISSUES FOUND(with the files + categories it checked).
Prose-only critiques are rejected. If the two reviewers disagree (one finds a defect, one says clean), both are surfaced — disagreement is signal. Any
file:lineor failing test is verified to reproduce before it's reported. - a failing test in a fenced code block (first line is a
-
Act on the findings yourself —
/code-reviewreports, it does not edit. Standalone, the fixes are yours to make. (Inside a/workloop, the same reviewers feed a follow-up/worktask instead.)
The cross-model pass sends your diff to the Gemini CLI → Google. Treat it as opt-in:
- It is operator-opt-in per invocation — the cross-model reviewer is only dispatched when you run
/code-reviewandgeminiis present. - The model is editable: point the cross-review reviewer at
claudeinstead of Gemini if you don't want the diff leaving your model boundary. - It graceful-skips when
geminiis absent or unauthed —cross-review.shexits non-zero, and the command falls back to the in-processadversarial-reviewer(same model, no external send). - The in-process
adversarial-revieweralways stays on the current model — it never sends the diff anywhere.
-
Install crickets plugins — get the
code-reviewplugin onto your host. - Use the evaluator — PASS / NEEDS_WORK grading against a rubric (a different reviewer role).
-
Compatibility — the
evidence-trackerhook (also incode-review) is Claude-only-effective. -
Modify a crickets plugin — edit the reviewers /
cross-review.shand dogfood.
🔧 How-to
- Install plugins
- Using code review
- Provision a repo's wiki
- Declare a project's Architecture
- Maintain a wiki — wiki-watcher
- Review a change — code review
- In-flight decision review — /doubt
- Author a design (pending)
- Run a named plan
- Spawn a worker in a worktree
- Run isolated tasks
- Configure main branch protection
- Integrate a worker
- See every active plan
- Run a coordinator-directed worker team (pending)
- Install the vault backend (pending)
- Sync a project board