Source: https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-devin/
Language: zh-TW

# 如何在 Mac 上移除 Devin 中的 Hook

在 macOS 上檢視 Devin 已載入的 Hook、區分管理員安裝與自行設定，並透過一鍵移除防止背景程式自動還原。

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

在 macOS 上，**Devin** 會從使用者目錄、專案工作區或系統層級政策目錄載入背景 Hook，且這些規則通常不會直接顯示於對話視窗中。

## Devin 中的 Hook 運作方式

Devin 支援從個人目錄、專案資料夾或受管系統目錄載入本機 Hook，於送出提示詞、執行命令或呼叫工具時觸發。

## 方法一：使用 AI Agent bar 一鍵移除（推薦）

1.  下載並開啟 [Mac 版 AI Agent bar](<https://aiagentbar.com/releases/1.0.25/AIagentbar-macOS-arm64.pkg>)（支援 macOS 14+ 與 Apple Silicon，免費試用 14 個實際使用日，免信用卡）。
2.  點擊螢幕右上角選單列的 **AI Agent bar** 圖示，切換至 **Devin** 分頁。
3.  檢視每條 Hook 的分類（**管理員安裝**或**自行設定**）、來源應用程式與可存取的資料範圍。
4.  選擇不需要的 Hook 並點擊 **Force Uninstall（強制解除安裝）**，立即移除並防止背景軟體悄悄寫回。

## 方法二：手動移除自行設定的 Hook

若該 Hook 是你親自加入個人目錄或專案設定中，亦可手動修改設定檔：

1.  在 Finder 按 `Command + Shift + G`，檢查 `~/.devin/` / `.devin/`。
2.  刪除不需要的 Hook 項目並儲存檔案，接著重新啟動 Devin。

## 為何企業端點軟體寫入的 Hook 手動刪除後又會出現？

若管理規則位於系統層級的政策目錄，單純修改個人設定檔無法使其失效，手動刪除也常遭背景程式還原。透過 **AI Agent bar** 即可從選單列一次看清來源並徹底移除。

## 相關指南

*   [如何在 Mac 上移除 AI 開發工具中的 Hook（完整指南）](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-ai-agents/>)
*   [在 Mac 上安裝與啟用 AI Agent bar](<https://aiagentbar.com/zh-TW/install/>)

## 延伸閱讀

*   [如何在 Mac 上移除 OpenAI Codex 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-codex/>)
*   [如何在 Mac 上移除 Claude Code 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-claude/>)
*   [如何在 Mac 上移除 Cursor 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-cursor/>)
*   [如何在 Mac 上移除 Gemini CLI 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-gemini-cli/>)
*   [如何在 Mac 上移除 Windsurf 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-windsurf/>)
*   [如何在 Mac 上移除 GitHub Copilot CLI 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-copilot/>)
*   [如何在 Mac 上檢視並移除 Google Antigravity 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-antigravity/>)
*   [如何在 Mac 上移除 AI 開發工具中的 Hook（完整指南）](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-ai-agents/>)
*   [AI Agent bar 運作原理](<https://aiagentbar.com/zh-TW/how-it-works/>)
*   [在 Mac 上安裝與啟用 AI Agent bar](<https://aiagentbar.com/zh-TW/install/>)
*   [AI Agent bar 本機命令列工具（CLI）](<https://aiagentbar.com/zh-TW/cli/>)
*   [版本發佈與雜湊驗證](<https://aiagentbar.com/zh-TW/releases/>)
*   [關於 AI Agent bar](<https://aiagentbar.com/zh-TW/about/>)
