python hooks

228 tagged python, measured the same way as everything else here.

Browse within: knowledge-graph 21agent-tools 15rule-enforcement 12AI Safety 11ai-governance 11agent-memory 9fastapi 9open-source 9gemini 8taskbar 8tkinter 8widget 8Chatbots 7RAG 7

SessionStart

02

astral-sh/uv

Hook Claude Code

Runs when a session starts on startup, executing session-start.sh via bash. From astral-sh/uv.

89k +61 today A tokens not measured original Apache-2.0

PostToolUse

03

astral-sh/uv

Hook Claude Code

Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, executing post-edit-format.py via uv with --frozen. From astral-sh/uv.

89k +61 today A tokens not measured original Apache-2.0

SessionStart

04

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

05

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

06

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

Stop

07

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

08

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

09

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

10

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

11

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

12

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

UserPromptSubmit

13

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

PreToolUse

14

dagster-io/dagster

Hook Claude Code

Runs before the agent uses a tool for ExitPlanMode tool calls, running ERK_HOOK_ID=exit-plan-mode-hook erk exec exit-plan-mode-hook. From dagster-io/dagster.

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

SessionStart

15

basicmachines-co/basic-memory

Hook

Runs when a session starts, executing session_start.py via uv with --quiet and --script. From basicmachines-co/basic-memory.

3.8k yesterday A tokens not measured AGPL-3.0

PreCompact

16

basicmachines-co/basic-memory

Hook

Runs before the context is compacted, executing pre_compact.py via uv with --quiet and --script. From basicmachines-co/basic-memory.

3.8k yesterday A tokens not measured AGPL-3.0

SessionStart

17

cocoindex-io/cocoindex-code

Hook

Runs when a session starts, running an inline shell check. From cocoindex-io/cocoindex-code.

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

PostToolUse

18

cocoindex-io/cocoindex-code

Hook

Runs after a tool call finishes for Edit, Write, MultiEdit and search_replace tool calls, running an inline shell check. From cocoindex-io/cocoindex-code.

2.7k 2d ago A tokens not measured copy · 89% Apache-2.0

SessionStart

19

Dicklesworthstone/mcp_agent_mail

Hook Claude Code

Runs when a session starts, running an inline shell check (2 commands). From Dicklesworthstone/mcp_agent_mail.

2.1k 6d ago A tokens not measured

PreToolUse

20

Dicklesworthstone/mcp_agent_mail

Hook Claude Code

Runs before the agent uses a tool for Edit tool calls, running an inline shell check. From Dicklesworthstone/mcp_agent_mail.

2.1k 6d ago A tokens not measured

PostToolUse

21

Dicklesworthstone/mcp_agent_mail

Hook Claude Code

Runs after a tool call finishes for Bash tool calls, executing check_inbox.sh. From Dicklesworthstone/mcp_agent_mail.

2.1k 6d ago A tokens not measured

Stop

22

nat-n/poethepoet

Hook Claude Code

Runs when the agent finishes a response, running poe format. From nat-n/poethepoet.

2.1k 1mo ago A tokens not measured original MIT

SessionStart

23

kennethreitz/pytheory

Hook Claude Code

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

1.6k 1mo ago A tokens not measured copy · 52% MIT

SessionStart

24

tigerless-labs/autoharness

Hook

Runs when a session starts, running an inline shell check. From tigerless-labs/autoharness.

1.4k 1mo ago A tokens not measured original MIT