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

# How to Uninstall Hooks in Gemini CLI on Mac

Step-by-step guide to inspecting, separating personal vs. workplace-managed rules, and uninstalling hooks in Gemini CLI on macOS.

AI Agent bar · Updated November 19, 2026

On macOS, **Gemini CLI** can load background hooks from your home folder, project workspaces, or system-wide management directories—without surfacing those rules inside the chat window.

## How Gemini CLI Hooks Work

Gemini CLI triggers external scripts automatically on lifecycle events including `BeforeTool`, `AfterTool`, `BeforeAgent`, `Notification`. Developers use personal hooks for formatting or completion notifications, while enterprise endpoint software often deploys **Admin Installed** hooks that can observe prompts, shell commands, or file paths.

## Method 1: Uninstall Gemini CLI Hooks in One Click with 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 actual-use days free with no credit card required).
2.  Click the **AI Agent bar** icon in your Mac’s menu bar and open the **Gemini** tab.
3.  Identify whether each hook is **Admin Installed** or **Self Configured**, along with the local app responsible and its **Data Scope**.
4.  Select any unwanted hook and click **Force Uninstall** to remove it immediately and protect your clean setup against silent background restoration.

## Method 2: Manually Remove Self-Configured Gemini CLI Hooks

If you configured a hook yourself in your user or workspace directory, you can edit the configuration directly:

1.  Open `~/.gemini/settings.json` / `.gemini/settings.json` in Finder (`Command + Shift + G`) or your editor.
2.  Remove the unwanted hook entries under the hooks configuration, save the file, and restart Gemini CLI.

## Why Managed Gemini CLI Hooks Reappear After Manual Deletion

When hooks are deployed into system-wide policy directories on a managed Mac, edits inside your home folder will not override them, and background services often restore manually deleted rules. **Force Uninstall** in AI Agent bar handles both layers cleanly from the menu bar.

## Related Guides

*   [How to Uninstall Hooks in AI Agents on Mac (Complete Guide)](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-ai-agents/>)
*   [Install & Activate AI Agent bar](<https://aiagentbar.com/en/install/>)

## 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 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 Inspect and Remove Hooks in Antigravity on Mac](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-antigravity/>)
*   [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/>)
