PreToolUse
265Hook Claude Code
One of 8 in hooks.json
Runs before the agent uses a tool for Read, Write, Edit, Glob, Grep and apply_patch tool calls, executing privacy-block.sh and scout-block.cjs (2 commands). From dinhanhthi/coding-friend.
Shell commands your agent runs at defined points. A hook is code, so read it before you install it.
Hook Claude Code
One of 8 in hooks.json
Runs before the agent uses a tool for Read, Write, Edit, Glob, Grep and apply_patch tool calls, executing privacy-block.sh and scout-block.cjs (2 commands). From dinhanhthi/coding-friend.
jSydorowicz21/Universal-AI-Infrustructure
Hook Claude Code
One of 11 in hooks.json
Runs after a tool call finishes for Agent, WebFetch, WebSearch, mcp__.*, ToolSearch, AskUserQuestion, Read, Write, Edit, MultiEdit and Bash tool calls, executing AgentInvocation.hook.ts, Safety.hook.ts, TabState.hook.ts, ISAStaleWriteGuard.hook.ts, ISASync.hook.ts, CheckpointPerISC.hook.ts, ConfigEvalFire.hook.ts…
Hook Claude CodeCodex
One of 3 in hooks.json
Runs when a session starts on startup, resume, clear and compact, executing session-start.cjs and hook-skill-suggest.cjs via node (2 commands). From PralhadYadawad/avvarre.
Hook Claude Code
Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, running echo 'Tip: project-specific conventions should be stored as . From Obidel/Agentmemory.
Hook Claude Code
One of 3 in settings.json
Runs when you submit a prompt, before the agent sees it, executing log_event.sh and auto_inject_memory.sh (2 commands). From sanyaden/agents0826.
RichardHightower/reliable-agentic-lab
Hook Claude Code
One of 2 in hooks.json
Runs before the agent uses a tool, running an inline shell check. From RichardHightower/reliable-agentic-lab.
agallardol/zcode-git-worktrees
Hook Claude Code
One of 3 in hooks.json
Runs when a session starts on startup, resume, clear and compact, executing session-start.mjs via node. From agallardol/zcode-git-worktrees.
Yaomeng1749/claude-code-digital-nomad-config-pack
Hook Claude Code
One of 7 in hooks.json
Runs when the agent finishes a response, executing run-with-flags.js via node (6 commands). From Yaomeng1749/claude-code-digital-nomad-config-pack.
Hook Claude Code
One of 2 in hooks.json
Runs before the context is compacted for ^(manual and auto)$ tool calls, executing codex-context-keeper.mjs via node. From rhein1/fable5-codex.
Hook Claude Code
Runs when a session starts on startup, running bash. From nmoinvaz/speedy-gonzales.
Hook Claude Code
One of 10 in settings.json
Runs when a session starts, running an inline shell check (3 commands). From stempeck/agentfactory.
Hook Claude Code
One of 2 in hooks.json
Runs before the agent uses a tool for write_file, replace, run_shell_command and symbi__* tool calls, executing policy-guard.sh and policy-log.sh (2 commands). From ThirdKeyAI/symbi-gemini-cli.
Hook Claude Code
One of 10 in hooks.json
Runs when a session starts, running trce spool --harness codex-cli --event SessionStart. From assimovt/trce-cli.
Hook Claude Code
One of 3 in hooks.json
Runs on the AfterAgent event, executing hook-runner.cjs via node. From djinn-soul/gemini-mem.
Hook Claude Code
One of 4 in hooks.json
Runs on the BeforeTool event for write_file, write_file and edit_file tool calls, executing validate-filename.py and file-protection.py via python3 (2 commands). From tractorjuice/arckit-gemini.
Hook Claude Code
Runs on the BeforeTool event, running npx -y cc-safety-net hook --gemini-cli. From kenryu42/gemini-safety-net.
lsiyu241-creator/awesome-claude-cookbook
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 lsiyu241-creator/awesome-claude-cookbook.
pgagarinov/awesome-claude-code
Hook Claude Code
One of 2 in settings.json
Runs when the agent finishes a response, executing run_tests.sh via bash. From pgagarinov/awesome-claude-code.
Hook Claude Code
One of 2 in settings.json
Runs before the agent uses a tool for Edit and Write tool calls, running an inline shell check. From an0malous/mcp-custos.
Hook Claude Code
One of 3 in hooks.json
Runs when a session starts, executing aiko-session-context.mjs via node. From masa-san-jp/Agent-Aiko.
Hook Claude Code
One of 4 in hooks.json
Runs when a session starts, running mneme hook session-start. From OnourImpram/mneme.
Hook Claude Code
One of 2 in hooks.json
Runs before the agent uses a tool for Write and Edit tool calls, executing hook-enforce.sh via bash. From dxkjuanjuan/juanjuan-team.
Hook Claude Code
One of 4 in settings.json
Runs when a session starts on startup and resume, executing health-check.py. From mrDesign-ww/vault-os.
Hook Claude Code
One of 3 in hooks.json
Runs before the agent uses a tool for Bash, Agent and DeferExecuteTool tool calls, executing pre-tool-use.mjs via node (3 commands). From mrzhangguoguo/oh-my-workbuddy.
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: