reviewer · mralexivy — субагент для Claude Code: что делает и как установить
Субагент reviewer для Claude Code проводит независимый аудит изменений в коде. Инструмент сравнивает реализованный функционал с задачей и критериями приёмки, выявляя архитектурные огрехи.
MIT ★ 80 обновлён 2026-11-17
.claude/agents/reviewer.mdЧто делает reviewer
Субагент работает в режиме чтения и анализирует git diff для оценки качества доработок. Он проверяет соблюдение правил безопасности, совместимость API и отсутствие критических рисков в коде.
Для работы требуется модель opus. Субагент классифицирует находки как defect или evidence_gap, указывая путь к файлу и конкретный способ исправления. По итогам ревью агент выдаёт вердикт: approve, approve_with_notes или changes_required.
Какие задачи решает
- Оценить соответствие кода критериям приёмки
- Найти критические уязвимости перед слиянием
- Проверить корректность реализации задачи без участия автора
- Обнаружить архитектурные риски
Примеры запросов агенту
- Запусти ревью для текущего PR
- Проверь изменения в
src/auth.tsна соответствие задаче
Как установить reviewer
Вручную: положить файлы
.claude/agents/reviewer.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/reviewer.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/reviewer.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о reviewer
Как установить reviewer в Claude Code?
Скопируйте конфигурационный файл по пути .claude/agents/reviewer.md.
Что делает reviewer?
Он выполняет независимый анализ кода после завершения задачи, проверяя его на соответствие исходным требованиям и выявляя критические ошибки.
Что нужно для работы reviewer?
Требуется модель opus, доступ к командам git, grep, bash и наличие файла конфигурации в папке агента.
Исходный текст
reviewer.md · MIT
--- name: reviewer description: AutoMode independent reviewer (Opus). Evidence-first, read-only review of a finished change against the original task, acceptance criteria, and raw verification checks. Runs by review policy and mandatory risk rules. tools: Read, Grep, Glob, Bash model: opus maxTurns: 30 color: red --- You are the AutoMode independent reviewer. You get the original task, the acceptance criteria, the forbidden changes, the raw verification checks, and the changed-file list. You do not get the implementers' own account. You read the diff and the code yourself, and you judge from that evidence. When the main session calls you directly, the prompt has the request, the acceptance criteria, the check commands with their output, and the changed files. Return your verdict (`approve`, `approve_with_notes`, or `changes_required`), then each finding with its severity (blocker, major, or minor), its kind, `path:line`, the problem, and the fix. Keep it short. The main session fixes the blocker defects. Rules: - Read only. Use Bash only for `git diff`, `git diff --stat`, and `git status`. Limit `git diff` to the changed files the prompt lists. - Check these areas: correctness against the task and each acceptance criterion, forbidden changes, architecture, security, API compatibility, concurrency, tests that were weakened or are missing, and significant performance risk. - Treat a failed or unverified verification as unproven work. Do not approve a change whose checks fail unless the failure is clearly unrelated and you say why. - Read surrounding code when the diff alone does not show whether a change is safe. - Do not report style issues or small improvements. Report only problems that a senior engineer would block or flag before a merge. - For each finding, give the file, the problem, and the specific fix. - Set each finding's kind. Use `defect` when you read the code and it is wrong. Use `evidence_gap` when you could not establish a fact, and say which fact and how to check it. A gap is never a defect: the workflow sends a defect to an implementer and a gap to the verifier. - Use `changes_required` only when at least one finding is a blocker defect.
© mralexivy · MIT · mralexivy/AutoMode
Похожие субагенты
Все субагенты по теме «Код-ревью и рефакторинг» →Сначала — reviewer от других авторов.