Hooks

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

PostCompact

313

tomasz-tomczyk/crit

Hook Claude Code

One of 2 in settings.json

Runs after the context is compacted, running echo 'REMINDERS (things linters dont catch): 1) Verify all s. From tomasz-tomczyk/crit.

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

PostToolUse

314

shanraisshan/codex-cli-best-practice

Hook Claude Code

One of 28 in settings.json

Runs after a tool call finishes, executing hooks.py via python3. From shanraisshan/codex-cli-best-practice.

not rated 981 3mo ago A tokens not measured copy · 77% MIT

PostCompact

315

shanraisshan/codex-cli-best-practice

Hook Claude Code

One of 28 in settings.json

Runs after the context is compacted, executing hooks.py via python3. From shanraisshan/codex-cli-best-practice.

not rated 981 3mo ago A tokens not measured copy · 78% MIT

TaskCompleted

316

shanraisshan/codex-cli-best-practice

Hook Claude Code

One of 28 in settings.json

Runs when a task is marked completed, executing hooks.py via python3. From shanraisshan/codex-cli-best-practice.

not rated 981 3mo ago A tokens not measured copy · 78% MIT

PostToolUse

317

cabloy/cabloy

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, executing contract-loop-gate.ts via node. From cabloy/cabloy.

not rated 971 yesterday A tokens not measured original MIT

PostToolUse

318

iamfakeguru/agent-md

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Write, Edit, MultiEdit, Grep and Bash tool calls, executing post-edit-verify.sh, tdd-check.sh and truncation-check.sh (3 commands). From iamfakeguru/agent-md.

not rated 966 4mo ago A tokens not measured original MIT

Stop

319

iamfakeguru/agent-md

Hook Claude Code

One of 4 in settings.json

Runs when the agent finishes a response, executing stop-verify.sh, state-enforcement.sh and sensory-reminder.sh (3 commands). From iamfakeguru/agent-md.

not rated 966 4mo ago A tokens not measured copy · 47% MIT

PreToolUse

320

iamfakeguru/agent-md

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing block-destructive.sh. From iamfakeguru/agent-md.

not rated 966 4mo ago A tokens not measured original MIT

SubagentStop

321

Caldis/react-zmage

Hook Claude Code

One of 3 in settings.json

Runs when a subagent finishes, running an inline shell check. From Caldis/react-zmage.

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

Stop

322

Caldis/react-zmage

Hook Claude Code

One of 3 in settings.json

Runs when the agent finishes a response, running an inline shell check. From Caldis/react-zmage.

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

SessionStart

323

hmans/beans

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, running beans prime. From hmans/beans.

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

PreCompact

324

hmans/beans

Hook Claude Code

One of 3 in settings.json

Runs before the context is compacted, running beans prime. From hmans/beans.

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

UserPromptSubmit

325

NVIDIA-NeMo/Megatron-Bridge

Hook Claude Code

One of 2 in settings.json

Runs when you submit a prompt, before the agent sees it, running an inline shell check. From NVIDIA-NeMo/Megatron-Bridge.

not rated 900 +3 today A tokens not measured original Apache-2.0

SessionStart

326

Pipelex/pipelex

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, executing session-start.sh. From Pipelex/pipelex.

not rated 852 4d ago A tokens not measured copy · 52% MIT

PostToolUse

327

Pipelex/pipelex

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, executing check-keyword-only.sh. From Pipelex/pipelex.

not rated 852 4d ago A tokens not measured copy · 48% MIT

SessionStart

328

GetStream/stream-chat-react

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on startup, executing copy-env-from-main.sh via bash. From GetStream/stream-chat-react.

not rated 841 6d ago A tokens not measured

SessionStart

329

cyberkaida/reverse-engineering-assistant

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on startup, executing setup-remote-env.sh. From cyberkaida/reverse-engineering-assistant.

not rated 822 yesterday A tokens not measured original Apache-2.0

SubagentStop

330

H-mmer/pentest-agents

Hook Claude Code

One of 6 in settings.json

Runs when a subagent finishes, executing cost_hook.py and chain_pressure_hook.py via uv (2 commands). From H-mmer/pentest-agents.

not rated 815 +2 2mo ago A tokens not measured

SessionStart

331

H-mmer/pentest-agents

Hook Claude Code

One of 6 in settings.json

Runs when a session starts, running an inline shell check. From H-mmer/pentest-agents.

not rated 815 +2 2mo ago A tokens not measured

PreToolUse

332

H-mmer/pentest-agents

Hook Claude Code

One of 6 in settings.json

Runs before the agent uses a tool for Bash, Write and Edit tool calls, executing scope_hook.py, file_path_guard.py, cvss_version_guard.py and validity_guard.py via uv (4 commands). From H-mmer/pentest-agents.

not rated 815 +2 2mo ago A tokens not measured

SessionStart

333

AgentWorkforce/relay

Hook

One of 3 in hooks.json

Runs when a session starts, executing session-start.sh via bash. From AgentWorkforce/relay.

not rated 813 today A tokens not measured original Apache-2.0

UserPromptSubmit

334

AgentWorkforce/relay

Hook

One of 3 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing prompt-inbox.sh via bash. From AgentWorkforce/relay.

not rated 813 today A tokens not measured original Apache-2.0

Stop

335

AgentWorkforce/relay

Hook

One of 3 in hooks.json

Runs when the agent finishes a response, executing stop-inbox.sh via bash. From AgentWorkforce/relay.

not rated 813 today A tokens not measured original Apache-2.0

PostToolUse

336

hoophq/hoop

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, executing gofmt.sh. From hoophq/hoop.

not rated 806 today A tokens not measured copy · 42% 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: