Browse 6 published hooks on Shared Context. Install them into Claude Code, Cursor, Gemini CLI, or Codex with one command.
A hook is a shell command the AI tool runs automatically when something happens — before a tool call, after a file edit, before the model responds, when a session starts. Hooks are how teams enforce local conventions without asking the model to remember them.
Auto-formatting on write, linting after edit, blocking commits that skip tests, pinging a Slack channel on session start, checking that sensitive files aren’t touched. Hooks run with your shell’s permissions; only install from sources you trust.
Claude Code has the most mature hook system today; Gemini CLI and Cursor are catching up. Shared Context stores each hook as a `hook.json` file and installs it to the right location for every platform that supports it.
Synchronize resource state at session start
Captures anonymous skill and agent usage metrics for quality improvement
Synchronize resource state automatically at the beginning of a session.
macOS desktop notifications when Claude needs attention or finishes a task. This is a one-click install for the process described at https://code.claude.com/docs/en/terminal-config#notification-hooks
Send notifications to a Slack channel when Claude requires attention or completes a task.
Optimizes permission requests by suggesting tuning after repeated approvals.