Hooks

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

PreToolUse

361

tsingke/claude-tutorials

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool, executing pre-write.sh and pre-bash.sh (2 commands). From tsingke/claude-tutorials.

not rated 1 5mo ago A tokens not measured

AfterAgent

362

JHdehao/gemini-mem-v3

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterAgent event, executing hook-runner.cjs via node. From JHdehao/gemini-mem-v3.

not rated 1 6mo ago A tokens not measured copy · 100% MIT

SessionStart

363

Blekline/blekline-oss

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts on startup and resume, executing blekline-session-start.sh. From Blekline/blekline-oss.

not rated 1 15d ago A tokens not measured AGPL-3.0

PostToolUseFailure

364

bakalagoin/codinfy-agent-monitor

Hook Claude Code

One of 11 in settings.json

Runs when a tool call fails, executing codinfy-agent-monitor.js via node. From bakalagoin/codinfy-agent-monitor.

not rated 1 4mo ago A tokens not measured

SessionStart

365

xuhuawork/turncue

Hook Claude Code

Runs when a session starts on startup and resume, executing session-start-turncue.mjs via node. From xuhuawork/turncue.

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

PostToolUse

366

Wilsonnijc-bot/NGOPilot

Hook Claude Code

One of 4 in hooks.json

Runs after a tool call finishes for developer__shell and developer__text_editor tool calls, executing announce.sh. From Wilsonnijc-bot/NGOPilot.

not rated 1 2mo ago A tokens not measured

SessionStart

367

jiangkoumo/agenttape

Hook Claude Code

One of 11 in hooks.json

Runs when a session starts, executing record-hook.mjs via node. From jiangkoumo/agenttape.

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

UserPromptSubmit

368

cloudguo123/atomlane

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing task_assessment_hook.py via python3. From cloudguo123/atomlane.

not rated 1 4d ago A tokens not measured original MPL-2.0

PreToolUse

369

aRustyDev/dotfiles

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool, executing pre-write.sh and pre-bash.sh (2 commands). From aRustyDev/dotfiles.

not rated 1 6mo ago A tokens not measured

BeforeTool

370

Checkmarx/cx-agentic-ai

Hook Claude Code

One of 2 in hooks.json

Runs on the BeforeTool event for mcp_.*, WriteFile, write_file, write_.*, replace, mcp_.*, WriteFile, write_file, write_.*, replace and run_shell_command tool calls, executing cx_check.sh, cx_run.sh and cx_record_login.sh via sh with --gemini-cli (4 commands). From Checkmarx/cx-agentic-ai.

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

SessionStart

371

PedroHenrique0713/brain-template

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on compact, executing pos-compactacao.sh. From PedroHenrique0713/brain-template.

not rated 1 25d ago A tokens not measured original MIT

SessionStart

372

zfy258/mem0-mcp-server

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on startup and resume, executing on_session_start.py. From zfy258/mem0-mcp-server.

not rated 0 3mo ago A tokens not measured original Apache-2.0

UserPromptSubmit

373

yukakust/joinmultiplayer.ai

Hook Claude Code

One of 4 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing journal_hook.py via python3. From yukakust/joinmultiplayer.ai.

not rated 0 1mo ago A tokens not measured original MIT

SessionStart

374

FedgeNo/conventions-mcp

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on ^(startup, resume, clear and compact)$, running conventions-mcp hook-session-rules. From FedgeNo/conventions-mcp.

not rated 0 1mo ago A tokens not measured original MIT

SessionStart

375

mp-juns/universal-research-mcp

Hook Claude Code

Runs when a session starts on ^(startup, resume, clear and compact)$, executing session_start.py via python3. From mp-juns/universal-research-mcp.

not rated 0 1mo ago A tokens not measured original MIT

UserPromptSubmit

376

Substrate-memory/codex-substrate-memory

Hook Claude Code

One of 6 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing plugin_runtime.py via python3. From Substrate-memory/codex-substrate-memory.

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

SessionStart

377

TallyUp-Engineering/chat-room

Hook Claude Code

One of 8 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing room.py. From TallyUp-Engineering/chat-room.

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

PreToolUse

378

H234598/codex-master

Hook Claude Code

One of 8 in hooks.json

Runs before the agent uses a tool, executing copilot_bridge.py via python3. From H234598/codex-master.

not rated 0 changed yesterday A tokens not measured

PreToolUse

379

AnuwatThisuka/edgemem

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool, running an inline shell check. From AnuwatThisuka/edgemem.

not rated 0 5mo ago A tokens not measured

SessionStart

380

teamolimpo/synapsis

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, running an inline shell check. From teamolimpo/synapsis.

not rated 0 4mo ago A tokens not measured

PreToolUse

381

igoyetche/paperboy

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing block-dangerous-commands.sh. From igoyetche/paperboy.

not rated 0 5mo ago A tokens not measured

UserPromptSubmit

382

GonzaloTorreras/ai-dememory

Hook Claude Code

One of 4 in hooks.json

Runs when you submit a prompt, before the agent sees it, running ai-dememory hook-event dispatch --client codex --event UserP. From GonzaloTorreras/ai-dememory.

not rated 0 1mo ago A tokens not measured

UserPromptSubmit

383

Johnnybyzhang/post-plan

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing context.mjs via node. From Johnnybyzhang/post-plan.

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

PreCompact

384

WilliamJnsson/NarratorDB

Hook Claude Code

One of 2 in hooks.json

Runs before the context is compacted, executing run-hook.sh. From WilliamJnsson/NarratorDB.

not rated 0 14d 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: