/cct:review-submitfrom cct
Submits current work for peer review — validates clean worktree, initializes or continues review state, invokes the review runner, and returns the verdict.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /cct:review-submit still runs it.
Submit work for peer review. Validates clean worktree, initializes or continues the review loop, invokes review-round-runner.sh, and returns the verdict.
CCT_PEER_REVIEW_ENABLED must be true (set by --peer-review launcher flag).cct/ review state)jq must be installedCheck that peer review is enabled:
CCT_PEER_REVIEW_ENABLED is not true, inform the user and stop.Run git status --porcelain and check for uncommitted changes (excluding .cct/):
If .cct/review/breaker-tripped.json exists:
/review-decide approve|reject|retry to proceed."If .cct/review/state.json does not exist, create it:
{
"current_round": 0,
"attempt": 1,
"loop_start": <current-unix-timestamp>,
"feature_id": "<from specs/*/plan.md or ask user>",
"phase": "<plan|build — infer from current agent or ask>",
"subject_provider": "claude",
"peer_provider": "<from CCT_PEER_PROVIDER env or empty for profile default>",
"review_scope": "<from CCT_PEER_REVIEW_SCOPE env or 'both'>",
"target_ref": "<current git branch or HEAD>",
"last_verdict": null,
"findings": {}
}
If state.json already exists, the runner will read it and continue from the current round.
Run review-round-runner.sh <project-dir> as a synchronous subprocess.
The runner exits with:
.cct/review/loop-summary.json and inform the user. Proceed to /phase-complete..cct/review/findings-round-N.json (where N is the current round from state.json). Present each finding to the user. For blocking findings, address them (fix, dispute, defer, or mark not-applicable), write .cct/review/resolution-round-N.json, commit fixes, then run /review-submit again..cct/review/breaker-tripped.json and present the context. Tell the user to run /review-decide approve|reject|retry. Stop and wait.Read findings-round-N.json and for each blocking finding:
Then write .cct/review/resolution-round-N.json:
{
"round": N,
"resolutions": [
{
"finding_id": "f-xxxxxxxx",
"disposition": "fixed|disputed|deferred|not-applicable",
"detail": "<explanation>",
"commit_ref": "<sha — required for 'fixed' disposition>"
}
]
}
Commit the fixes, then run /review-submit again for the next round.
Inform the user:
loop-summary.json writtenspecs/<feature-id>/collaboration//phase-completeFor plan-phase review (phase: plan):
plan-consult.md artifactWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub gosha70/code-copilot-team --plugin cct14 commands in this plugin
/auto-buildPrerequisitesScaffold and explain an autonomous build run for an approved SDD feature. Validates the approval + origin gates, writes `specs/<feature-id>/automation.json` from the template, and prints the driver command — the driver itself runs OUTSIDE this session./betStepsLock a shaped Shape-Up pitch as a bet for the next cycle./cooldownSteps