ai agents hooks

3,277 tagged ai agents, measured the same way as everything else here.

Browse within: agent-memory 146agentic-coding 139agent-orchestration 115agentic-workflow 103ai-memory 84Multi-Agent 76codex-cli 72coding-agents 52Autonomous Agents 46agent-framework 44context-engineering 44agentic 43hooks 42agentic-engineering 33

SessionStart

01

google-gemini/gemini-cli

Hook

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

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

SessionStart

02

thedotmack/claude-mem

Hook

Runs when a session starts, executing cmem-hook.mjs via node. From thedotmack/claude-mem.

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

PostToolUse

03

thedotmack/claude-mem

Hook

Runs after a tool call finishes, executing cmem-hook.mjs via node. From thedotmack/claude-mem.

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

PreToolUse

04

thedotmack/claude-mem

Hook

Runs before the agent uses a tool for Task and Agent tool calls, executing cmem-hook.mjs via node. From thedotmack/claude-mem.

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

SessionStart

05

code-yeongyu/oh-my-openagent

Hook Claude Code

Runs when a session starts on startup, executing setup.sh via bash. From code-yeongyu/oh-my-openagent.

69k +28 today A tokens not measured

SessionEnd

06

code-yeongyu/oh-my-openagent

Hook Claude Code

Runs when a session ends, executing cleanup-hook.sh via bash. From code-yeongyu/oh-my-openagent.

69k +28 today A tokens not measured

PreToolUse

07

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

08

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

09

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

PreToolUse

10

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

11

aaif-goose/goose

Hook

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

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

UserPromptSubmit

12

aaif-goose/goose

Hook

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

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

PostToolUse

13

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 today A tokens not measured original Apache-2.0

UserPromptSubmit

14

Yeachan-Heo/oh-my-claudecode

Hook

Runs when you submit a prompt, before the agent sees it, executing run.cjs via node (2 commands). From Yeachan-Heo/oh-my-claudecode.

39k yesterday A tokens not measured original MIT

SessionStart

15

Yeachan-Heo/oh-my-claudecode

Hook

Runs when a session starts on init and maintenance, executing run.cjs via node (5 commands). From Yeachan-Heo/oh-my-claudecode.

39k yesterday A tokens not measured original MIT

SessionEnd

16

Yeachan-Heo/oh-my-claudecode

Hook

Runs when a session ends, executing run.cjs via node (2 commands). From Yeachan-Heo/oh-my-claudecode.

39k yesterday A tokens not measured original MIT

SessionStart

17

Donchitos/Claude-Code-Game-Studios

Hook Claude Code

Runs when a session starts, executing session-start.sh and detect-gaps.sh via bash (2 commands). From Donchitos/Claude-Code-Game-Studios.

25k +26 3mo ago A tokens not measured original MIT

PreToolUse

18

Donchitos/Claude-Code-Game-Studios

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing validate-commit.sh and validate-push.sh via bash (2 commands). From Donchitos/Claude-Code-Game-Studios.

25k +26 3mo ago A tokens not measured original MIT

PostToolUse

19

Donchitos/Claude-Code-Game-Studios

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, executing validate-assets.sh and validate-skill-change.sh via bash (2 commands). From Donchitos/Claude-Code-Game-Studios.

25k +26 3mo ago A tokens not measured original MIT

PostToolUse

20

cocoindex-io/cocoindex

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing docs-build-check.sh and py-typecheck-flag.sh (2 commands). From cocoindex-io/cocoindex.

11k +15 today A tokens not measured copy · 42% Apache-2.0

Stop

21

cocoindex-io/cocoindex

Hook Claude Code

Runs when the agent finishes a response, executing docs-build-run.sh and py-typecheck-run.sh (2 commands). From cocoindex-io/cocoindex.

11k +15 today A tokens not measured copy · 50% Apache-2.0

SessionStart

22

czlonkowski/n8n-skills

Hook

Runs when a session starts on startup, resume, clear and compact, executing session-start.sh. From czlonkowski/n8n-skills.

6.2k 3d ago A tokens not measured original MIT

PreToolUse

23

czlonkowski/n8n-skills

Hook

Runs before the agent uses a tool for ^mcp__.*__get_node$, ^mcp__.*__n8n_create_workflow$, ^mcp__.*__(n8n_update_partial_workflow, n8n_update_full_workflow)$, ^mcp__.*__(validate_workflow, n8n_validate_workflow)$, ^mcp__.*__n8n_test_workflow$, ^mcp__.*__n8n_instances$ and ^mcp__.*__n8n_manage_credentials$ tool calls…

6.2k 3d ago A tokens not measured original MIT

PostToolUse

24

czlonkowski/n8n-skills

Hook

Runs after a tool call finishes for ^mcp__.*__validate_workflow$ tool calls, executing validate-workflow.sh. From czlonkowski/n8n-skills.

6.2k 3d ago A tokens not measured original MIT