Hooks

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

PostToolUse

241

mvanhorn/cli-printing-press

Hook Claude Code

Part of cli-printing-press

Runs after a tool call finishes for Write and Edit tool calls, running an inline shell check. From mvanhorn/cli-printing-press.

not rated 4.6k +18 yesterday A tokens not measured original MIT

SessionStart

242

breferrari/obsidian-mind

Hook Claude Code

Part of obsidian

Runs when a session starts on startup, resume, clear and compact, executing session-start.ts via node with --disable-warning and --experimental-strip-types. From breferrari/obsidian-mind.

not rated 4.6k +13 10d ago A tokens not measured original MIT

UserPromptSubmit

243

breferrari/obsidian-mind

Hook Claude Code

Part of obsidian

Runs when you submit a prompt, before the agent sees it, executing classify-message.ts via node with --disable-warning and --experimental-strip-types. From breferrari/obsidian-mind.

not rated 4.6k +13 10d ago A tokens not measured original MIT

PostToolUse

244

breferrari/obsidian-mind

Hook Claude Code

Part of obsidian

Runs after a tool call finishes for Write and Edit tool calls, executing validate-write.ts via node with --disable-warning and --experimental-strip-types. From breferrari/obsidian-mind.

not rated 4.6k +13 10d ago A tokens not measured original MIT

PreToolUse

245

fallow-rs/fallow

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing pre-bash-guard.py with --show-toplevel, --cached, --name-only and --diff-filter (2 commands). From fallow-rs/fallow.

not rated 4.4k +9 yesterday A tokens not measured original MIT

SessionStart

246

fallow-rs/fallow

Hook Claude Code

One of 4 in settings.json

Runs when a session starts, executing scan-hidden-unicode.py via python3 with --mode. From fallow-rs/fallow.

not rated 4.4k +9 yesterday A tokens not measured original MIT

Stop

247

fallow-rs/fallow

Hook Claude Code

One of 4 in settings.json

Runs when the agent finishes a response, executing check-comment-quality.mjs with --show-toplevel, --working-tree and --claude-hook. From fallow-rs/fallow.

not rated 4.4k +9 yesterday A tokens not measured original MIT

Stop

248

facebook/buck2

Hook Claude Code ✓ vendor

One of 2 in settings.json

Runs when the agent finishes a response, running an inline shell check. From facebook/buck2.

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

PostToolUse

250

eugeniughelbur/obsidian-second-brain

Hook

Part of obsidian-second-brain

Runs after a tool call finishes for Write, Edit, MultiEdit, NotebookEdit and create_file tool calls, executing validate-ai-first.sh. From eugeniughelbur/obsidian-second-brain.

not rated 4.3k +30 2d ago A tokens not measured original MIT

PostToolUse

252

archestra-ai/archestra

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Write, Edit and MultiEdit tool calls, running an inline shell check. From archestra-ai/archestra.

not rated 4.2k +4 2d ago A tokens not measured

SessionStart

253

dmno-dev/varlock

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, executing worktree-deps.sh. From dmno-dev/varlock.

not rated 4.2k 4d ago A tokens not measured original MIT

PostToolUse

254

dmno-dev/varlock

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Bash tool calls, executing git-push-notice.sh. From dmno-dev/varlock.

not rated 4.2k 4d ago A tokens not measured original MIT

PostToolUse

255

flox/flox

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, executing format.sh with --edition (18 commands). From flox/flox.

not rated 4.1k +4 yesterday A tokens not measured GPL-2.0

PreCompact

256

nyldn/claude-octopus

Hook Claude Code

Part of octo

Runs before the context is compacted, running bd prime. From nyldn/claude-octopus.

not rated 4.0k +9 today A tokens not measured original MIT

SessionStart

257

nyldn/claude-octopus

Hook Claude Code

Part of octo

Runs when a session starts, running bd prime. From nyldn/claude-octopus.

not rated 4.0k +9 today A tokens not measured original MIT

PostToolUse

258

jihe520/MathModelAgent

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, executing hook_lint.sh via bash with --show-toplevel. From jihe520/MathModelAgent.

not rated 4.0k +82 7d ago A tokens not measured

PreToolUse

259

parcadei/Continuous-Claude-v3

Hook Claude Code

One of 8 in settings.json

Runs before the agent uses a tool for Read, Edit, Write, Read, Grep, Task and Edit tool calls, executing pre-tool-use-broadcast.mjs, path-rules.mjs, tldr-read-enforcer.mjs, smart-search-router.mjs, tldr-context-inject.mjs, arch-context-inject.mjs, file-claims.mjs, edit-context-inject.mjs and signature-helper.mjs via…

not rated 3.9k +2 7mo ago A tokens not measured original MIT

SessionStart

260

parcadei/Continuous-Claude-v3

Hook Claude Code

One of 8 in settings.json

Runs when a session starts on resume, compact, clear, startup and resume, executing persist-project-dir.sh, session_start.sh, session-register.mjs, hook_launcher.py, session-start-continuity.mjs and session-start-tldr-cache.mjs via bash (6 commands). From parcadei/Continuous-Claude-v3.

not rated 3.9k +2 7mo ago A tokens not measured original MIT

UserPromptSubmit

261

parcadei/Continuous-Claude-v3

Hook Claude Code

One of 8 in settings.json

Runs when you submit a prompt, before the agent sees it, executing skill-activation-prompt.mjs, hook_launcher.py, memory-awareness.mjs, impact-refactor.mjs and user_prompt_submit.sh via node (5 commands). From parcadei/Continuous-Claude-v3.

not rated 3.9k +2 7mo ago A tokens not measured original MIT

PreToolUse

262

disler/claude-code-hooks-mastery

Hook Claude Code

One of 14 in settings.json

Runs before the agent uses a tool, executing pre_tool_use.py via uv. From disler/claude-code-hooks-mastery.

not rated 3.9k 6mo ago A tokens not measured

PostToolUse

263

disler/claude-code-hooks-mastery

Hook Claude Code

One of 14 in settings.json

Runs after a tool call finishes, executing post_tool_use.py via uv. From disler/claude-code-hooks-mastery.

not rated 3.9k 6mo ago A tokens not measured

Notification

264

disler/claude-code-hooks-mastery

Hook Claude Code

One of 14 in settings.json

Runs when the agent sends a notification, executing notification.py via uv with --notify. From disler/claude-code-hooks-mastery.

not rated 3.9k 6mo ago A tokens not measured

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: