Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Dispatch 10x-engineer:code-reviewer subagent to catch issues before they cascade.
Core principle: Review early, review often.
Mandatory:
Optional but valuable:
1. Get Sapling commit hashes:
BASE_SHA=$(sl log -r ".^" -T "{node|short}") # parent commit
HEAD_SHA=$(sl log -r "." -T "{node|short}") # current commit
2. Dispatch code-reviewer subagent:
Use Task tool with 10x-engineer:code-reviewer type, fill template at
code-reviewer.mdPlaceholders:
{WHAT_WAS_IMPLEMENTED} - What you just built{PLAN_OR_REQUIREMENTS} - What it should do{BASE_SHA} - Starting commit{HEAD_SHA} - Ending commit{DESCRIPTION} - Brief summary3. Act on feedback:
[Just completed Task 2: Add verification function]
You: Let me request code review before proceeding.
BASE_SHA=$(sl log -r ".^" -T "{node|short}")
HEAD_SHA=$(sl log -r "." -T "{node|short}")
[Dispatch 10x-engineer:code-reviewer subagent]
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
[Subagent returns]:
Strengths: Clean architecture, real tests
Issues:
Important: Missing progress indicators
Minor: Magic number (100) for reporting interval
Assessment: Ready to proceed
You: [Fix progress indicators]
[Continue to Task 3]
Subagent-Driven Development:
Executing Plans:
Ad-Hoc Development:
Never:
If reviewer wrong:
See template at: requesting-code-review/code-reviewer.md