DocsGuides
Reviewing a Git Diff
Validating uncommitted git diffs against project rules and review checklists.
$athena review
Checking Diffs
Before opening a pull request or committing changes:
bash
athena reviewathena review checks your current git diff for facts worth reviewing. It flags possible secrets and committed .env files (these two are blockers and exit with code 1), new dependencies, changes to API, auth or database code, source changes without test changes, TODO/FIXME or debug leftovers, large added files, high/critical advisories from the last athena security scan, and knowledge that is out of date for the change. It then lists your enabled rules from rules.md and the code-review.md checklist for you or your agent to go through. Rules are a checklist, not automated checks.
Example Output
bash
$ athena review
Athena Review
3 files changed (+42 −5 in the working tree)
Automated checks
✗ Possible stripe-key added [secrets]
src/config.ts
⚠ New dependencies: stripe [dependencies]
⚠ 2 source file(s) changed with no test file changes [tests]
Project rules to verify (from rules.md)
[ ] All user input must pass through schema validation (Security)