PreToolUse
361Hook 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.
Shell commands your agent runs at defined points. A hook is code, so read it before you install it.
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.
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.
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.
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.
Hook Claude Code
Runs when a session starts on startup and resume, executing session-start-turncue.mjs via node. From xuhuawork/turncue.
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.
Hook Claude Code
One of 11 in hooks.json
Runs when a session starts, executing record-hook.mjs via node. From jiangkoumo/agenttape.
Hook Claude Code
Runs when you submit a prompt, before the agent sees it, executing task_assessment_hook.py via python3. From cloudguo123/atomlane.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Hook Claude Code
One of 3 in settings.json
Runs before the agent uses a tool, running an inline shell check. From AnuwatThisuka/edgemem.
Hook Claude Code
One of 4 in hooks.json
Runs when a session starts, running an inline shell check. From teamolimpo/synapsis.
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.
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.
Hook Claude Code
Runs when you submit a prompt, before the agent sees it, executing context.mjs via node. From Johnnybyzhang/post-plan.
Hook Claude Code
One of 2 in hooks.json
Runs before the context is compacted, executing run-hook.sh. From WilliamJnsson/NarratorDB.
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: