Hooks

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

SessionStart

265

krusemediallc/arcads-claude-code

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, executing sync-skill.sh and check-context.sh via bash (2 commands). From krusemediallc/arcads-claude-code.

not rated 1.5k +11 1mo ago A tokens not measured original MIT

SessionStart

266

team-reflect/reflect-open

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, running an inline shell check. From team-reflect/reflect-open.

not rated 1.5k +1 today A tokens not measured original MIT

SessionStart

267

yohey-w/multi-agent-shogun

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, executing session_start_hook.sh via bash. From yohey-w/multi-agent-shogun.

not rated 1.4k +1 28d ago A tokens not measured original MIT

Stop

268

yohey-w/multi-agent-shogun

Hook Claude Code

One of 3 in settings.json

Runs when the agent finishes a response, executing stop_hook_inbox.sh via bash. From yohey-w/multi-agent-shogun.

not rated 1.4k +1 28d ago A tokens not measured original MIT

SessionStart

269

dyoshikawa/rulesync

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, running an inline shell check. From dyoshikawa/rulesync.

not rated 1.4k +11 today A tokens not measured original MIT

PostToolUse

270

cloudposse/atmos

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Bash tool calls, executing security-remediate-trigger.sh. From cloudposse/atmos.

not rated 1.4k +4 today A tokens not measured copy · 39% Apache-2.0

PreToolUse

271

cfrs2005/claude-init

Hook Claude Code

One of 5 in hooks.json

Runs before the agent uses a tool for tool == "Bash" && tool_input.command matches "(npm run dev, pnpm( run)? dev, yarn dev, bun run dev)", tool == "Bash" && tool_input.command matches "(npm (install, test), pnpm (install, test), yarn (install, test), bun (install, test), cargo build, make, docker, pytest, vitest…

not rated 1.4k +1 5mo ago A tokens not measured original MIT

PostToolUse

272

cfrs2005/claude-init

Hook Claude Code

One of 5 in hooks.json

Runs after a tool call finishes for tool == "Bash", tool == "Edit" && tool_input.file_path matches "\\.(ts, tsx, js, jsx)$", tool == "Edit" && tool_input.file_path matches "\\.(ts, tsx)$", tool == "Edit" && tool_input.file_path matches "\\.(ts, tsx, js and jsx)$" tool calls, running #!/bin/bash (4 commands). From…

not rated 1.4k +1 5mo ago A tokens not measured original MIT

Stop

273

cfrs2005/claude-init

Hook Claude Code

One of 5 in hooks.json

Runs when the agent finishes a response, executing session-end.sh and evaluate-session.sh (3 commands). From cfrs2005/claude-init.

not rated 1.4k +1 5mo ago A tokens not measured original MIT

SessionStart

274

dohooo/helmor

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on startup and resume, executing set-git-identity.sh via bash. From dohooo/helmor.

not rated 1.3k +1 12d ago A tokens not measured original Apache-2.0

SessionStart

275

coleam00/claude-memory-compiler

Hook Claude Code

One of 4 in settings.json

Runs when a session starts, executing session-start.py via uv. From coleam00/claude-memory-compiler.

not rated 1.3k +1 5mo ago A tokens not measured

PreCompact

276

coleam00/claude-memory-compiler

Hook Claude Code

One of 4 in settings.json

Runs before the context is compacted, executing pre-compact.py via uv. From coleam00/claude-memory-compiler.

not rated 1.3k +1 5mo ago A tokens not measured

SessionEnd

277

coleam00/claude-memory-compiler

Hook Claude Code

One of 4 in settings.json

Runs when a session ends, executing session-end.py via uv. From coleam00/claude-memory-compiler.

not rated 1.3k +1 5mo ago A tokens not measured

SessionStart

278

d-kimuson/claude-code-viewer

Hook Claude Code

One of 4 in settings.json

Runs when a session starts on startup, executing on-session-start.sh. From d-kimuson/claude-code-viewer.

not rated 1.3k +1 16d ago A tokens not measured original MIT

CwdChanged

279

d-kimuson/claude-code-viewer

Hook Claude Code

One of 4 in settings.json

Runs on the CwdChanged event, executing on-cwd-changed.sh. From d-kimuson/claude-code-viewer.

not rated 1.3k +1 16d ago A tokens not measured copy · 45% MIT

FileChanged

280

d-kimuson/claude-code-viewer

Hook Claude Code

One of 4 in settings.json

Runs on the FileChanged event for ^\.envrc$, ^flake\.nix$ and ^flake\.lock$ tool calls, executing on-file-changed.sh. From d-kimuson/claude-code-viewer.

not rated 1.3k +1 16d ago A tokens not measured original MIT

SessionEnd

281

caliber-ai-org/ai-setup

Hook Claude Code

One of 8 in settings.json

Runs when a session ends, running caliber refresh --quiet (2 commands). From caliber-ai-org/ai-setup.

not rated 1.3k +4 1mo ago A tokens not measured original MIT

PostToolUse

282

caliber-ai-org/ai-setup

Hook Claude Code

One of 8 in settings.json

Runs after a tool call finishes, running caliber learn observe. From caliber-ai-org/ai-setup.

not rated 1.3k +4 1mo ago A tokens not measured original MIT

PostToolUseFailure

283

caliber-ai-org/ai-setup

Hook Claude Code

One of 8 in settings.json

Runs when a tool call fails, running caliber learn observe --failure. From caliber-ai-org/ai-setup.

not rated 1.3k +4 1mo ago A tokens not measured original MIT

Stop

284

newrelic/newrelic-ruby-agent

Hook Claude Code

One of 2 in settings.json

Runs when the agent finishes a response, executing check_comments.sh and check_rubocop.sh via bash (2 commands). From newrelic/newrelic-ruby-agent.

not rated 1.2k 6d ago A tokens not measured original Apache-2.0

PostToolUse

285

daaain/claude-code-log

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Write, Edit and MultiEdit tool calls, running uv run ruff format. From daaain/claude-code-log.

not rated 1.2k 4d ago A tokens not measured original MIT

SessionStart

286

modu-ai/moai-adk

Hook Claude Code

One of 21 in settings.json

Runs when a session starts on startup, resume, clear, compact and fork, running bash. From modu-ai/moai-adk.

not rated 1.2k +3 today A tokens not measured original Apache-2.0

PreToolUse

287

modu-ai/moai-adk

Hook Claude Code

One of 21 in settings.json

Runs before the agent uses a tool for Write, Edit, Bash, Agent, Task, SendMessage and TaskStop tool calls, running bash (3 commands). From modu-ai/moai-adk.

not rated 1.2k +3 today A tokens not measured copy · 81% Apache-2.0

ConfigChange

288

modu-ai/moai-adk

Hook Claude Code

One of 21 in settings.json

Runs on the ConfigChange event for project_settings, local_settings and skills tool calls, running bash. From modu-ai/moai-adk.

not rated 1.2k +3 today A tokens not measured copy · 81% Apache-2.0

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: