Hooks

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

UserPromptSubmit

121

vectorize-io/hindsight

Hook

Part of claude-code

Runs when you submit a prompt, before the agent sees it, executing recall.py via python3. From vectorize-io/hindsight.

22k 4d ago A tokens not measured original MIT

Stop

122

vectorize-io/hindsight

Hook

Part of claude-code

Runs when the agent finishes a response, executing retain.py via python3. From vectorize-io/hindsight.

22k 4d ago A tokens not measured original MIT

PreToolUse

123

dyad-sh/dyad

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing gh-permission-hook.py and python-permission-hook.py (2 commands). From dyad-sh/dyad.

21k 3d ago A tokens not measured

SessionStart

124

dyad-sh/dyad

Hook Claude Code

Runs when a session starts, running npm install. From dyad-sh/dyad.

21k 3d ago A tokens not measured

PostToolUse

125

monkeytypegame/monkeytype

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing format-and-lint.sh via bash. From monkeytypegame/monkeytype.

21k 16d ago A tokens not measured GPL-3.0

PreToolUse

126

mksglu/context-mode

Hook

Part of context-mode

Runs before the agent uses a tool for run_command, view_file, grep_search, web_fetch and read_url_content tool calls, running context-mode hook antigravity-cli pretooluse. From mksglu/context-mode.

20k +25 2d ago A tokens not measured

PostToolUse

127

mksglu/context-mode

Hook

Part of context-mode

Runs after a tool call finishes, running context-mode hook antigravity-cli posttooluse. From mksglu/context-mode.

20k +25 2d ago A tokens not measured

Stop

128

mksglu/context-mode

Hook

Part of context-mode

Runs when the agent finishes a response, running context-mode hook antigravity-cli stop. From mksglu/context-mode.

20k +25 2d ago A tokens not measured

PreToolUse

129

Nagi-ovo/voyager

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing format-before-push.sh. From Nagi-ovo/voyager.

20k 4d ago A tokens not measured GPL-3.0

SessionStart

130

tanweai/pua

Hook

Part of pua

Runs when a session starts on compact, startup and resume, executing session-restore.sh via bash (2 commands). From tanweai/pua.

20k 4d ago A tokens not measured

Stop

131

tanweai/pua

Hook

Part of pua

Runs when the agent finishes a response, executing pua-loop-hook.sh and stop-feedback.sh via bash (2 commands). From tanweai/pua.

20k 4d ago A tokens not measured

PreToolUse

132

tanweai/pua

Hook

Part of pua

Runs before the agent uses a tool for Bash, Read, Grep, Glob, Edit, Write, MultiEdit, WebSearch and WebFetch tool calls, executing integrity-guard.sh via bash. From tanweai/pua.

20k 4d ago A tokens not measured

PreToolUse

134

danielmiessler/LifeOS

Hook

Runs before the agent uses a tool for Bash, Skill, Agent, AskUserQuestion, Bash, Write, Edit and MultiEdit tool calls, executing ContextReduction.hook.sh, AgentInvocation.hook.ts, TabState.hook.ts and PreToolGuard.hook.ts (4 commands). From danielmiessler/LifeOS.

19k 19d ago A tokens not measured original MIT

PostToolUse

135

danielmiessler/LifeOS

Hook

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…

19k 19d ago A tokens not measured original MIT

UserPromptSubmit

136

danielmiessler/LifeOS

Hook

Runs when you submit a prompt, before the agent sees it, executing PromptProcessing.hook.ts, SatisfactionCapture.hook.ts, ReminderRouter.hook.ts, VersionDrift.hook.ts, MemoryTurnStart.hook.ts, DriftReminder.hook.ts, AlgorithmNudge.hook.ts, TimeContext.hook.ts and ModelRungGuard.hook.ts (9 commands). From…

19k 19d ago A tokens not measured original MIT

WorktreeCreate

137

ccusage/ccusage

Hook Claude Code

Runs when a git worktree is created, running an inline shell check. From ccusage/ccusage.

18k +51 yesterday A tokens not measured

WorktreeRemove

138

ccusage/ccusage

Hook Claude Code

Runs when a git worktree is removed, running an inline shell check. From ccusage/ccusage.

18k +51 yesterday C tokens not measured

PreToolUse

139

windmill-labs/windmill

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing guard-main-branch.sh, guard-rm-outside-tmp.sh and allow-fileops-in-tmp.sh (3 commands). From windmill-labs/windmill.

18k 3d ago A tokens not measured

PostToolUse

140

windmill-labs/windmill

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing format-frontend.sh and format-backend.sh (2 commands). From windmill-labs/windmill.

18k 3d ago A tokens not measured

Notification

141

windmill-labs/windmill

Hook Claude Code

Runs when the agent sends a notification, executing notify-user.sh. From windmill-labs/windmill.

18k 3d ago A tokens not measured

SessionEnd

143

microsoft/SkillOpt

Hook ✓ vendor

Part of claude-code

Runs when a session ends, executing on-session-end.sh. From microsoft/SkillOpt.

17k +102 4d ago A tokens not measured original MIT

UserPromptSubmit

144

dagster-io/dagster

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, running ERK_HOOK_ID=user-prompt-hook erk exec user-prompt-hook. From dagster-io/dagster.

16k 5d 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: