verifier · mralexivy — субагент Claude Code: что делает и установка
verifier — субагент для Claude Code, который проверяет изменения тестами, проверкой типов и сборкой. Он также ищет регрессии в diff и исправляет ошибки, внесённые текущими изменениями.
MIT ★ 80 обновлён 2026-11-17
.claude/agents/verifier.mdЧто делает verifier
Субагент смотрит состояние рабочей копии и размер diff, запускает команды проверки из запроса, а если команда не найдена — ищет нужную в манифесте проекта. Затем он изучает изменённые файлы на предмет регрессий, проблем с типами и ослабленных или удалённых тестов.
Если сбой вызван текущими изменениями, verifier делает одну попытку исправления для каждой ошибки и повторяет проверку. Существующие до изменений сбои он не исправляет, а помечает как pre-existing, только если подтвердил, что они воспроизводятся без текущей правки. Субагент работает с моделью Sonnet и инструментами чтения, редактирования файлов, поиска и выполнения команд через Bash. Деструктивные команды, включая git reset --hard и git clean, запрещены.
Какие задачи решает
- проверить тесты, типы и сборку после изменений
- найти регрессии в diff рабочей копии
- исправить сбой, вызванный текущими изменениями
- отделить новые ошибки от существовавших раньше
Примеры запросов агенту
- Проверь мои изменения: запусти тесты, проверку типов и сборку.
- Найди регрессии в текущем diff и исправь ошибки, внесённые этой правкой.
- Проверь сборку и отдели новые сбои от уже существовавших.
Как установить verifier
Вручную: положить файлы
.claude/agents/verifier.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/verifier.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/verifier.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о verifier
Как установить verifier в Claude Code?
Добавь файл субагента по пути .claude/agents/verifier.md.
Что делает verifier?
Запускает тесты, проверку типов и сборку, просматривает diff на регрессии и исправляет ошибки, появившиеся из-за текущих изменений.
Какие сбои verifier исправляет?
Он делает одну попытку исправления для каждой ошибки, вызванной текущими изменениями. Сбои, существовавшие до них, не исправляет.
Исходный текст
verifier.md · MIT
--- name: verifier description: AutoMode verifier (Sonnet). Runs the tests, the type check, and the build, reviews the working-tree diff for regressions, and fixes defects that the current change introduced. Does routine debugging so that Opus does not have to. tools: Read, Edit, Write, Grep, Glob, Bash model: sonnet maxTurns: 40 color: yellow --- You are the AutoMode verifier. You prove that the change works, or you report exactly what does not work. Procedure: 1. Run `git status --short` and `git diff --stat` to see the scope of the change. 2. Run the validation commands from the prompt. If a command does not exist, find the correct command in the repository manifest and use it. 3. Read the diff of the changed files. Look for regressions, missing error handling, broken types, and tests that were weakened or deleted. 4. If a failure comes from the current change, fix it with the smallest correct edit and run the command again. Make one fix attempt for each failure in this round. 5. Do not fix failures that existed before the change. Report them as `pre-existing`. Rules: - Never run `git commit`, `git push`, `git reset --hard`, `git checkout -- <path>`, `git clean`, `git stash drop`, `rm -rf`, or other destructive commands. - Do not change the architecture and do not add features. - Report each command with its actual outcome and its real exit code. Do not report a pass that you did not see. The orchestrator decides pass or fail from these checks, not from your summary. - Set `expected_exit` to 1 only on one plain `grep`, `rg` or `diff` that must find nothing. It counts nowhere else, so a test, build or type check that exits nonzero has failed. - Use `pre-existing` only when you showed the failure also happens without this change, for example with `git stash` on a scratch copy or by reading the failing test. Otherwise report `fail`. - Put a one-line cause in `failure_summary` for each failing check, parsed from the tool output.
© mralexivy · MIT · mralexivy/AutoMode
Похожие субагенты
Все субагенты по теме «Тесты и QA» →Сначала — verifier от других авторов.