Hooks

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

SessionStart

97

vectorize-io/hindsight

Hook

Runs when a session starts, executing session_start.py via python3. From vectorize-io/hindsight.

22k 2d ago A tokens not measured original MIT

UserPromptSubmit

98

vectorize-io/hindsight

Hook

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

22k 2d ago A tokens not measured original MIT

Stop

99

vectorize-io/hindsight

Hook

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

22k 2d ago A tokens not measured original MIT

PreToolUse

100

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

SessionStart

101

dyad-sh/dyad

Hook Claude Code

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

21k 2d ago A tokens not measured

PostToolUse

102

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 15d ago A tokens not measured GPL-3.0

PreToolUse

103

mksglu/context-mode

Hook

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 yesterday A tokens not measured

PostToolUse

104

mksglu/context-mode

Hook

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

20k +25 yesterday A tokens not measured

Stop

105

mksglu/context-mode

Hook

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

20k +25 yesterday A tokens not measured

PreToolUse

106

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 3d ago A tokens not measured GPL-3.0

SessionStart

107

tanweai/pua

Hook

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

20k 3d ago A tokens not measured

Stop

108

tanweai/pua

Hook

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

20k 3d ago A tokens not measured

PreToolUse

109

tanweai/pua

Hook

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

PostToolUse

110

guillaumemeyer/watermarks-remover

Hook

Runs after a tool call finishes for Write, Edit, MultiEdit and NotebookEdit tool calls, running node. From guillaumemeyer/watermarks-remover.

19k 2d ago A tokens not measured original MIT

PreToolUse

111

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

PostToolUse

112

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

UserPromptSubmit

113

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

WorktreeCreate

114

ccusage/ccusage

Hook Claude Code

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

18k +35 yesterday A tokens not measured

WorktreeRemove

115

ccusage/ccusage

Hook Claude Code

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

18k +35 yesterday C tokens not measured

PreToolUse

116

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

PostToolUse

117

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

Notification

118

windmill-labs/windmill

Hook Claude Code

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

18k 2d ago A tokens not measured

SessionEnd

119

microsoft/SkillOpt

Hook

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

16k 3d ago A tokens not measured original MIT

SessionStart

120

bradautomates/claude-video

Hook

Runs when a session starts, executing check-setup.sh via bash. From bradautomates/claude-video.

16k 2mo ago A tokens not measured original MIT