Hooks

Shell commands your agent runs at defined points. A hook is code, so read it before you install it.

Stop

145

oikon48/claudecode-book

Hook Claude Code

One of 4 in settings.json

A completion hook that displays a macOS notification when the coding agent finishes a response. A hook is an automatic action triggered by a specified event.

not rated 24 2mo ago A tokens not measured original MIT

PostToolUseFailure

146

onurpolat05/ALBA

Hook Claude Code

One of 7 in settings.json

Runs when a tool call fails, executing error-logger.sh via bash. From onurpolat05/ALBA.

not rated 23 changed 2d ago A tokens not measured original MIT

Stop

147

kid-sid/codex-spellbook

Hook Claude Code

One of 2 in hooks.json

Runs when the agent finishes a response, executing validate_spellbook.sh. From kid-sid/codex-spellbook.

not rated 22 5mo ago A tokens not measured original MIT

PreToolUse

148

meloncafe/claude-code-hooks

Hook Claude Code

One of 7 in settings.json

Runs before the agent uses a tool for Write, Edit, Update, Bash, WebFetch and WebSearch tool calls, executing token_manager.py, command_restrictor.py, pattern_enforcer.py, no_mock_code.py, secret_scanner.py, timestamp_validator.py and validate_git_commit.py via python3 (11 commands). From meloncafe/claude-code-hooks.

not rated 22 4d ago A tokens not measured original MIT

SessionStart

149

ssimhan/personal-sdlc-template

Hook Claude Code

Runs when a session starts on startup, resume, clear and compact, executing session-start.sh. From ssimhan/personal-sdlc-template.

not rated 22 6mo ago A tokens not measured

SessionStart

150

officialzeroxyz/zero-plugins

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts, executing ensure-runner.sh via bash. From officialzeroxyz/zero-plugins.

not rated 22 +1 1mo ago A tokens not measured

PreToolUse

151

heyJordanParker/dotfiles

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool for Bash tool calls, executing block-git-revert.sh and block-unsafe-delete.sh (2 commands). From heyJordanParker/dotfiles.

not rated 22 changed 1mo ago A tokens not measured

PostToolUse

152

johnend/dots

Hook Claude Code

One of 16 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, executing check-shell-safe-mode.sh, check-local-assignment.sh and hook.sh via bash (3 commands). From johnend/dots.

not rated 22 changed 2d ago A tokens not measured

PreToolUse

153

context-foundry/context-foundry

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Write, Edit and MultiEdit tool calls, executing flowise-pre-write.sh. From context-foundry/context-foundry.

not rated 21 +1 4mo ago A tokens not measured original MIT

SessionStart

154

frabcd/codex-ai-game-studio

Hook Claude Code

One of 9 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing hook_dispatch.py via python3. From frabcd/codex-ai-game-studio.

not rated 21 +1 10d ago A tokens not measured original MIT

PermissionRequest

155

EduardMaghakyan/ipe

Hook Claude Code

Runs when the agent asks permission for an action for ExitPlanMode tool calls, running ipe. From EduardMaghakyan/ipe.

not rated 20 5mo ago A tokens not measured original MIT

UserPromptSubmit

156

bobmatnyc/mcp-skillset

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, running mcp-skillset enrich-hook. From bobmatnyc/mcp-skillset.

not rated 20 8mo ago A tokens not measured original MIT archived

PreToolUse

157

buildinternet/uploads

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From buildinternet/uploads.

not rated 20 +1 yesterday A tokens not measured original Apache-2.0

PreToolUse

158

PacktPublishing/The-Claude-Code-Operating-Model

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing block-dangerous.sh. From PacktPublishing/The-Claude-Code-Operating-Model.

not rated 20 +1 3mo ago A tokens not measured original MIT

SessionStart

159

LYAKAKOY/Hermes-Codex-Plugin

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing session_start.py via python3. From LYAKAKOY/Hermes-Codex-Plugin.

not rated 19 5mo ago A tokens not measured

AfterAgent

160

richardcb/oh-my-gemini

Hook Claude Code

One of 6 in hooks.json

Runs on the AfterAgent event, executing phase-gate.js and ralph-retry.js via node (2 commands). From richardcb/oh-my-gemini.

not rated 18 7mo ago A tokens not measured original MIT

PreToolUse

161

Unibean9/harness-skills

Hook Claude Code

One of 3 in hooks.json

Runs before the agent uses a tool for Write tool calls, executing privacy-block.mjs, scout-block.mjs and descriptive-name.mjs via node with --platform (3 commands). From Unibean9/harness-skills.

not rated 18 changed 1mo ago A tokens not measured

SessionStart

162

tractorjuice/arckit-codex

Hook Claude Code

One of 6 in hooks.json

Runs when a session starts on startup, resume and clear, executing arckit-codex-hook.mjs. From tractorjuice/arckit-codex.

not rated 18 4d ago A tokens not measured

SessionStart

163

Lians-ai/Lians

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on ^(startup, resume and clear)$, executing run_hook.sh. From Lians-ai/Lians.

not rated 17 4d ago A tokens not measured original Apache-2.0

PostToolUse

164

vladm3105/aidoc-flow-framework

Hook Claude Code

One of 2 in hooks.json

Runs after a tool call finishes for Write and Edit tool calls, executing sdd-doc-review.sh. From vladm3105/aidoc-flow-framework.

not rated 17 changed 1mo ago A tokens not measured original MIT

PostToolUse

165

DorShaer/Husk

Hook Claude Code

One of 11 in hooks.json

Runs after a tool call finishes for Agent, WebFetch, WebSearch, AskUserQuestion, Write, Edit and MultiEdit tool calls, executing AgentInvocation.hook.ts, Safety.hook.ts, TabState.hook.ts, ISASync.hook.ts, CheckpointPerISC.hook.ts and EventLogger.hook.ts (11 commands). From DorShaer/Husk.

not rated 16 2d ago A tokens not measured

SessionStart

166

code-yeongyu/codex-rules

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, executing cli.js via node. From code-yeongyu/codex-rules.

not rated 16 2mo ago A tokens not measured original MIT

SessionStart

167

michalstrnadel/AgentBar

Hook Claude Code

One of 7 in hooks.json

Runs when a session starts, executing agentbar.js via node. From michalstrnadel/AgentBar.

not rated 15 +3 8d ago A tokens not measured original MIT

SessionStart

168

thienan230427/codex-github-skill-manager

Hook Claude Code

Runs when a session starts on ^(startup and resume)$, executing session_start.py via python3. From thienan230427/codex-github-skill-manager.

not rated 14 +1 2mo ago A tokens not measured original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: