Hooks

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

Stop

49

Homebrew/brew

Hook Claude Code

Runs when the agent finishes a response, running ./bin/brew lgtm. From Homebrew/brew.

49k 2d ago A tokens not measured original BSD-2-Clause

PreToolUse

50

abhigyanpatwari/GitNexus

Hook

Runs before the agent uses a tool for Grep, Glob and Bash tool calls, executing gitnexus-hook.js via node. From abhigyanpatwari/GitNexus.

47k +276 today A tokens not measured

PostToolUse

51

abhigyanpatwari/GitNexus

Hook

Runs after a tool call finishes for Bash tool calls, executing gitnexus-hook.js via node. From abhigyanpatwari/GitNexus.

47k +276 today A tokens not measured

PreToolUse

52

streamlit/streamlit

Hook Claude Code

Runs before the agent uses a tool for Skill and Bash tool calls, executing log_agent_metrics.py and pre_bash_redirect.py via uv (2 commands). From streamlit/streamlit.

46k +15 today A tokens not measured original Apache-2.0

PostToolUse

53

streamlit/streamlit

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing post_edit_autofix.sh. From streamlit/streamlit.

46k +15 today A tokens not measured copy · 42% Apache-2.0

SubagentStart

54

streamlit/streamlit

Hook Claude Code

Runs when a subagent starts, executing log_agent_metrics.py via uv. From streamlit/streamlit.

46k +15 today A tokens not measured original Apache-2.0

PostToolUse

55

payloadcms/payload

Hook Claude Code

Runs after a tool call finishes for Write tool calls, executing post-write-format.sh. From payloadcms/payload.

44k 3d ago A tokens not measured original MIT

PreToolUse

56

heygen-com/hyperframes

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, running node -e ". From heygen-com/hyperframes.

43k 2d ago A tokens not measured original Apache-2.0

SessionStart

57

HKUDS/LightRAG

Hook Claude Code

Runs when a session starts, executing session-start.sh. From HKUDS/LightRAG.

39k +30 today A tokens not measured copy · 52% MIT

UserPromptSubmit

58

Yeachan-Heo/oh-my-claudecode

Hook

Runs when you submit a prompt, before the agent sees it, executing run.cjs via node (2 commands). From Yeachan-Heo/oh-my-claudecode.

39k 2d ago A tokens not measured original MIT

SessionStart

59

Yeachan-Heo/oh-my-claudecode

Hook

Runs when a session starts on init and maintenance, executing run.cjs via node (5 commands). From Yeachan-Heo/oh-my-claudecode.

39k 2d ago A tokens not measured original MIT

SessionEnd

60

Yeachan-Heo/oh-my-claudecode

Hook

Runs when a session ends, executing run.cjs via node (2 commands). From Yeachan-Heo/oh-my-claudecode.

39k 2d ago A tokens not measured original MIT

PostToolUse

61

Dokploy/dokploy

Hook Claude Code

Runs after a tool call finishes for EnterWorktree tool calls, executing install-worktree-deps.sh and assign-worktree-port.sh (2 commands). From Dokploy/dokploy.

37k 4d ago A tokens not measured

UserPromptExpansion

62

anthropics/claude-plugins-official

Hook

Runs to expand your prompt before the agent sees it for ^claude-security:claude-security$ tool calls, executing banner_hook.sh via sh. From anthropics/claude-plugins-official.

36k 3d ago A tokens not measured original Apache-2.0

SessionStart

63

volcengine/OpenViking

Hook

Runs when a session starts, executing session-start.mjs via node. From volcengine/OpenViking.

35k +369 today A tokens not measured AGPL-3.0

UserPromptSubmit

64

volcengine/OpenViking

Hook

Runs when you submit a prompt, before the agent sees it, executing auto-recall.mjs via node. From volcengine/OpenViking.

35k +369 today A tokens not measured AGPL-3.0

PostToolUse

65

volcengine/OpenViking

Hook

Runs after a tool call finishes for Read tool calls, executing skill-experience.mjs via node. From volcengine/OpenViking.

35k +369 today A tokens not measured AGPL-3.0

SessionStart

66

Yeachan-Heo/oh-my-codex

Hook

Runs when a session starts on startup, resume and clear, executing codex-native-hook.mjs via node. From Yeachan-Heo/oh-my-codex.

33k 3d ago A tokens not measured

PreToolUse

67

Yeachan-Heo/oh-my-codex

Hook

Runs before the agent uses a tool, executing codex-native-hook.mjs via node. From Yeachan-Heo/oh-my-codex.

33k 3d ago A tokens not measured

Stop

68

Yeachan-Heo/oh-my-codex

Hook

Runs when the agent finishes a response, executing codex-native-hook.mjs via node. From Yeachan-Heo/oh-my-codex.

33k 3d ago A tokens not measured

SessionStart

69

openai/codex-plugin-cc

Hook

Runs when a session starts, executing session-lifecycle-hook.mjs via node. From openai/codex-plugin-cc.

33k 1mo ago A tokens not measured copy · 61% Apache-2.0

SessionEnd

70

openai/codex-plugin-cc

Hook

Runs when a session ends, executing session-lifecycle-hook.mjs via node. From openai/codex-plugin-cc.

33k 1mo ago A tokens not measured original Apache-2.0

Stop

71

openai/codex-plugin-cc

Hook

Runs when the agent finishes a response, executing stop-review-gate-hook.mjs via node. From openai/codex-plugin-cc.

33k 1mo ago A tokens not measured copy · 56% Apache-2.0

SessionStart

72

rohitg00/agentmemory

Hook

Runs when a session starts, executing session-start.mjs via node. From rohitg00/agentmemory.

28k 8d ago A tokens not measured original Apache-2.0