Hooks

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

UserPromptSubmit

73

rohitg00/agentmemory

Hook

Runs when you submit a prompt, before the agent sees it, executing prompt-submit.mjs via node. From rohitg00/agentmemory.

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

PreToolUse

74

rohitg00/agentmemory

Hook

Runs before the agent uses a tool for Edit, Write, Read, Glob and Grep tool calls, executing pre-tool-use.mjs via node. From rohitg00/agentmemory.

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

PreToolUse

75

mlflow/mlflow

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing enforce-uv.sh and validate_pr_body.py with --directory and --no-project (2 commands). From mlflow/mlflow.

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

Stop

76

mlflow/mlflow

Hook

Runs when the agent finishes a response, executing stop.cjs via node. From mlflow/mlflow.

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

SessionStart

77

PrefectHQ/fastmcp

Hook Claude Code

Runs when a session starts, executing session-init.sh via bash. From PrefectHQ/fastmcp.

27k +29 today A tokens not measured copy · 53% Apache-2.0

SessionStart

78

gastownhall/beads

Hook

Runs when a session starts on startup, resume and clear, running bd codex-hook SessionStart. From gastownhall/beads.

27k +29 yesterday A tokens not measured original MIT

PreCompact

79

gastownhall/beads

Hook

Runs before the context is compacted for manual and auto tool calls, running bd codex-hook PreCompact. From gastownhall/beads.

27k +29 yesterday A tokens not measured original MIT

PostCompact

80

gastownhall/beads

Hook

Runs after the context is compacted for manual and auto tool calls, running bd codex-hook PostCompact. From gastownhall/beads.

27k +29 yesterday A tokens not measured original MIT

PostToolUse

81

vercel/ai

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, running pnpm fix. From vercel/ai.

27k +14 yesterday A tokens not measured

SessionStart

82

OthmanAdi/planning-with-files

Hook

Runs when a session starts on startup, resume, clear and compact, running sh. From OthmanAdi/planning-with-files.

26k 2d ago A tokens not measured original MIT

PreToolUse

84

OthmanAdi/planning-with-files

Hook

Runs before the agent uses a tool for Write, Edit, Bash, Read, Glob and Grep tool calls, running sh. From OthmanAdi/planning-with-files.

26k 2d ago A tokens not measured original MIT

SessionStart

85

ayghri/i-have-adhd

Hook

Runs when a session starts on startup, resume, clear and compact, executing always-on.mjs via node. From ayghri/i-have-adhd.

26k 6d ago A tokens not measured original MIT

SessionStart

86

agentskills/agentskills

Hook Claude Code

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

25k 23d ago A tokens not measured original Apache-2.0

SessionStart

87

Donchitos/Claude-Code-Game-Studios

Hook Claude Code

Runs when a session starts, executing session-start.sh and detect-gaps.sh via bash (2 commands). From Donchitos/Claude-Code-Game-Studios.

25k +26 3mo ago A tokens not measured original MIT

PreToolUse

88

Donchitos/Claude-Code-Game-Studios

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing validate-commit.sh and validate-push.sh via bash (2 commands). From Donchitos/Claude-Code-Game-Studios.

25k +26 3mo ago A tokens not measured original MIT

PostToolUse

89

Donchitos/Claude-Code-Game-Studios

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, executing validate-assets.sh and validate-skill-change.sh via bash (2 commands). From Donchitos/Claude-Code-Game-Studios.

25k +26 3mo ago A tokens not measured original MIT

PreToolUse

90

promptfoo/promptfoo

Hook Claude Code

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

25k 2d ago A tokens not measured original MIT

PostToolUse

91

promptfoo/promptfoo

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, running an inline shell check. From promptfoo/promptfoo.

25k 2d ago A tokens not measured original MIT

SessionStart

93

coleam00/Archon

Hook Claude Code

Runs when a session starts, executing verify-task-list.sh. From coleam00/Archon.

23k 2d ago A tokens not measured original MIT

UserPromptSubmit

94

coleam00/Archon

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, running an inline shell check. From coleam00/Archon.

23k 2d ago A tokens not measured original MIT

SubagentStop

95

coleam00/Archon

Hook Claude Code

Runs when a subagent finishes for rulecheck-agent tool calls, executing slack-notify.sh. From coleam00/Archon.

23k 2d ago A tokens not measured original MIT

UserPromptSubmit

96

appium/appium

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, running codegraph prompt-hook. From appium/appium.

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