Hooks

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

Stop

169

daeryundf2-prog/LAZYANTIGRAVITY

Hook Claude Code

Runs when the agent finishes a response, executing cli.js via node. From daeryundf2-prog/LAZYANTIGRAVITY.

not rated 14 3d ago A tokens not measured original

SessionStart

170

nrwl/polygraph-skills

Hook Claude Code

One of 5 in hooks.json

Runs when a session starts on startup, resume and compact, executing reinject-polygraph-context.mjs and record-session-mapping.mjs via node (2 commands). From nrwl/polygraph-skills.

not rated 14 1mo ago A tokens not measured

SessionStart

171

2kDarki/codex-mem

Hook Claude Code

One of 6 in hooks.json

Runs when a session starts on startup, clear and compact, executing smart-install.js and bun-runner.js (3 commands). From 2kDarki/codex-mem.

not rated 14 1mo ago A tokens not measured

SessionStart

172

lando-labs/cami

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, running cami source reconcile --check-only --quiet. From lando-labs/cami.

not rated 14 7mo ago A tokens not measured original MIT

PreToolUse

173

Johnny-xuan/TreeWork

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool, executing pre_tool_use.sh. From Johnny-xuan/TreeWork.

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

SessionStart

174

XTSoftwareLabs/neatcontext-plugins

Hook Claude Code

Runs when a session starts on startup, resume, clear and compact, executing session-start.mjs via node. From XTSoftwareLabs/neatcontext-plugins.

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

SessionStart

175

Rockielab/rockie-nugget

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts, executing session-start.sh via bash. From Rockielab/rockie-nugget.

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

PreCompact

176

George-RD/claude-next-level

Hook Claude Code

One of 3 in hooks.json

Runs before the context is compacted, executing checkpoint.sh. From George-RD/claude-next-level.

not rated 13 4mo ago A tokens not measured

PreToolUse

177

troykelly/codex-skills

Hook Claude Code

One of 4 in hooks.json

Runs before the agent uses a tool for Bash, mcp__github__create_pull_request and mcp__github__merge_pull_request tool calls, executing validate-pr-creation.sh, validate-local-testing.sh, validate-pr-merge.sh and validate-tests-pass.sh (4 commands). From troykelly/codex-skills.

not rated 12 10mo ago A tokens not measured

PreToolUse

178

rachittshah/cc-codex

Hook Claude Code

Runs before the agent uses a tool, executing auto-delegate.sh. From rachittshah/cc-codex.

not rated 12 1y ago A tokens not measured original Apache-2.0

PreToolUse

179

StringNLPLAB/FlexSQL

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for mcp__snowflake-tools__(query_database, python_interpreter) and Write tool calls, executing require_writing.py and require_revision.py via python3 (2 commands). From StringNLPLAB/FlexSQL.

not rated 12 1mo ago A tokens not measured

SessionStart

180

mutewinter/.dot

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on ^(startup, resume, clear, compact and fork)$, executing herdr-agent-state.sh via bash. From mutewinter/.dot.

not rated 12 changed 1mo ago A tokens not measured

Stop

181

SPHINX998/forged-in-prod

Hook Claude Code

One of 2 in settings.json

Runs when the agent finishes a response, executing worklog_reminder.py via python. From SPHINX998/forged-in-prod.

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

PreToolUse

182

ezBuilder/code-brain

Hook Claude Code

One of 5 in settings.json

Runs before the agent uses a tool for Bash, Read, Edit and Write tool calls, executing block-dangerous.sh, block-secret-commit.sh and protect-secrets.sh (3 commands). From ezBuilder/code-brain.

not rated 11 2mo ago A tokens not measured original Apache-2.0

PreToolUse

183

hzeng-otterai/ai-course-example

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From hzeng-otterai/ai-course-example.

not rated 11 6mo ago A tokens not measured original Apache-2.0

PreToolUse

184

pkyanam/pkstack

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From pkyanam/pkstack.

not rated 11 6mo ago A tokens not measured

PostToolUse

185

ai-plugin-marketplace/template

Hook Claude Code

Runs after a tool call finishes for write_file tool calls, running an inline shell check. From ai-plugin-marketplace/template.

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

BeforeTool

186

thoreinstein/beads-workflow

Hook Claude Code

One of 3 in hooks.json

Runs on the BeforeTool event for write_file and replace tool calls, executing enforce-obsidian-writes.sh. From thoreinstein/beads-workflow.

not rated 11 7mo ago A tokens not measured

SessionStart

187

lhbsaa/embedded-dev-skill

Hook Claude Code

Runs when a session starts on embedded, hardware, driver, LCD, display, ESP32, STM32, RP2040, nRF52, sensor, firmware, SPI, I2C, UART and GPIO, executing session-start.cmd. From lhbsaa/embedded-dev-skill.

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

SessionStart

188

qingye-lab/rootloom

Hook Claude Code

Runs when a session starts on startup, resume and clear, executing run_component_hook.py via python3. From qingye-lab/rootloom.

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

PreToolUse

189

RealManage/dx-training

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash and Edit tool calls, running an inline shell check (2 commands). From RealManage/dx-training.

not rated 10 7d ago A tokens not measured

Stop

190

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 10 9d ago A tokens not measured

PreToolUse

191

hehee9/codex-compressor

Hook Claude Code

One of 4 in hooks.json

Runs before the agent uses a tool for ^new_context$ tool calls, executing launch.py via python3. From hehee9/codex-compressor.

not rated 10 5d ago A tokens not measured original Apache-2.0

PreToolUse

192

JoshJancula/ralph

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Read, Edit, MultiEdit, Glob, Grep, LS and Bash tool calls, executing block-env-reads.sh and rewrite-bash-command.sh (2 commands). From JoshJancula/ralph.

not rated 10 1mo 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: