How to Uninstall Hooks in GitHub Copilot CLI on Mac
Step-by-step guide to inspecting, separating personal vs. workplace-managed rules, and uninstalling hooks in GitHub Copilot CLI on macOS.
AI Agent bar · Updated
On macOS, GitHub Copilot 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 GitHub Copilot CLI Hooks Work
GitHub Copilot CLI can run local hooks configured at user, repository, or managed policy level whenever prompts are submitted, tools are invoked, or shell commands execute.
Method 1: Uninstall GitHub Copilot CLI Hooks in One Click with AI Agent bar
- Download AI Agent bar for Mac (macOS 14+ on Apple Silicon, 14 actual-use days free with no credit card required).
- Click the AI Agent bar icon in your Mac’s menu bar and open the Copilot tab.
- Identify whether each hook is Admin Installed or Self Configured, along with the local app responsible and its Data Scope.
- 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 GitHub Copilot CLI Hooks
If you configured a hook yourself in your user or workspace directory, you can edit the configuration directly:
- Open
.github/hooks/*.json/~/.copilot/in Finder (Command + Shift + G) or your editor. - Remove the unwanted hook entries under the hooks configuration, save the file, and restart GitHub Copilot CLI.
Why Managed GitHub Copilot 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.