open source hooks

60 tagged open source, measured the same way as everything else here.

Browse within: python 9typescript 6AI Safety 5agent-governance 5ai-development 5ai-governance 5china 5codex-plugin 5labor-law 5project-template 5runtime-security 5worker-rights 5

PreToolUse

01

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

PostToolUse

02

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

Notification

03

windmill-labs/windmill

Hook Claude Code

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

18k yesterday A tokens not measured

SessionStart

04

AgriciDaniel/claude-obsidian

Hook

Runs when a session starts on startup, resume, clear and compact, running python3. From AgriciDaniel/claude-obsidian.

14k +90 6d ago A tokens not measured original MIT

Stop

05

AgriciDaniel/claude-obsidian

Hook

Runs when the agent finishes a response, running python3. From AgriciDaniel/claude-obsidian.

14k +90 6d ago A tokens not measured original MIT

SessionStart

06

rommapp/romm

Hook Claude Code

Runs when a session starts, executing setup-code-signing.sh via bash. From rommapp/romm.

12k yesterday A tokens not measured AGPL-3.0

SessionStart

07

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

08

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

UserPromptSubmit

09

vellum-ai/vellum-assistant

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing linear-ticket-reminder.sh. From vellum-ai/vellum-assistant.

1.2k 2d ago A tokens not measured original MIT

SessionStart

10

vellum-ai/vellum-assistant

Hook Claude Code

Runs when a session starts, executing session-docs-primer.sh. From vellum-ai/vellum-assistant.

1.2k 2d ago A tokens not measured copy · 53% MIT

PostToolUse

11

operately/operately

Hook Claude Code

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

545 3d ago A tokens not measured

PostToolUse

12

AgriciDaniel/claude-repurpose

Hook

Runs after a tool call finishes for Write tool calls, running an inline shell check. From AgriciDaniel/claude-repurpose.

141 4mo ago A tokens not measured original MIT

SessionStart

13

codesstar/loci

Hook Claude Code

Runs when a session starts on startup, resume, clear, compact and fork, executing daily-context.js via node. From codesstar/loci.

99 2d ago A tokens not measured original MIT

PostToolUse

14

codesstar/loci

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, executing on-file-change.js via node. From codesstar/loci.

99 2d ago A tokens not measured original MIT

UserPromptSubmit

15

90le/worker-rights-cn

Hook

Runs when you submit a prompt, before the agent sees it, executing claude_hook_adapter.py via python3 with --event, --audit and --db-path. From 90le/worker-rights-cn.

91 20d ago A tokens not measured original Apache-2.0

PreToolUse

16

90le/worker-rights-cn

Hook

Runs before the agent uses a tool, executing claude_hook_adapter.py via python3 with --event, --audit and --db-path. From 90le/worker-rights-cn.

91 20d ago A tokens not measured original Apache-2.0

PostToolUse

17

90le/worker-rights-cn

Hook

Runs after a tool call finishes, executing claude_hook_adapter.py via python3 with --event, --audit and --db-path. From 90le/worker-rights-cn.

91 20d ago A tokens not measured original Apache-2.0

SessionStart

18

Naridon-Inc/aura

Hook

Runs when a session starts on startup and resume, executing on-session-start.sh. From Naridon-Inc/aura.

45 11d ago A tokens not measured original Apache-2.0

Stop

19

Naridon-Inc/aura

Hook

Runs when the agent finishes a response, executing on-stop.sh. From Naridon-Inc/aura.

45 11d ago A tokens not measured copy · 55% Apache-2.0

Notification

20

Naridon-Inc/aura

Hook

Runs when the agent sends a notification for idle_prompt tool calls, executing on-notification.sh. From Naridon-Inc/aura.

45 11d ago A tokens not measured original Apache-2.0

PreToolUse

21

felipeluissalgueiro/hive

Hook Claude Code

Runs before the agent uses a tool, executing pretooluse-session-branch.py via python. From felipeluissalgueiro/hive.

21 2mo ago A tokens not measured original MIT

Stop

22

felipeluissalgueiro/hive

Hook Claude Code

Runs when the agent finishes a response, executing stop-session-branch.py and stop-state-check.py via python (2 commands). From felipeluissalgueiro/hive.

21 2mo ago A tokens not measured original MIT

UserPromptSubmit

23

felipeluissalgueiro/hive

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing userprompt-squad-routing.py and userprompt-knowledge-check.py via python (2 commands). From felipeluissalgueiro/hive.

21 2mo ago A tokens not measured original MIT

UserPromptSubmit

24

hyun06000/AIL-old

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing stoa_inbox_check.sh via bash. From hyun06000/AIL-old.

11 3mo ago A tokens not measured original Apache-2.0