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

# How to Uninstall Hooks in AI Agents on Mac (Complete Guide)

Complete guide to locating, inspecting, and uninstalling hooks across Codex, Claude Code, Cursor, Gemini CLI, Windsurf, Copilot, Antigravity, Devin, and 110+ AI tools on macOS.

AI Agent bar · Updated November 19, 2026

Modern AI coding assistants can execute background **hooks** loaded from user dotfolders, project repositories, or system-wide policy files—rarely surfacing those entries inside the main chat window.

## What Hooks Do in AI Coding Agents

An AI agent hook is an event-driven rule configured to run external scripts whenever prompts are submitted, tools or terminal commands execute, or files are read or modified. On macOS, hooks typically fall into two categories:

1.  **Self Configured**: Workflow scripts added by you (such as code formatters or completion notifications).
2.  **Admin Installed**: System-level rules placed by enterprise endpoint or device-management software in protected directories outside your home folder.

![Overview of hooks across Codex, Claude, and Cursor in AI Agent bar](<https://aiagentbar.com/optimized/panel-native-overview-720.webp>)

## Hook Configuration Locations by AI Agent

| AI Agent | Common Personal Config Path | One-Click Removal with AI Agent bar |
| --- | --- | --- |
| [OpenAI Codex](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-codex/>) | `~/.codex/hooks.json` | Yes (Personal & Admin Installed) |
| [Claude Code](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-claude/>) | `~/.claude/settings.json` | Yes (Personal & Admin Installed) |
| [Cursor](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-cursor/>) | `~/.cursor/hooks.json` | Yes (Personal & Admin Installed) |
| [Gemini CLI](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-gemini-cli/>) | `~/.gemini/settings.json` | Yes (Personal & Admin Installed) |
| [Windsurf](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-windsurf/>) | `~/.codeium/windsurf/hooks.json` | Yes (Personal & Admin Installed) |
| [GitHub Copilot CLI](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-copilot/>) | `.github/hooks/*.json` · `~/.copilot/` | Yes (Personal & Admin Installed) |
| [Google Antigravity](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-antigravity/>) | `~/.gemini/antigravity/` | Yes (Personal & Admin Installed) |
| [Devin](<https://aiagentbar.com/en/guides/how-to-uninstall-hooks-in-devin/>) | `~/.devin/` | Yes (Personal & Admin Installed) |

Beyond deep hook inspection for these tools, **AI Agent bar** automatically detects over **110 local AI tools** on macOS—including Cline, Kiro, OpenCode, Roo Code, Continue, Aider, Goose, Zed, Warp, and JetBrains AI.

## Why One-Click Force Uninstall Beats Manual Editing

*   **Multi-layered config files**: A single assistant can merge hooks from repository folders, `~/.<tool>/`, and `/Library/Application Support/` or `/etc/` at the same time.
*   **Syntax fragility**: A single invalid comma in a JSON or TOML configuration can break agent startup.
*   **Silent background restore**: Workplace endpoint software often watches system policy paths and restores deleted hooks within seconds.

Download [AI Agent bar for Mac](<https://aiagentbar.com/releases/1.0.25/AIagentbar-macOS-arm64.pkg>) or review [Pricing](<https://aiagentbar.com/en/#pricing>) and the [Desktop CLI reference](<https://aiagentbar.com/en/cli/>).

## 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 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 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/>)
