How it works
AGENTS.md rules file and .gga config. If either changes, all cached results are discarded and every file is re-reviewed.
Cache invalidation
| Change | Effect |
|---|---|
| File content changes | Only that file is re-reviewed |
AGENTS.md changes | All files are re-reviewed |
.gga config changes | All files are re-reviewed |
Cache invalidation happens automatically. You don’t need to clear the cache when you update your rules — GGA detects the change and invalidates everything on the next run.
Cache commands
gga cache status
Shows the cache directory, validity, file count, and size for the current project.
gga cache clear
Clears the cache for the current project only. Other projects’ caches are not affected.
gga cache clear-all
Clears cached data for all projects on this machine.
Bypass cache
To force a review of all staged files, ignoring any cached results:Cache location
The cache is stored under~/.cache/gga/, with one directory per project identified by a hash of the project path.
files/ is named by the content hash of the reviewed file and contains the string PASSED. The metadata file contains a combined hash of AGENTS.md and .gga — if this hash no longer matches the current files, the entire cache directory is considered invalid.
Cache is automatically disabled in
--ci and --pr-mode. It only applies to the default staged-file mode (gga run).