ai hooks

88 tagged ai, measured the same way as everything else here.

Browse within: cli 224agents 195LLM 191agentic-ai 165claude-code-plugin 120agentic-workflow 105ai-tools 100agent 92cursor 88chatgpt 64agentic-coding 58ai-coding 56agentic-engineering 54plugin 54

SessionStart

01

google-gemini/gemini-cli

Hook Claude Code ✓ vendor

Runs when a session starts, executing on-start.js via node. From google-gemini/gemini-cli.

not rated 109k +355 today A ✓ AI review tokens not measured original Apache-2.0

PostToolUse

02

aaif-goose/goose

Hook Claude Code

One of 4 in hooks.json

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

not rated 57k +237 3d ago A ✓ AI review tokens not measured original Apache-2.0

UserPromptSubmit

03

danielmiessler/LifeOS

Hook Claude Code

One of 11 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing SessionTitle.hook.ts, PromptProcessing.hook.ts, SatisfactionCapture.hook.ts, VersionDrift.hook.ts, DriftReminder.hook.ts, MemoryTurnStart.hook.ts, AlgorithmNudge.hook.ts, TimeContext.hook.ts, VoiceMode.hook.ts, ModelDriftGuard.hook.ts and…

not rated 20k +500 changed 1mo ago A ✓ AI review tokens not measured original MIT

PostToolUse

04

vercel/streamdown

Hook Claude Code ✓ vendor

One of 2 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, running npx ultracite fix. From vercel/streamdown.

not rated 5.8k +12 2d ago A tokens not measured

SessionStart

05

code-yeongyu/lazycodex

Hook Claude Code

Runs when a session starts, executing cli.js via node. From code-yeongyu/lazycodex.

not rated 4.0k +18 changed yesterday A tokens not measured original MIT

SessionStart

06

rpamis/comet

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing comet-cli-setup.mjs via node. From rpamis/comet.

not rated 3.3k +13 yesterday A tokens not measured original MIT

SessionStart

07

fuxicodex/Fuxi

Hook Claude Code

Runs when a session starts, executing session-start.sh via bash. From fuxicodex/Fuxi.

not rated 3.2k +23 changed 2mo ago A tokens not measured

SessionStart

08

SynkraAI/aiox-core

Hook Claude Code

One of 5 in hooks.json

Runs when a session starts, executing session-start.js via node. From SynkraAI/aiox-core.

not rated 3.2k +2 yesterday A tokens not measured

UserPromptSubmit

09

Gnosil/semantix

Hook Claude Code

One of 2 in hooks.json

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

not rated 816 +1 yesterday A tokens not measured original MIT

BeforeTool

10

ooples/token-optimizer-mcp

Hook Claude Code

One of 4 in hooks.json

Runs on the BeforeTool event for read_file, search_file_content, glob, replace, write_file and run_shell_command tool calls, executing pre-tool.mjs via node. From ooples/token-optimizer-mcp.

not rated 596 +2 changed 18d ago A tokens not measured original MIT

BeforeAgent

11

galdawave/pickle-rick-extension

Hook Claude Code

One of 3 in hooks.json

Runs on the BeforeAgent event, executing dispatch.js via node (2 commands). From galdawave/pickle-rick-extension.

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

SessionStart

12

agenticmail/agenticmail

Hook Claude Code

One of 3 in hooks.json

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

not rated 260 +3 3d ago A tokens not measured original MIT

PreToolUse

13

arbiterForge/codeArbiter

Hook Claude Code

One of 6 in hooks.json

Runs before the agent uses a tool for Bash, shell_command, exec_command, unified_exec, apply_patch, Write, Edit, spawn_agent, collaborationspawn_agent, multi_agent_v1send_input, multi_agent_v1resume_agent, multi_agent_v1close_agent, collaborationsend_message, collaborationfollowup_task, collaborationinterrupt_agent…

not rated 155 changed 1mo ago A tokens not measured AGPL-3.0

SessionStart

14

FareedKhan-dev/claude-code-staff-engineer

Hook Claude Code

Runs when a session starts on startup, clear and compact, executing run-hook.cmd. From FareedKhan-dev/claude-code-staff-engineer.

not rated 96 7mo ago A tokens not measured original MIT

SessionStart

15

vouchdev/vouch

Hook Claude Code

One of 4 in settings.json

Runs when a session starts, running an inline shell check (4 commands). From vouchdev/vouch.

not rated 68 +2 3mo ago A tokens not measured original MIT

Stop

16

DekaPrayoga/AurixAgent

Hook Claude Code

One of 7 in hooks.json

Runs when the agent finishes a response, executing run-with-flags.js via node (6 commands). From DekaPrayoga/AurixAgent.

not rated 62 4mo ago A tokens not measured

SubagentStop

17

jubscodes/get-shit-pretty

Hook Claude Code

One of 3 in hooks.json

Runs when a subagent finishes for gsp-project-designer, gsp-project-researcher, gsp-project-critic, gsp-brand-creative-director, gsp-brand-engineer, gsp-project-builder, gsp-project-reviewer, gsp-accessibility-auditor, gsp-brand-auditor, gsp-brand-researcher, gsp-brand-strategist, gsp-polisher and gsp-brand-coherence…

not rated 59 +1 5mo ago A tokens not measured original MIT

PostToolUse

18

caretive-ai/project-careti

Hook Claude Code

One of 2 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, executing sync-agent-rules.js via node. From caretive-ai/project-careti.

not rated 47 4mo ago A tokens not measured original Apache-2.0

PostToolUse

19

aleclindz/seo-skill-bench

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Write and Edit tool calls, running an inline shell check. From aleclindz/seo-skill-bench.

not rated 43 5d ago A tokens not measured original MIT

Stop

20

777genius/lintai

Hook Claude Code

One of 2 in settings.json

Runs when the agent finishes a response, running echo done. From 777genius/lintai.

not rated 11 +1 1mo ago A tokens not measured

UserPromptSubmit

21

agentproto/ts

Hook Claude Code

One of 3 in settings.json

Runs when you submit a prompt, before the agent sees it, executing user-prompt-submit.mjs. From agentproto/ts.

not rated 11 +1 today A tokens not measured original Apache-2.0

PreToolUse

22

RealManage/dx-training

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash and Edit tool calls, running an inline shell check (2 commands). From RealManage/dx-training.

not rated 10 1mo ago A tokens not measured

PreToolUse

23

anthillnet/sinain-hud

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool, executing approve-tool.sh. From anthillnet/sinain-hud.

not rated 9 2d ago A tokens not measured

SessionStart

24

777genius/infinity-context

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, running an inline shell check. From 777genius/infinity-context.

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

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: