Chapter 06 · Performing Multi Agent Code Review
Subchapter 6.1
references/discovery-standards.mdMarkdown2 KBView on GitHub
Loaded by the orchestrator in Step 1. The Hygiene Sweep is invoked by name from the Step 2 architect and Step 3 Agent 1 (code quality) prompts. The Line Number Accuracy rule is propagated verbatim into every Step 2–5 subagent prompt.
Agent 1 (code quality) performs a hygiene sweep of the diff before submitting findings; the Step 2 architect applies the same sweep within its scope. When referenced, look specifically for:
This is not an exhaustive checklist — surface anything diff-visible that a senior engineer would flag in a real review.
Cite actual file line numbers, not positions within the diff. Derive them from the hunk header:
@@ -A,B +C,D @@ — +C is the starting file line for the hunk. New files use @@ -0,0 +1,N @@, so C=1.+C, count + lines and context lines (no prefix) up to your target. Skip - lines, @@ lines, and ---/+++ lines.Never guess. Always derive from the hunk header.