Skip to Content

ah review

Review code changes or a codebase slice using automated review agents.

ah review changes [COMMIT|BRANCH|RANGE] [OPTIONS] ah review codebase [OPTIONS]

changes reviews staged changes, then unstaged changes, then the last commit when no target is provided. codebase performs a repository review without assuming a diff. Review agents run sequentially through the normal foreground ah <agent> launchers, so their sessions are recorded and reported like direct agent runs.

Options

OptionDescriptionDefault
--path <PATH>Restrict the diff or codebase inventoryall tracked scope
--focus <TEXT>Free-form review focus; repeatable—
--reviewers <LIST>Comma-separated reviewer typesall non-conditional
--securityShortcut for the security reviewer—
--agent <TYPE>Agent software for reviewsclaude
--model <MODEL>Model override—
--account <NAME>Credential account for the launcherconfigured default
--output-dir <DIR>Directory for prompts and JSON reportstarget/ah-review
--dry-runGenerate prompts and command lines onlyfalse
--print-promptsPrint generated reviewer promptsfalse

--parallel is accepted but rejected at runtime for fix-first review execution because reviewers may edit the shared working copy.

Available Reviewers

ReviewerFocus
goal-adherenceMilestone requirements match
test-integrityAnti-cheating, weakened assertions
securityOWASP Top 10, injection, auth bypass
dependency-hygieneVersion drift, package hallucinations
architectureModule boundaries, layering violations
duplicationCode clones, repeated logic
performanceAsymptotic regressions
concurrencyDeadlocks, races
idiomsProject style, best practices
compatibilityBreaking changes
corner-casesReal-world assumptions
accessibilityUI/TUI accessibility

Examples

# Review current changes ah review changes # Review last 3 commits with specific reviewers ah review changes HEAD~3..HEAD --reviewers security,test-integrity # Review the REST server security model without a diff ah review codebase --security \ --focus "authentication, authorization, and tenant isolation" \ --path crates/ah-rest-server # Preview generated prompts without launching agents ah review changes --security --agent codex --dry-run --print-prompts