Hooks

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

BeforeModel

313

pangelini777/oh-my-gem

Hook Claude Code

One of 5 in hooks.json

Runs on the BeforeModel event, executing tmux_manager.py, keyword_detector.py, intent_gate.py and model_router.py via python3 (4 commands). From pangelini777/oh-my-gem.

not rated 2 6mo ago A tokens not measured

PostToolUse

314

ronmkr/PromptBook

Hook Claude Code

One of 4 in hooks.json

Runs after a tool call finishes for Edit, Write, MultiEdit, NotebookEdit and Bash tool calls, executing sg-python.sh via bash (6 commands). From ronmkr/PromptBook.

not rated 2 5mo ago A tokens not measured original Apache-2.0

PostToolUse

315

AlteredCraft/context-engineering-workshop-00

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, executing lint-on-edit.sh via bash. From AlteredCraft/context-engineering-workshop-00.

not rated 2 4mo ago A tokens not measured

PostToolUse

316

swesmith/davila7__claude-code-templates.734b8a50

Hook Claude Code

One of 5 in settings.json

Runs after a tool call finishes for Write, Edit, MultiEdit, Write, Edit, MultiEdit, Write, Edit, MultiEdit, Write, Edit and MultiEdit tool calls, running an inline shell check (4 commands). From swesmith/davila7__claude-code-templates.734b8a50.

not rated 2 10mo ago A tokens not measured copy · 100% MIT

PreToolUse

317

Nivl/Config

Hook Claude Code

One of 5 in settings.json

Runs before the agent uses a tool for Bash, Write, Edit, NotebookEdit, Read, Workflow, Bash, Bash, Bash and Bash tool calls, executing dispatch-bash.py, write-under-roots.py, read-guard.py, deny-review-in-workflow.py, ask-prose-claims.py, require-case-list.py, check-staged-code.py and require-run-log-complete.py (8…

not rated 2 changed 1mo ago A tokens not measured

SessionStart

318

feelepxyz/dotfiles

Hook Claude Code

One of 5 in settings.json

Runs when a session starts, executing herdr-agent-state.sh via bash (2 commands). From feelepxyz/dotfiles.

not rated 2 changed 1mo ago A tokens not measured GPL-3.0

SessionStart

319

sachiniyer/agent-factory

Hook Claude Code

Runs when a session starts, executing af-preflight.sh via bash. From sachiniyer/agent-factory.

not rated 2 +1 yesterday A tokens not measured AGPL-3.0

PostToolUse

320

poseljacob/hq

Hook Claude Code

One of 5 in settings.json

Runs after a tool call finishes for Bash and Write tool calls, executing hook-gate.sh (3 commands). From poseljacob/hq.

not rated 2 7mo ago A tokens not measured

PostToolUse

321

cwoodruff/dotnet-claude-workshop-content

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, executing dotnet-post-write.sh. From cwoodruff/dotnet-claude-workshop-content.

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

SessionStart

322

hovnatan/dotfiles

Hook Claude Code

One of 5 in settings.json

Runs when a session starts on startup and resume, executing focus-out-unattached.sh. From hovnatan/dotfiles.

not rated 2 changed 15d ago A tokens not measured

SessionStart

323

ctt062/dotfiles

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, running chrome-devtools-axi. From ctt062/dotfiles.

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

PreToolUse

324

PabloCoello/dotmesh

Hook Claude Code

One of 6 in settings.json

Runs before the agent uses a tool for Bash, Write, Edit, MultiEdit, NotebookEdit and Skill tool calls, executing block-dangerous-git.sh, remind-review-gate.sh, remind-load-skills.sh and handoff-signal.sh (5 commands). From PabloCoello/dotmesh.

not rated 2 changed 2mo ago A tokens not measured

PostToolUse

325

fschifone/claude-setup-wizard

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Write, Edit and MultiEdit tool calls, executing auto-format.sh via bash. From fschifone/claude-setup-wizard.

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

UserPromptSubmit

326

ferrarimarlon/harness-init

Hook Claude Code

One of 3 in settings.json

Runs when you submit a prompt, before the agent sees it, executing inject-spec.sh and spec-coverage.sh via bash (2 commands). From ferrarimarlon/harness-init.

not rated 2 4mo ago A tokens not measured

UserPromptSubmit

327

marvinleonbutlerii/.dotfiles

Hook Claude Code

One of 4 in settings.json

Runs when you submit a prompt, before the agent sees it, running echo TURN PROTOCOL: Execute skill-sweep gates (session-guard. From marvinleonbutlerii/.dotfiles.

not rated 2 2mo ago A tokens not measured

PreToolUse

328

mike-shevchuk/dotfiles

Hook Claude Code

One of 8 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing danger-guard.ts and agent-state.sh via npx (2 commands). From mike-shevchuk/dotfiles.

not rated 2 changed 1mo ago A tokens not measured

PostToolUse

329

midori-profile/claudelint

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes, executing format.sh. From midori-profile/claudelint.

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

SessionStart

330

hackersandwizards/factory-workshop-excercises

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, running beans prime. From hackersandwizards/factory-workshop-excercises.

not rated 2 3d ago A tokens not measured copy · 100% MIT archived

PreToolUse

331

TrevorEdris/fellowship-of-the-workflows

Hook Claude Code

One of 4 in hooks.json

Runs before the agent uses a tool for Bash, Read, Edit, Write and Bash tool calls, executing block-dangerous-commands.js and protect-secrets.js (2 commands). From TrevorEdris/fellowship-of-the-workflows.

not rated 2 4mo ago A tokens not measured

SessionStart

332

vignesh2027/AI-AGENT-SKILLS

Hook Claude Code

Runs when a session starts, executing session-start.sh via bash. From vignesh2027/AI-AGENT-SKILLS.

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

SessionStart

333

rogue-security/rogue-plugins

Hook Claude Code

One of 10 in hooks.json

Runs when a session starts, executing heartbeat.sh, warn.sh and hook.sh (3 commands). From rogue-security/rogue-plugins.

not rated 2 17d ago A tokens not measured

SessionStart

334

jacexh/skill-workshop

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on startup, resume and clear, executing codex-runtime.js via node. From jacexh/skill-workshop.

not rated 2 yesterday A tokens not measured

PostToolUse

335

qd313/decky-plugin-studio

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Edit, Write, MultiEdit and NotebookEdit tool calls, executing decky-claude-hook.mjs via node with --match, --message and --run (3 commands). From qd313/decky-plugin-studio.

not rated 2 changed 12d ago A tokens not measured

PreToolUse

336

workspace-json/codex-mcp

Hook Claude Code

Runs before the agent uses a tool for ^apply_patch$ tool calls, executing pre-edit-check.mjs via node. From workspace-json/codex-mcp.

not rated 2 2mo ago A tokens not measured original Apache-2.0

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: