Skip to main content
gga run supports several modes depending on where and how you need code review to happen. The default mode is designed for local pre-commit hooks. CI and PR modes are designed for pipelines.

Default mode: gga run

Reviews files currently staged with git add. This is the mode invoked by the pre-commit hook installed with gga install.
gga run
Smart caching is enabled by default. Files that haven’t changed since their last passed review are skipped automatically.Terminal output:
ℹ️  Provider: claude
ℹ️  Rules file: AGENTS.md
ℹ️  File patterns: *.ts,*.tsx,*.js,*.jsx
ℹ️  Cache: enabled

Files to review:
  - src/components/Button.tsx

# ...AI review output...

 CODE REVIEW PASSED
If all staged files are already cached:
 3 file(s) passed from cache

Files to review:
  All files passed from cache!

 CODE REVIEW PASSED (cached)
To force a review of all staged files regardless of cache, use gga run --no-cache.

Mode comparison

ModeFiles reviewedCacheUse case
gga runStaged filesEnabledLocal pre-commit hook
gga run --no-cacheStaged filesDisabledForce re-review
gga run --ciLast commit (HEAD~1..HEAD)DisabledCI pipelines after push
gga run --pr-modeAll PR changes (full files)DisabledPR pipelines
gga run --pr-mode --diff-onlyAll PR changes (diffs only)DisabledLarge PR pipelines

Build docs developers (and LLMs) love