You should use sub-agents to review the change from multiple angles (correctness, tests, consistency, UX, performance, safety). Each sub-agent should have a focused mandate and return actionable findings with file paths.
Step 0: Establish the review surface
Before reviewing, gather context:
Identify the change scope:
git diff --name-only
(or the file list the user provides).
Skim the diff for intent and risk:
git diff
.
Note which layers are touched:
UI (React/components/styles)
Main process / backend services
IPC boundary / shared types
Tooling/scripts
Docs
Tests
If the change is large, split review by module and prioritize
high-risk
paths.
Spawn the right sub-agents (change-type aware)
Spawn
2–5
sub-agents depending on scope. Tailor them to the change.
logs, error messages, debuggability
Anti-patterns
Single-threaded review
of a large change (spawn sub-agents).
Vague feedback
(“looks good”) without actionable items and file paths.
Non-verifiable suggestions
(always include a validation plan).
Scope creep
disguised as review (focus on minimal changes unless risk demands more).