Source: https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-antigravity/
Language: en

# 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 November 20, 2026

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](<https://aiagentbar.com/releases/1.0.25/AIagentbar-macOS-arm64.pkg>) (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.

## Related Guides

*   [How to Uninstall Hooks in Codex on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-codex/>)
*   [How to Uninstall Hooks in Claude Code on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-claude/>)
*   [How to Uninstall Hooks in AI Agents on Mac (Complete Guide)](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-ai-agents/>)

## Keep reading

*   [How to Uninstall Hooks in Codex on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-codex/>)
*   [How to Uninstall Hooks in Claude Code on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-claude/>)
*   [How to Uninstall Hooks in Cursor on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-cursor/>)
*   [How to Uninstall Hooks in Gemini CLI on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-gemini-cli/>)
*   [How to Uninstall Hooks in Windsurf on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-windsurf/>)
*   [How to Uninstall Hooks in GitHub Copilot CLI on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-copilot/>)
*   [How to Uninstall Hooks in Devin on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-devin/>)
*   [How to Uninstall Hooks in AI Agents on Mac (Complete Guide)](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-ai-agents/>)
*   [How AI Agent bar Works](<https://aiagentbar.com/en/how-it-works/>)
*   [Install & Activate AI Agent bar on Mac](<https://aiagentbar.com/en/install/>)
*   [AI Agent bar Desktop CLI](<https://aiagentbar.com/en/cli/>)
*   [Releases & Checksum Verification](<https://aiagentbar.com/en/releases/>)
*   [About AI Agent bar](<https://aiagentbar.com/en/about/>)
