Hooks

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

PreToolUse

25

headroomlabs-ai/headroom

Hook

Runs before the agent uses a tool for Bash and PowerShell tool calls, running headroom init hook ensure. From headroomlabs-ai/headroom.

68k +94 yesterday A tokens not measured original Apache-2.0

SessionStart

26

cline/cline

Hook Claude Code

Runs when a session starts, executing claude-code-for-web-setup.sh. From cline/cline.

67k +79 today A tokens not measured original Apache-2.0

PreToolUse

27

shanraisshan/claude-code-best-practice

Hook Claude Code

Runs before the agent uses a tool, executing hooks.py via python3. From shanraisshan/claude-code-best-practice.

65k +74 today A tokens not measured original MIT

Setup

28

shanraisshan/claude-code-best-practice

Hook Claude Code

Runs once when the project is set up, executing hooks.py via python3. From shanraisshan/claude-code-best-practice.

65k +74 today A tokens not measured original MIT

FileChanged

29

shanraisshan/claude-code-best-practice

Hook Claude Code

Runs on the FileChanged event for .envrc, .env and .env.local tool calls, executing hooks.py via python3. From shanraisshan/claude-code-best-practice.

65k +74 today A tokens not measured original MIT

PostToolUse

30

pbakaus/impeccable

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing hook.mjs. From pbakaus/impeccable.

65k +538 today A tokens not measured original Apache-2.0

Stop

31

pbakaus/impeccable

Hook Claude Code

Runs when the agent finishes a response, executing hook.mjs. From pbakaus/impeccable.

65k +538 today A tokens not measured copy · 88% Apache-2.0

SessionStart

32

mem0ai/mem0

Hook

Runs when a session starts on startup, resume and compact, executing ensure_deps.sh and on_session_start.sh (2 commands). From mem0ai/mem0.

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

PreToolUse

33

mem0ai/mem0

Hook

Runs before the agent uses a tool for Write, Edit, MultiEdit, mcp__mem0__add_memory, mcp__plugin_mem0_mem0__add_memory, mcp__mem0__search_memories, mcp__plugin_mem0_mem0__search_memories, mcp__mem0__get_memories, mcp__plugin_mem0_mem0__get_memories, mcp__mem0__delete_all_memories…

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

PostToolUse

34

mem0ai/mem0

Hook

Runs after a tool call finishes for mcp__mem0__.*, mcp__plugin_mem0_mem0__.* and Bash tool calls, executing on_post_tool_use.sh and on_bash_output.sh (2 commands). From mem0ai/mem0.

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

PostToolUse

35

tw93/Pake

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing cli.js. From tw93/Pake.

61k 2d ago A tokens not measured GPL-3.0

SessionStart

36

mvanhorn/last30days-skill

Hook

Runs when a session starts, executing check-config.sh via bash. From mvanhorn/last30days-skill.

60k 5d ago A tokens not measured original MIT

Stop

37

MemPalace/mempalace

Hook Claude Code

Runs when the agent finishes a response, executing mempal-stop-hook.sh via bash. From MemPalace/mempalace.

59k +10 yesterday A tokens not measured copy · 55% MIT

SessionEnd

38

MemPalace/mempalace

Hook Claude Code

Runs when a session ends, executing mempal-session-end-hook.sh via bash. From MemPalace/mempalace.

59k +10 yesterday A tokens not measured copy · 58% MIT

PreCompact

39

MemPalace/mempalace

Hook Claude Code

Runs before the context is compacted, executing mempal-precompact-hook.sh via bash. From MemPalace/mempalace.

59k +10 yesterday A tokens not measured copy · 63% MIT

PreToolUse

40

diegosouzapw/OmniRoute

Hook Claude Code

Runs before the agent uses a tool for Skill, Read, Edit and Bash tool calls, executing log-tool.mjs via node. From diegosouzapw/OmniRoute.

59k yesterday A tokens not measured original MIT

SessionStart

41

TryGhost/Ghost

Hook Claude Code

Runs when a session starts, executing nvm-path.sh via bash. From TryGhost/Ghost.

55k +8 today A tokens not measured original MIT

SessionStart

42

aaif-goose/goose

Hook

Runs when a session starts, executing announce.sh. From aaif-goose/goose.

54k +42 yesterday A tokens not measured original Apache-2.0

UserPromptSubmit

43

aaif-goose/goose

Hook

Runs when you submit a prompt, before the agent sees it, executing announce.sh. From aaif-goose/goose.

54k +42 yesterday A tokens not measured original Apache-2.0

PostToolUse

44

aaif-goose/goose

Hook

Runs after a tool call finishes for developer__shell and developer__text_editor tool calls, executing announce.sh. From aaif-goose/goose.

54k +42 yesterday A tokens not measured original Apache-2.0

PostToolUse

45

jesseduffield/lazydocker

Hook Claude Code

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

53k 4mo ago A tokens not measured original MIT

SessionStart

46

anthropics/claude-cookbooks

Hook Claude Code

Runs when a session starts, executing session-start.sh. From anthropics/claude-cookbooks.

52k +47 3d ago A tokens not measured original MIT

PreToolUse

47

anthropics/claude-cookbooks

Hook Claude Code

Runs before the agent uses a tool, executing pre-write.sh and pre-bash.sh (2 commands). From anthropics/claude-cookbooks.

52k +47 3d ago A tokens not measured original MIT

Stop

48

tldraw/tldraw

Hook Claude Code

Runs when the agent finishes a response, running an inline shell check. From tldraw/tldraw.

50k 4d ago A tokens not measured