How to Inspect and Remove Hooks in Antigravity on Mac

How to inspect local Google Antigravity hooks in ~/.gemini/config/hooks.json and workspace .agents/hooks.json on macOS and remove unwanted entries.

AI Agent bar · Updated

On macOS, Google Antigravity loads local hooks from your user configuration (~/.gemini/config/hooks.json) and from enabled project workspaces (<workspace>/.agents/hooks.json).

Where Google Antigravity Stores Hooks

  • User global hooks: ~/.gemini/config/hooks.json
  • Project workspace hooks: <workspace>/.agents/hooks.json

Unlike tools that maintain a separate macOS system-managed policy directory (such as Codex, Claude Code, Cursor, Gemini CLI, and GitHub Copilot CLI), AI Agent bar currently inspects Antigravity’s local user and workspace hook files so you can review every configured command in one place.

Step 1: Inspect Antigravity Hooks in AI Agent bar

  1. Download AI Agent bar for Mac (macOS 14+ on Apple Silicon, 14 days of use free with no credit card required).
  2. Click the AI Agent bar icon in your Mac’s menu bar and open the Antigravity tab.
  3. Review each hook group, its trigger events, target command, and the exact config file path (~/.gemini/config/hooks.json or .agents/hooks.json).

Step 2: Remove or Disable Local Antigravity Hooks

  1. Open ~/.gemini/config/hooks.json (or <workspace>/.agents/hooks.json for a project-specific rule) in Finder (Command + Shift + G) or your editor.
  2. Delete the unwanted hook group—or set "enabled": false on that hook group—and save the file.
  3. Restart Google Antigravity so the updated hook configuration takes effect.

Looking for One-Click Admin Hook Removal?

If your Mac also has locked corporate admin hooks deployed by MDM or endpoint software in Codex, Claude Code, Cursor, Gemini CLI, or GitHub Copilot CLI, AI Agent bar detects those system-managed hooks and lets you Force Uninstall them in one click while blocking background restoration.