.gga file in your project root. Options can also be set globally or overridden with environment variables.
Config file format
Rungga init to create a starter .gga file, or create it manually:
.gga
Config options
The AI provider to use for code review. Must be set in at least one config source.Accepted values:
| Value | Provider |
|---|---|
claude | Anthropic Claude Code CLI |
gemini | Google Gemini CLI |
codex | OpenAI Codex CLI |
opencode | OpenCode CLI (default model) |
opencode:<model> | OpenCode CLI with a specific model (e.g. opencode:anthropic/claude-opus-4-5) |
ollama:<model> | Ollama with the specified local model (e.g. ollama:llama3.2) |
lmstudio | LM Studio local server (uses currently loaded model) |
lmstudio:<model> | LM Studio with a specific model (e.g. lmstudio:llama-3.2-3b-instruct) |
github:<model> | GitHub Models API (e.g. github:gpt-4o) |
Comma-separated glob patterns for files to include in the review. Patterns are matched against the file’s full path and its basename.
Comma-separated glob patterns for files to exclude from the review. Applied after
FILE_PATTERNS. No files are excluded by default.Path to the file containing your coding standards. The file contents are sent to the AI as the review ruleset. Relative paths are resolved from the directory where
gga is run.Controls how GGA handles ambiguous AI responses — those that contain neither
STATUS: PASSED nor STATUS: FAILED in the first 15 lines of output.true— treat ambiguous responses as failures (recommended for CI/CD)false— allow the commit to proceed when the response is ambiguous
Maximum number of seconds to wait for the AI provider to respond before timing out. If the timeout is exceeded, GGA exits with an error in strict mode or allows the commit in non-strict mode.
The base branch to diff against when running
gga run --pr-mode. When not set, GGA automatically detects the base branch by checking for main, master, and develop in that order.Configuration hierarchy
GGA merges configuration from three sources. Higher-priority sources override lower ones:| Priority | Source | Location |
|---|---|---|
| 1 (highest) | Environment variables | GGA_PROVIDER, GGA_TIMEOUT |
| 2 | Project config | .gga in the project root |
| 3 (lowest) | Global config | Platform-specific path (see below) |
~/.config/gga/config and override it per project in .gga, or override both with an environment variable for a single run.
Global config file
The global config file follows the same format as.gga. GGA resolves its path based on your platform:
- macOS / Linux
- Windows
XDG_CONFIG_HOME environment variable is set, GGA uses $XDG_CONFIG_HOME/gga/config instead.Environment variable overrides
These environment variables override the corresponding config file settings for a single run or the entire shell session:| Variable | Overrides | Description |
|---|---|---|
GGA_PROVIDER | PROVIDER | Override the AI provider |
GGA_TIMEOUT | TIMEOUT | Override the response timeout (seconds) |
GGA_CI_SOURCE_COMMIT | (none) | Override the source commit in --ci mode (default: HEAD~1) |
GGA_NO_SPINNER | (none) | Set to any value to disable the animated spinner in TTY mode |
GGA_TRACE | (none) | Set to any value to enable internal debug tracing output |
Inspecting the current config
Rungga config to see which config files were found and what values are currently active: