Claude Code Review in Production: How Our Review Rules Evolved Over Five Months
Описание и применение
Автоматизированный обзор кода с помощью Claude прошёл эволюцию от простого запроса к полноценному playbook‑у с шестью специализированными агентами и верификатором, устранив ложные срабатывания и проверяя только изменённый код, при этом каждый вывод ссылался на правило.
Задача
Automated code review produced false positives, reviewed unchanged code, and lacked rule citations, leading to noisy feedback and blocking legitimate changes.
Результат
The evolved workflow reduced false positives, prevented reviews of legacy code, ensured every finding cited a rule, and introduced a verifier to drop unprovable findings, improving trust and precision.
Рабочий процесс
- Listen for PR events or @claude comment
- Load only rule documents relevant to changed file paths
- Review only added or modified lines
- Assign severity based on rule type (BLOCKING, WARNING, SUGGESTION)
- Route each file to its specialist reviewer
- Collect findings in fixed format
- Verifier checks file existence, code quote proximity, diff inclusion, and rule validity
- Post findings as inline comments and GitHub review (request changes if any BLOCKING)
Доказательства
Claude Code review started at my company as a single prompt in a GitHub workflow, and five months later it is a playbook, six specialist agents and a verifier that throws out any finding it cannot prove.
The next rewrite introduced three ideas that are still the backbone of the system.
The verifier is the Claude Code review agent I would copy first. For every finding it checks four things, and rejects the finding if any fails: ... false positives are far worse than false negatives
- Дата записи: 2026-10-09T03:40:56.824Z