ai-agent hooks

298 tagged ai-agent, measured the same way as everything else here.

Browse within: claude-code-plugin 104ai-coding 57agentic-coding 47agent-tracing 35ai-observability 35hooks 33autonomous-agent 31agent-failure 25agent-memory 25agent-reliability 25reliability 25agentic-workflow 23auto-learning 20best-practices 20

SessionStart

25

aayoawoyemi/Ori-Mnemos

Hook Claude Code

One of 4 in settings.json

Runs when a session starts, executing orient.mjs via node. From aayoawoyemi/Ori-Mnemos.

not rated 322 +1 1mo ago A tokens not measured copy · 64% Apache-2.0

PostToolUse

26

aayoawoyemi/Ori-Mnemos

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Write tool calls, executing validate.mjs via node. From aayoawoyemi/Ori-Mnemos.

not rated 322 +1 1mo ago A tokens not measured original Apache-2.0

Stop

27

aayoawoyemi/Ori-Mnemos

Hook Claude Code

One of 4 in settings.json

Runs when the agent finishes a response, executing capture.mjs via node. From aayoawoyemi/Ori-Mnemos.

not rated 322 +1 1mo ago A tokens not measured original Apache-2.0

PostToolUse

28

niaka3dayo/agent-skills-vrc-udon

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, executing doc-sync-reminder.sh. From niaka3dayo/agent-skills-vrc-udon.

not rated 273 16d ago A tokens not measured original MIT

SessionStart

29

HeadyZhang/agent-audit

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, running echo 'Session started'. From HeadyZhang/agent-audit.

not rated 225 +1 2mo ago A tokens not measured original MIT

SessionStart

30

agenticmail/agenticmail

Hook

One of 3 in hooks.json

Runs when a session starts, running agenticmail-codex-mail-hook. From agenticmail/agenticmail.

not rated 212 22d ago A tokens not measured original MIT

UserPromptSubmit

31

agenticmail/agenticmail

Hook

One of 3 in hooks.json

Runs when you submit a prompt, before the agent sees it, running agenticmail-codex-mail-hook. From agenticmail/agenticmail.

not rated 212 22d ago A tokens not measured copy · 89% MIT

Stop

32

agenticmail/agenticmail

Hook

One of 3 in hooks.json

Runs when the agent finishes a response, running agenticmail-codex-mail-hook. From agenticmail/agenticmail.

not rated 212 22d ago A tokens not measured copy · 86% MIT

PostToolUse

33

dcostenco/prism-coder

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Bash tool calls, executing post-commit-repomix.sh via bash. From dcostenco/prism-coder.

not rated 157 yesterday A tokens not measured original Apache-2.0

SessionStart

34

P0lar1zzZ/Ombre-Brain

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on startup and resume, executing session_breath.py via python (2 commands). From P0lar1zzZ/Ombre-Brain.

not rated 154 5mo ago A tokens not measured original MIT

SessionStart

35

alecs5am/ralphy

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, executing index.ts via bun. From alecs5am/ralphy.

not rated 129 9d ago A tokens not measured original Apache-2.0

SessionStart

36

001TMF/blatant-why

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts, executing env-loader.js via node. From 001TMF/blatant-why.

not rated 114 18d ago A tokens not measured original MIT

PostToolUse

37

001TMF/blatant-why

Hook Claude Code

One of 3 in hooks.json

Runs after a tool call finishes, executing statusline.js and campaign-tracker.js via node (2 commands). From 001TMF/blatant-why.

not rated 114 18d ago A tokens not measured original MIT

PreToolUse

38

001TMF/blatant-why

Hook Claude Code

One of 3 in hooks.json

Runs before the agent uses a tool for mcp__by-adaptyv__adaptyv_confirm_submission tool calls, executing safety-gate.js via node. From 001TMF/blatant-why.

not rated 114 18d ago A tokens not measured original MIT

SessionStart

39

gintasz/unigent

Hook Claude Code

One of 2 in settings.json

Runs when a session starts on startup, executing worktree-bootstrap.sh via bash. From gintasz/unigent.

not rated 104 1mo ago A tokens not measured original MIT

SessionStart

40

X-isdoingreat/canvas-pilot

Hook Claude Code

One of 5 in settings.json

Runs when a session starts, executing check-setup-done.py and inject-context.py via python (2 commands). From X-isdoingreat/canvas-pilot.

not rated 121 1mo ago A tokens not measured AGPL-3.0

PreToolUse

41

X-isdoingreat/canvas-pilot

Hook Claude Code

One of 5 in settings.json

Runs before the agent uses a tool for Bash, Write and Edit tool calls, executing check-public-leak.py, check-presubmit-audit.py and check-no-runner-script.py via python (3 commands). From X-isdoingreat/canvas-pilot.

not rated 121 1mo ago A tokens not measured AGPL-3.0

PostToolUse

42

X-isdoingreat/canvas-pilot

Hook Claude Code

One of 5 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, executing check-result-schema.py, check-spec-grounding.py, check-identifier-grounding.py and check-source-manifest.py via python (4 commands). From X-isdoingreat/canvas-pilot.

not rated 121 1mo ago A tokens not measured AGPL-3.0

PreToolUse

43

ShipWithAI/claude-code-mastery

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing npm-audit-check.sh. From ShipWithAI/claude-code-mastery.

not rated 93 1mo ago A tokens not measured original MIT

PostToolUse

44

ShipWithAI/claude-code-mastery

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Bash tool calls, executing post-install-audit.sh. From ShipWithAI/claude-code-mastery.

not rated 93 1mo ago A tokens not measured original MIT

UserPromptSubmit

45

WingedGuardian/GENesis-AGI

Hook Claude Code

One of 9 in settings.json

Runs when you submit a prompt, before the agent sees it, executing genesis_urgent_alerts.py, review_enforcement_prompt.py, proactive_memory_hook.py, skill_injection_hook.py, contribution_offer_hook.py and session_activity_touch.sh (6 commands). From WingedGuardian/GENesis-AGI.

not rated 93 +1 today A tokens not measured original MIT

PreCompact

46

WingedGuardian/GENesis-AGI

Hook Claude Code

One of 9 in settings.json

Runs before the context is compacted, executing genesis_precompact.py. From WingedGuardian/GENesis-AGI.

not rated 93 +1 today A tokens not measured original MIT

PostToolUseFailure

47

WingedGuardian/GENesis-AGI

Hook Claude Code

One of 9 in settings.json

Runs when a tool call fails for Edit and Write tool calls, executing edit_failure_sensor.py. From WingedGuardian/GENesis-AGI.

not rated 93 +1 today A tokens not measured original MIT

UserPromptSubmit

48

litefuse/litefuse

Hook Claude Code

One of 3 in settings.json

Runs when you submit a prompt, before the agent sees it, executing skill-activation-prompt.sh. From litefuse/litefuse.

not rated 95 +1 today A tokens not measured

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: