Hooks

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

SessionStart

217

Gentleman-Programming/engram

Hook

Part of engram

Runs when a session starts on startup, clear and compact, executing session-start.sh and post-compaction.sh (2 commands). From Gentleman-Programming/engram.

6.3k +34 yesterday A tokens not measured original MIT

UserPromptSubmit

218

Gentleman-Programming/engram

Hook

Part of engram

Runs when you submit a prompt, before the agent sees it, executing user-prompt-submit.sh. From Gentleman-Programming/engram.

6.3k +34 yesterday A tokens not measured original MIT

SubagentStop

219

Gentleman-Programming/engram

Hook

Part of engram

Runs when a subagent finishes, executing subagent-stop.sh. From Gentleman-Programming/engram.

6.3k +34 yesterday A tokens not measured copy · 50% MIT

SessionStart

220

czlonkowski/n8n-skills

Hook

Part of n8n-skills

Runs when a session starts on startup, resume, clear and compact, executing session-start.sh. From czlonkowski/n8n-skills.

6.2k +11 4d ago A tokens not measured original MIT

PreToolUse

221

czlonkowski/n8n-skills

Hook

Part of n8n-skills

Runs before the agent uses a tool for ^mcp__.*__get_node$, ^mcp__.*__n8n_create_workflow$, ^mcp__.*__(n8n_update_partial_workflow, n8n_update_full_workflow)$, ^mcp__.*__(validate_workflow, n8n_validate_workflow)$, ^mcp__.*__n8n_test_workflow$, ^mcp__.*__n8n_instances$ and ^mcp__.*__n8n_manage_credentials$ tool calls…

6.2k +11 4d ago A tokens not measured original MIT

PostToolUse

222

czlonkowski/n8n-skills

Hook

Part of n8n-skills

Runs after a tool call finishes for ^mcp__.*__validate_workflow$ tool calls, executing validate-workflow.sh. From czlonkowski/n8n-skills.

6.2k +11 4d ago A tokens not measured original MIT

PostToolUse

223

UfoMiao/zcf

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit, MultiEdit and Write tool calls, executing eslint-hook.ts with --show-toplevel. From UfoMiao/zcf.

6.1k +2 3d ago A tokens not measured original MIT

UserPromptSubmit

224

ChrisWiles/claude-code-showcase

Hook Claude Code

One of 4 in settings.json

Runs when you submit a prompt, before the agent sees it, executing skill-eval.sh. From ChrisWiles/claude-code-showcase.

6.0k +14 7mo ago A tokens not measured

PreToolUse

225

ChrisWiles/claude-code-showcase

Hook Claude Code

One of 4 in settings.json

Runs before the agent uses a tool for Edit, MultiEdit and Write tool calls, running # Prevent editing on main branch. From ChrisWiles/claude-code-showcase.

6.0k +14 7mo ago A tokens not measured

PostToolUse

226

ChrisWiles/claude-code-showcase

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Edit, MultiEdit, Write, Edit, MultiEdit, Write, Edit, MultiEdit, Write, Edit, MultiEdit and Write tool calls, running # Auto-format JS/TS files with Prettier (or Biome) (4 commands). From ChrisWiles/claude-code-showcase.

6.0k +14 7mo ago A tokens not measured

PostToolUse

227

Azure/azure-sdk-for-net

Hook ✓ vendor

Runs after a tool call finishes, executing azsdk_tool_telemetry.ps1 via pwsh. From Azure/azure-sdk-for-net.

6.0k +2 yesterday A tokens not measured original MIT

PreCompact

228

drona23/claude-token-efficient

Hook Claude Code

One of 2 in settings.json

Runs before the context is compacted, running an inline shell check. From drona23/claude-token-efficient.

6.0k +13 2mo ago A tokens not measured original MIT

PreToolUse

229

uditgoenka/autoresearch

Hook

Part of claude-plugin

Runs before the agent uses a tool for Write, Bash, Glob, Grep, Read and Edit tool calls, executing node-hook-runner.sh via bash (7 commands). From uditgoenka/autoresearch.

6.0k +9 21d ago A tokens not measured original MIT

UserPromptSubmit

230

uditgoenka/autoresearch

Hook

Part of claude-plugin

Runs when you submit a prompt, before the agent sees it, executing node-hook-runner.sh via bash (3 commands). From uditgoenka/autoresearch.

6.0k +9 21d ago A tokens not measured original MIT

SessionStart

232

FlorianBruniaux/claude-code-ultimate-guide

Hook Claude Code

One of 7 in settings.json

Runs when a session starts, executing rtk-baseline.sh. From FlorianBruniaux/claude-code-ultimate-guide.

5.9k +10 2d ago A tokens not measured CC-BY-SA-4.0

PreToolUse

233

FlorianBruniaux/claude-code-ultimate-guide

Hook Claude Code

One of 7 in settings.json

Runs before the agent uses a tool for Bash, Edit and Write tool calls, executing dangerous-actions-blocker.sh via bash. From FlorianBruniaux/claude-code-ultimate-guide.

5.9k +10 2d ago A tokens not measured CC-BY-SA-4.0

PostToolUse

234

FlorianBruniaux/claude-code-ultimate-guide

Hook Claude Code

One of 7 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, executing auto-format.sh, version-consistency-check.sh and activity-logger.sh via bash (3 commands). From FlorianBruniaux/claude-code-ultimate-guide.

5.9k +10 2d ago A tokens not measured CC-BY-SA-4.0

UserPromptSubmit

235

Q00/ouroboros

Hook Claude Code

Part of ouroboros

Runs when you submit a prompt, before the agent sees it, executing keyword-detector.py. From Q00/ouroboros.

5.7k +17 yesterday A tokens not measured original MIT

PostToolUse

236

Q00/ouroboros

Hook Claude Code

Part of ouroboros

Runs after a tool call finishes for Write and Edit tool calls, executing drift-monitor.py. From Q00/ouroboros.

5.7k +17 yesterday A tokens not measured copy · 86% MIT

SessionStart

237

Q00/ouroboros

Hook

Part of ouroboros

Runs when a session starts, executing session-start.py. From Q00/ouroboros.

5.7k +17 yesterday A tokens not measured copy · 91% MIT

SessionStart

238

potpie-ai/potpie

Hook

Part of potpie

Runs when a session starts, executing potpie_nudge.py via python3 with --harness and --event. From potpie-ai/potpie.

5.7k +7 2d ago A tokens not measured original Apache-2.0

PreToolUse

239

potpie-ai/potpie

Hook

Part of potpie

Runs before the agent uses a tool for Write, Edit, MultiEdit, NotebookEdit and Bash tool calls, executing potpie_nudge.py via python3 with --harness and --event (2 commands). From potpie-ai/potpie.

5.7k +7 2d ago A tokens not measured original Apache-2.0

PostToolUse

240

potpie-ai/potpie

Hook

Part of potpie

Runs after a tool call finishes for Bash tool calls, executing potpie_nudge.py via python3 with --harness and --event. From potpie-ai/potpie.

5.7k +7 2d ago A tokens not measured original 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: