Hooks

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

PreToolUse

265

dinhanhthi/coding-friend

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.

not rated 4 today A tokens not measured original MIT

PostToolUse

266

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…

not rated 4 2mo ago A tokens not measured

SessionStart

267

PralhadYadawad/avvarre

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.

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

PostToolUse

268

Obidel/Agentmemory

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.

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

UserPromptSubmit

269

sanyaden/agents0826

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.

not rated 4 2mo ago A tokens not measured

PreToolUse

270

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.

not rated 4 1mo ago A tokens not measured

SessionStart

271

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.

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

Stop

272

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.

not rated 4 6mo ago A tokens not measured

PreCompact

273

rhein1/fable5-codex

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.

not rated 4 5d ago A tokens not measured original MIT

SessionStart

274

nmoinvaz/speedy-gonzales

Hook Claude Code

Runs when a session starts on startup, running bash. From nmoinvaz/speedy-gonzales.

not rated 4 9d ago A tokens not measured

SessionStart

275

stempeck/agentfactory

Hook Claude Code

One of 10 in settings.json

Runs when a session starts, running an inline shell check (3 commands). From stempeck/agentfactory.

not rated 3 changed 1mo ago A tokens not measured AGPL-3.0

PreToolUse

276

ThirdKeyAI/symbi-gemini-cli

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.

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

SessionStart

277

assimovt/trce-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.

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

AfterAgent

278

djinn-soul/gemini-mem

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.

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

BeforeTool

279

tractorjuice/arckit-gemini

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.

not rated 3 4d ago A tokens not measured original MIT

BeforeTool

280

kenryu42/gemini-safety-net

Hook Claude Code

Runs on the BeforeTool event, running npx -y cc-safety-net hook --gemini-cli. From kenryu42/gemini-safety-net.

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

PreToolUse

281

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.

not rated 3 4mo ago A tokens not measured copy · 100% MIT

Stop

282

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.

not rated 3 8mo ago A tokens not measured

PreToolUse

283

an0malous/mcp-custos

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.

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

SessionStart

284

masa-san-jp/Agent-Aiko

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.

not rated 3 yesterday A tokens not measured original MIT

SessionStart

285

OnourImpram/mneme

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, running mneme hook session-start. From OnourImpram/mneme.

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

PreToolUse

286

dxkjuanjuan/juanjuan-team

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.

not rated 3 3mo ago A tokens not measured

SessionStart

287

mrDesign-ww/vault-os

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.

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

PreToolUse

288

mrzhangguoguo/oh-my-workbuddy

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.

not rated 3 4mo 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: