Antigravity CLI (agy) — Google’s successor to the retired Gemini CLI. Hooks are configured
via a hooks.json in the customization root (~/.gemini/config/ globally, .agents/ per
project). The run_command PreToolUse hook decision set is allow / deny / ask /
force_ask. Verified LIVE against v1.1.2 CLI on 2026-07-13 (see HARNESS-BEHAVIORS.md):
The working directory nothing can be inside: a relative path resolved against it lands outside
every workspace, so a command whose safety rests on where its relative paths point is not
approved, while one that names no such path classifies as it would anywhere.
The (cwd, root) a command is classified under. Most harnesses send no distinct project root, so
the root defaults to the cwd, which engages the workspace boundary with the one directory known.
Where the cwd is not the command’s own (HookFormat::cwd_is_the_commands), the reported cwd
stays the workspace root and the command is placed at UNKNOWN_WORKDIR.