Hooks for Claude Code

6,049 that install into Claude Code. Same mod, same page, whichever agent you run: a URL per tool would split one page into five that compete.

PreToolUse

289

Cocolalilal/LastChat

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash, Read and Glob tool calls, running an inline shell check (2 commands). From Cocolalilal/LastChat.

not rated 346 +4 3d ago A tokens not measured AGPL-3.0

PreToolUse

290

cbcoutinho/nextcloud-mcp-server

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Read tool calls, executing pretool-secrets.sh. From cbcoutinho/nextcloud-mcp-server.

not rated 345 +5 yesterday A tokens not measured AGPL-3.0

PreToolUse

291

receptron/mulmoclaude

Hook Claude Code

One of 2 in settings.json

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

not rated 344 +1 yesterday A tokens not measured original MIT

PreToolUse

292

VasiHemanth/tokentelemetry

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash, Write, Edit, MultiEdit and NotebookEdit tool calls, executing enforce-update-json.py, prepush-claude-review.py and protect-sensitive-files.py (3 commands). From VasiHemanth/tokentelemetry.

not rated 343 +8 yesterday A tokens not measured copy · 50% MIT

PreToolUse

293

Totoro-jam/battle-tested-patterns

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From Totoro-jam/battle-tested-patterns.

not rated 340 +1 yesterday A tokens not measured original MIT

PreCompact

294

dirge-code/dirge

Hook Claude Code

One of 3 in settings.json

Runs before the context is compacted, running bd prime. From dirge-code/dirge.

not rated 339 +2 2d ago A tokens not measured GPL-3.0

PreToolUse

295

Utopai-Research/pai-pro

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Write, Edit and Bash tool calls, executing block_workflow_writes.js and require_background_for_generate.js via node (2 commands). From Utopai-Research/pai-pro.

not rated 337 +2 15d ago A tokens not measured

PreToolUse

296

TheDecipherist/claude-code-mastery-project-starter-kit

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing check-rybbit.sh, check-branch.sh, check-ports.sh, check-e2e.sh and block-dangerous-bash.py via bash (5 commands). From TheDecipherist/claude-code-mastery-project-starter-kit.

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

SessionStart

297

jayminwest/mulch

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, running mulch prime. From jayminwest/mulch.

not rated 336 +4 2d ago A tokens not measured original MIT

Notification

298

kousen/claude-code-training

Hook Claude Code

One of 7 in settings.json

Runs when the agent sends a notification, executing index.ts via bun. From kousen/claude-code-training.

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

UserPromptSubmit

299

vfarcic/dot-ai

Hook Claude Code

One of 2 in settings.json

Runs when you submit a prompt, before the agent sees it, executing prd-done-changelog-reminder.sh. From vfarcic/dot-ai.

not rated 335 2d ago A tokens not measured original MIT

PreToolUse

300

automagik-dev/genie

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing git-safety.sh via bash. From automagik-dev/genie.

not rated 334 changed yesterday A tokens not measured original MIT

Notification

301

harperreed/dotfiles

Hook Claude Code

One of 3 in settings.json

Runs when the agent sends a notification, running osascript -e 'display notification "Claude needs your attent. From harperreed/dotfiles.

not rated 332 5d ago A tokens not measured

PostToolUse

302

scrypster/muninndb

Hook Claude Code

One of 6 in settings.json

Runs after a tool call finishes for Write, Edit, Write, Edit and Bash tool calls, executing drift-guard.mjs and ledger-guard.mjs via node (2 commands). From scrypster/muninndb.

not rated 327 +1 2d ago A tokens not measured

PreToolUse

303

kaanozhan/Frame

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Edit, Write, Grep, Glob, Bash, Edit, Write, NotebookEdit and Bash tool calls, executing spec-hint.js, module-hint.js and docs-hint.js via node (3 commands). From kaanozhan/Frame.

not rated 327 +2 3d ago A tokens not measured original Apache-2.0

PostToolUse

304

pixel-cellar/Claude-Code-Game-Studios

Hook Claude Code

One of 7 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, executing validate-assets.sh via bash. From pixel-cellar/Claude-Code-Game-Studios.

not rated 325 +4 5mo ago A tokens not measured original MIT

PreToolUse

305

2anki/2anki.net

Hook Claude Code

One of 6 in settings.json

Runs before the agent uses a tool for Bash, Write, Edit, NotebookEdit and Read tool calls, executing safety.py, pre-bash-curl-pipe.py, check-commit-message.py, check-merge-status.py, check-browser-attestation.py, check-changelog-on-merge.py, check-duplicate-commit-message.py, pre-push-typecheck.py, pre-push-format.py…

not rated 324 2d ago A tokens not measured

SessionStart

306

newsnowlabs/dockside

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, executing session-start.sh. From newsnowlabs/dockside.

not rated 322 5d ago A tokens not measured copy · 52% Apache-2.0

PostToolUse

307

aayoawoyemi/Ori-Mnemos

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Write tool calls, executing validate.mjs via node. From aayoawoyemi/Ori-Mnemos.

not rated 322 +1 1mo ago A tokens not measured original Apache-2.0

PreToolUse

308

m-xlsea/ruoyi-plus-soybean

Hook Claude Code

One of 9 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing pre-bash-guard.cjs (3 commands). From m-xlsea/ruoyi-plus-soybean.

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

Stop

309

SchroederNathan/clarity

Hook Claude Code

One of 3 in settings.json

Runs when the agent finishes a response, executing trace_upload.py with --agent. From SchroederNathan/clarity.

not rated 316 +4 yesterday A tokens not measured original MIT

SessionStart

310

0rangec3t/Black-cat

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on startup, resume, clear and compact, executing case_ledger.py via python. From 0rangec3t/Black-cat.

not rated 308 +7 1mo ago A tokens not measured

SessionStart

311

Prorise-cool/Claude-Code-Multi-Agent

Hook Claude Code

One of 9 in settings.json

Runs when a session starts, executing session_start.py via uv. From Prorise-cool/Claude-Code-Multi-Agent.

not rated 304 29d ago A tokens not measured

PostToolUse

312

safety-research/automated-w2s-research

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Skill and mcp__* tool calls, executing log_tool_usage.py and sync_to_s3.py (3 commands). From safety-research/automated-w2s-research.

not rated 304 +4 4mo 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: