All commands
| Command | Description | Example |
|---|---|---|
gga init | Create sample .gga config file | gga init |
gga install | Install git pre-commit hook (default) | gga install |
gga install --commit-msg | Install git commit-msg hook | gga install --commit-msg |
gga uninstall | Remove git hooks from current repo | gga uninstall |
gga run | Run code review on staged files | gga run |
gga run --no-cache | Run review ignoring cache | gga run --no-cache |
gga run --ci | Run review on last commit (CI/CD) | gga run --ci |
gga run --pr-mode | Review all files changed in the full PR | gga run --pr-mode |
gga run --pr-mode --diff-only | PR review with diffs only (faster, cheaper) | gga run --pr-mode --diff-only |
gga config | Display current configuration and status | gga config |
gga cache status | Show cache status for current project | gga cache status |
gga cache clear | Clear cache for current project | gga cache clear |
gga cache clear-all | Clear all cached data | gga cache clear-all |
gga version | Show installed version | gga version |
gga help | Show help message with all commands | gga help |
gga init
Creates a sample .gga configuration file in your project root with sensible defaults.
PROVIDER, FILE_PATTERNS, EXCLUDE_PATTERNS, RULES_FILE, STRICT_MODE, TIMEOUT, and PR_BASE_BRANCH.
If a Press
.gga file already exists, gga init prompts you before overwriting:y to overwrite or any other key to abort.gga install
Installs a git hook that automatically runs code review on every commit.
- Pre-commit hook (default)
- Commit-msg hook
Installs a pre-commit hook. The hook runs Terminal output:
gga run before every commit and blocks the commit if the review fails.# ======== GGA START ======== / # ======== GGA END ========) rather than overwriting the file. If an existing exit 0 statement is found, GGA inserts its block before the final exit so it always runs.
GGA uses
git rev-parse --git-path hooks to locate the hooks directory. This works correctly for both regular repositories and git worktrees.gga uninstall
Removes GGA from the pre-commit and/or commit-msg hooks in your repository.
gga run
Reviews staged files against your AGENTS.md rules by sending them to your configured AI provider. Smart caching is enabled by default — unchanged files that previously passed are skipped.
--no-cache, --ci, --pr-mode, and --diff-only.
gga config
Shows the current configuration, the location of each loaded config file, and the resolved value of every setting.
~/.config/gga/config) first, then project config (.gga), then environment variables. Each layer overrides the previous one.
gga cache <subcommand>
Manages the smart file review cache. See Smart caching for a full explanation of how the cache works.
status— Shows the cache directory, validity, file count, and size for the current project.clear— Clears the cache for the current project only.clear-all— Clears cached data for all projects.
gga version
Shows the installed version of gga.
The update check is skipped for dev builds (when
VERSION=dev). It has a 2-second timeout and fails silently if the network is unavailable.Bypass review
To commit without running the pre-commit hook, use--no-verify: