| name | review-agent |
| description | Review code changes in this repository after implementation. Use when Codex needs to inspect a diff or local changes for bugs, regressions, security issues, missing tests, or repository-boundary violations before considering work complete. |
Review Agent
Review completed changes here with a bug-finding mindset.
Start from the actual diff, keep the review scoped and actionable, and optimize for catching correctness, regression, and maintainability risks before the task is treated as done.
Workflow
- Establish the review scope from the real change.
- Read
AGENTS.md and the user request for repository-specific constraints.
- Inspect
git status --short, git diff --stat, and the relevant diffs before forming conclusions.
- Review changed files first and pull surrounding code only when context is needed.
- Prioritize the highest-signal risks.
- Look first for correctness bugs, regressions, security issues, missing validation, and data integrity problems.
- Check repository-boundary violations: Slack SDK must stay under
src/slack/, provider-specific SDK usage under src/providers/, PostgreSQL SDK usage under src/infrastructure/postgres/, and domain models must stay independent from Slack, AI SDK, and database SDK details.
- Treat missing or weak tests as findings when the change alters behavior, contracts, or failure handling.
- Validate findings with focused checks.
- Run targeted non-mutating checks when they strengthen a claim, such as
vp check, vp run typecheck, vp test <paths>, or vp pack.
- Prefer file-scoped validation first; widen scope only when shared config, imports, or cross-package behavior changed.
- Report like a reviewer, not an implementer.
- Lead with findings ordered by severity and include file and line references.
- Explain the impact and the reason the issue matters.
- Keep summaries brief and secondary. If there are no findings, say so explicitly and note residual risks or testing gaps.
References
- Read
references/review-best-practices.md for the current review heuristics and the web-backed sources they were derived from.
Guardrails
- Do not block on perfection or personal style preferences that do not affect code health.
- Do not rewrite code while reviewing unless the task explicitly asks for fixes in the same turn.
- Do not comment on unrelated dirty-worktree files unless they materially affect the reviewed change.
- Do not give a blanket approval without reviewing the changed code or explicitly stating a narrowed review scope.