Workflows
Code review
How to run multi-agent code review locally and in CI, including GitHub PR integration.
/code-review:start runs multi-agent, partitioned code review with deterministic hygiene checks. It works on the current branch, on staged changes, on specific files, or on a GitHub PR. Run it in Claude Code in your terminal, not in the Desktop app or the web app.
Local branch review
/code-review:startReviews the open PR diff for the current branch, or the diff since the branch forked from the default branch if there is no PR. Results land in .closedloop-ai/code-review/cr-<random>/.
Staged review
/code-review:start stagedReviews only what is currently staged. Useful before committing.
Specific files
/code-review:start path/to/file1.ts path/to/file2.tsPR review
/code-review:start 123Reviews PR #123 locally without posting. With --github, posts inline comments on the PR.
Flags
--github— CI mode; posts inline comments to the PR.--hygiene-only— skip LLM review, run only deterministic checks.--base <ref>— override the base ref.--since-last-review— review only changes since the last successful review.--full-review— force the full diff (disable auto-incremental).--depth shallow|standard|deep— review depth.
When to run
- Locally, before committing (
stagedor default branch review). - In CI, on every PR (
--github <pr-number>). - Incrementally on large branches, to review only the new delta.