External Code Review
Run one fresh Claude Code review from the repository or issue worktree that contains the change.
Review workflow
Read the repository instructions. Identify the full review target and its correct base branch. Include committed and uncommitted work that is in scope.
Select the model exactly:
- "Opus" means
--model opus. - "Fable" means
--model fable. - If no model is named, omit
--modeland use the configured Claude default. - Do not replace an explicit model with another model.
- "Opus" means
Start a new non-interactive, read-only session. Use
--permission-mode planand--no-session-persistence. Do not resume an earlier session because fresh context is the purpose of this review.Give Claude this review brief, with the target and base filled in:
Act as an independent code reviewer. Review the complete <target> against <base>. Read the repository instructions first. Do not edit files or create commits. Find concrete correctness defects, regressions, security risks, data-loss risks, compatibility problems, and missing tests. Do not report style preferences unless they cause a defect. Put findings first and order them by severity. For each finding, give a P0-P3 priority, exact file and line, failure scenario, reason, and smallest safe fix. If there are no findings, say so and list residual test risks.Let the command finish. A quiet process can still be working. Check its process state and continue to wait. Do not stop or restart a healthy review, because that wastes the paid run. Do not set
--max-budget-usdunless the operator gives a limit. Retry only after the command exits without a usable result.Check each finding against the source and tests. Do not present a finding as valid without evidence. Make changes only when the operator also asked for fixes.
Report the model, review target, command completion, accepted findings, rejected findings, and tests run after any fixes.
Use the same flags for each model:
claude -p --model opus --permission-mode plan --no-session-persistence <<'REVIEW'
<review brief>
REVIEW
claude -p --model fable --permission-mode plan --no-session-persistence <<'REVIEW'
<review brief>
REVIEW
Never put secrets, credentials, or .env content in the prompt.