claude hooks

100 tagged claude, measured the same way as everything else here.

Browse within: claude-code-plugin 414cli 178ai-tools 133agents 106ai-coding 101LLM 96agentic-coding 94agentic-ai 92cursor 75claude-ai 72agent-memory 63claude-code-hooks 58ai-memory 56claudecode 54

SessionStart

01

code-yeongyu/lazycodex

Hook Claude Code

Runs when a session starts, executing cli.js via node. From code-yeongyu/lazycodex.

not rated 3.8k +31 changed 2d ago A tokens not measured original MIT

BeforeTool

02

ooples/token-optimizer-mcp

Hook Claude Code

One of 4 in hooks.json

Runs on the BeforeTool event for read_file, search_file_content, glob, replace, write_file and run_shell_command tool calls, executing pre-tool.mjs via node. From ooples/token-optimizer-mcp.

not rated 548 +7 yesterday A tokens not measured original MIT

PreToolUse

03

johnkf5-ops/the-dev-squad

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool, executing approval-gate.sh. From johnkf5-ops/the-dev-squad.

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

SessionStart

04

niclasvestlund-YT/vibepulse

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing session_start.py via python3. From niclasvestlund-YT/vibepulse.

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

PreToolUse

05

arbiterForge/codeArbiter

Hook Claude Code

One of 6 in hooks.json

Runs before the agent uses a tool for Bash, shell_command, exec_command, unified_exec, apply_patch, Write, Edit, spawn_agent, collaborationspawn_agent, multi_agent_v1send_input, multi_agent_v1resume_agent, multi_agent_v1close_agent, collaborationsend_message, collaborationfollowup_task, collaborationinterrupt_agent…

not rated 149 +2 changed 5d ago A tokens not measured AGPL-3.0

SessionStart

06

FareedKhan-dev/claude-code-staff-engineer

Hook Claude Code

Runs when a session starts on startup, clear and compact, executing run-hook.cmd. From FareedKhan-dev/claude-code-staff-engineer.

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

UserPromptSubmit

07

sysnet4admin/_Book_Claude-Code

Hook Claude Code

One of 2 in settings.json

Runs when you submit a prompt, before the agent sees it, running date >> last_prompting_history.log. From sysnet4admin/_Book_Claude-Code.

not rated 82 12d ago A tokens not measured

PreToolUse

08

prakrititz/relayBrain

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Edit, Write, NotebookEdit, Read, Grep and Glob tool calls, executing relay-claude-pre-tool.js and relay-claude-pre-read.js via node (2 commands). From prakrititz/relayBrain.

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

PostToolUse

09

onurpolat05/ALBA

Hook Claude Code

One of 10 in settings.json

Runs after a tool call finishes for Bash tool calls, executing error-logger.sh via bash. From onurpolat05/ALBA.

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

PostCompact

10

IdoCohen560/claude-unity-game-studio

Hook Claude Code

One of 10 in settings.json

Runs after the context is compacted, executing post-compact.sh via bash. From IdoCohen560/claude-unity-game-studio.

not rated 22 3mo ago A tokens not measured copy · 48% MIT

Stop

11

777genius/lintai

Hook Claude Code

One of 2 in settings.json

Runs when the agent finishes a response, running echo done. From 777genius/lintai.

not rated 9 1mo ago A tokens not measured

SessionStart

12

384961890-ui/Pawin-Brain

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts on startup and resume, executing codex-hook-router.js via node. From 384961890-ui/Pawin-Brain.

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

SessionStart

13

michalstrnadel/AgentBar

Hook Claude Code

One of 7 in hooks.json

Runs when a session starts, executing agentbar.js via node. From michalstrnadel/AgentBar.

not rated 9 +1 4d ago A tokens not measured original MIT

PreToolUse

14

lx-wnk/Agent-Context

Hook Claude Code

One of 5 in settings.json

Runs before the agent uses a tool for Write, Edit and MultiEdit tool calls, executing pre-protect-secrets.sh. From lx-wnk/Agent-Context.

not rated 7 changed 17d ago A tokens not measured original MIT

SessionStart

15

nikuscs/codex-cc-plugin

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts on startup and resume, executing session-lifecycle-hook.mjs via node with --show-toplevel. From nikuscs/codex-cc-plugin.

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

SessionStart

16

opencue/cuecards

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, executing check-codex-freshness.sh via bash. From opencue/cuecards.

not rated 6 yesterday A tokens not measured copy · 42% MIT

PostToolUse

17

OshanKHZ/cc-swiss-knife

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing typecheck-after-edit.sh, lint-after-edit.sh and format-on-edit.sh via bash (3 commands). From OshanKHZ/cc-swiss-knife.

not rated 5 6mo ago A tokens not measured

AfterAgent

18

UltimaPhoenix/dev-coach

Hook Claude Code

One of 2 in hooks.json

Runs on the AfterAgent event, executing launch.mjs via node. From UltimaPhoenix/dev-coach.

not rated 5 2d ago A tokens not measured AGPL-3.0

PreToolUse

19

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 2d ago A tokens not measured original MIT

PostToolUse

20

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 4mo ago A tokens not measured original MIT

UserPromptSubmit

21

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 1mo ago A tokens not measured

PreToolUse

22

stempeck/agentfactory

Hook Claude Code

One of 10 in settings.json

Runs before the agent uses a tool for Bash, Write, Edit, Task and Agent tool calls, running an inline shell check (2 commands). From stempeck/agentfactory.

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

PreToolUse

23

erniker/understudy

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing guardrails-check.sh. From erniker/understudy.

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

SessionStart

24

purmemo-ai/purmemo-mcp

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts, executing purmemo_recall.js via node. From purmemo-ai/purmemo-mcp.

not rated 2 10d ago A tokens not measured

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: