-
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. Run 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.
-
It dispatches up to two reviewers against the diff (plus the spec /
.harness/PLAN.mdtask when obvious, plus the relevantAGENTS.mdslice):-
adversarial-reviewer-cross— the cross-model reviewer. Runs first whengeminiis on PATH; it escapes the same-model echo chamber. -
adversarial-reviewer— the in-process reviewer (same model). It 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 a
//or#path comment), or - a line
DEFECT: <path>:<line>(with spec / actual / a minimal reproducer), or -
NO ISSUES FOUND(with the files + categories it checked).
Prose-only critiques are rejected. When 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 a
-
Act on the findings yourself —
/code-reviewreports, it doesn't edit. Standalone, the fixes are yours. (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's operator-opt-in per invocation — the cross-model reviewer runs only when you invoke
/code-reviewandgeminiis present. - The model is editable — point the cross-review reviewer at
claudeinstead of Gemini to keep the diff inside 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. - Installing and using the code-review plugin — the hands-on first run, if you haven't done one.
- 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
- Simplify a diff — /simplify
- In-flight decision review — /doubt
- Add observability — /observe
- Deprecate a surface — /deprecate
- Launch readiness gate — /launch
- Author a CI/CD pipeline — /ci-cd
- Record an architectural decision — /document-decision
- Install the vault backend (pending)
- Plugin anatomy
- Repo layout
- Compatibility
- CI gates
- Troubleshooting
- Customization Types
- Manifest Schema
- Per-Host Paths
- Hooks
- Evaluator
- Antigravity Limitations
- Obsidian vault backend (pending)
- Wiki Watch Config
- Style-learning loop
- Modify a plugin
- Add a skill
- Add a plugin
🏛️ Architecture
-
Plugins
- Token Audit · Status Line Meter
- Customization model
- Build & distribution
- Host adapters
- Harness interface ↔ Agent M
🧩 Designs
Architecture (Agent M) — in the agentm wiki ↗
Crickets