Source: https://aiagentbar.com/zh-CN/guides/
Language: zh-CN

# AI 工具 Hook 检查与卸载指南

涵盖 Codex、Claude Code、Cursor、Gemini CLI、Windsurf、Copilot、Antigravity、Devin 等主流 AI 工具的 Hook 检查与一键卸载指南。

AI Agent bar · 更新日期 2026年11月19日

在 macOS 上，AI 编程工具通常会从用户主目录、工作区或系统策略目录加载后台 Hook。通过以下各工具指南，可了解对应配置文件位置、如何区分管理员下发与个人配置，以及如何安全卸载并防止自动恢复。

## 各 AI 工具 Hook 卸载指南

*   [如何在 Mac 上卸载 OpenAI Codex 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-codex/>)
*   [如何在 Mac 上卸载 Claude Code 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-claude/>)
*   [如何在 Mac 上卸载 Cursor 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-cursor/>)
*   [如何在 Mac 上卸载 Gemini CLI 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-gemini-cli/>)
*   [如何在 Mac 上卸载 Windsurf 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-windsurf/>)
*   [如何在 Mac 上卸载 GitHub Copilot CLI 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-copilot/>)
*   [如何在 Mac 上卸载 Google Antigravity 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-antigravity/>)
*   [如何在 Mac 上卸载 Devin 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-devin/>)
*   [如何在 Mac 上卸载 AI 编程工具中的 Hook（总览指南）](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-ai-agents/>)

## 产品与参考文档

*   [AI Agent bar 工作原理](<https://aiagentbar.com/zh-CN/how-it-works/>) — 本地扫描、来源归属标注、防恢复保护与隐私机制说明。
*   [安装与激活 AI Agent bar](<https://aiagentbar.com/zh-CN/install/>) — macOS 系统要求、14 天实际使用免费试用与授权码激活步骤。
*   [本地命令行工具（CLI）](<https://aiagentbar.com/zh-CN/cli/>) — 内置可执行文件路径、Shell 别名配置与本地运行边界。
*   [版本发布与校验和验证](<https://aiagentbar.com/zh-CN/releases/>) — 当前正式版 v1.0.19 下载与 SHA-256 校验方法。
*   [关于 AI Agent bar](<https://aiagentbar.com/zh-CN/about/>) — 设计原则与联系方式。

## 使用指南

*   [如何在 Mac 上卸载 OpenAI Codex 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-codex/>)
    
    在 macOS 上查看 OpenAI Codex 已加载的 Hook、区分管理员下发与个人配置，并一键卸载和防止后台自动恢复。
    
*   [如何在 Mac 上卸载 Claude Code 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-claude/>)
    
    在 macOS 上查看 Claude Code 已加载的 Hook、区分管理员下发与个人配置，并一键卸载和防止后台自动恢复。
    
*   [如何在 Mac 上卸载 Cursor 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-cursor/>)
    
    在 macOS 上查看 Cursor 已加载的 Hook、区分管理员下发与个人配置，并一键卸载和防止后台自动恢复。
    
*   [如何在 Mac 上卸载 Gemini CLI 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-gemini-cli/>)
    
    在 macOS 上查看 Gemini CLI 已加载的 Hook、区分管理员下发与个人配置，并一键卸载和防止后台自动恢复。
    
*   [如何在 Mac 上卸载 Windsurf 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-windsurf/>)
    
    在 macOS 上查看 Windsurf 已加载的 Hook、区分管理员下发与个人配置，并一键卸载和防止后台自动恢复。
    
*   [如何在 Mac 上卸载 GitHub Copilot CLI 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-copilot/>)
    
    在 macOS 上查看 GitHub Copilot CLI 已加载的 Hook、区分管理员下发与个人配置，并一键卸载和防止后台自动恢复。
    
*   [如何在 Mac 上查看并移除 Google Antigravity 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-antigravity/>)
    
    在 macOS 上通过 AI Agent bar 检查 ~/.gemini/config/hooks.json 与工作区 .agents/hooks.json 中的本地 Antigravity Hook，并安全移除不需要的规则。
    
*   [如何在 Mac 上卸载 Devin 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-devin/>)
    
    在 macOS 上查看 Devin 已加载的 Hook、区分管理员下发与个人配置，并一键卸载和防止后台自动恢复。
    
*   [如何在 Mac 上卸载 AI 编程工具中的 Hook（总览指南）](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-ai-agents/>)
    
    完整指南：在 macOS 上检查、区分并一键卸载 Codex、Claude Code、Cursor、Gemini CLI、Windsurf、Copilot 等 110+ 款 AI 工具中的隐藏 Hook。
    
*   [AI Agent bar 工作原理](<https://aiagentbar.com/zh-CN/how-it-works/>)
    
    了解 AI Agent bar 如何在本机发现隐藏的 AI 工具 Hook、区分管理员安装与个人配置，并实现一键卸载与本地防恢复保护。
    
*   [在 Mac 上安装与激活 AI Agent bar](<https://aiagentbar.com/zh-CN/install/>)
    
    macOS 系统要求、安装包下载、14 天实际使用免费试用说明以及个人版/团队版授权码激活步骤。
    
*   [AI Agent bar 本地命令行工具（CLI）](<https://aiagentbar.com/zh-CN/cli/>)
    
    了解随 Mac 应用内置的可选本地命令行工具路径、Shell 别名配置以及隐私特性。
    
*   [版本发布与校验和验证](<https://aiagentbar.com/zh-CN/releases/>)
    
    查看 AI Agent bar 当前正式版 v1.0.19 下载地址、更新亮点与 SHA-256 校验方法。
    
*   [关于 AI Agent bar](<https://aiagentbar.com/zh-CN/about/>)
    
    了解 AI Agent bar 的设计初衷：让每位 Mac 用户都能清晰掌握本机 AI 编程工具中挂载的 Hook，并自主控制保留或卸载。
