ai-agents hooks

319 tagged ai-agents, measured the same way as everything else here.

Browse within: claude-code-plugin 273agentic-ai 179cli 171cursor 157LLM 119agent-orchestration 119agent-memory 116agentic-coding 105ai-coding 87agentic-workflow 79Multi-Agent 76ai-memory 69codex-cli 59agents 53

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 2d ago A ✓ AI review tokens not measured original Apache-2.0

SessionStart

03

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

PostToolUse

04

moorcheh-ai/memanto

Hook Claude Code

One of 3 in hooks.json

Runs after a tool call finishes for Bash and mcp__memanto__.* tool calls, running an inline shell check (2 commands). From moorcheh-ai/memanto.

not rated 2.4k +12 changed 1mo ago A tokens not measured original Apache-2.0

SessionStart

05

tractorjuice/arc-kit

Hook Claude Code

One of 6 in hooks.json

Runs when a session starts on startup, resume and clear, executing arckit-codex-hook.mjs. From tractorjuice/arc-kit.

not rated 2.3k +3 5d ago A tokens not measured

PreToolUse

06

RyanAlberts/best-of-Agent-Harnesses

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing guard.sh. From RyanAlberts/best-of-Agent-Harnesses.

not rated 1.6k +35 today A tokens not measured CC-BY-SA-4.0

PostToolUse

07

alibaba/skill-up

Hook Claude Code ✓ vendor

One of 4 in hooks.json

Runs after a tool call finishes for ^mcp__skill_up_observer__(mark_skill_invocation, attach_skill_evidence and record_skill_feedback)$ tool calls, executing observer.py via python3. From alibaba/skill-up.

not rated 1.5k +17 3d ago A tokens not measured original Apache-2.0

UserPromptSubmit

08

dongshuyan/compass-skills

Hook Claude Code

One of 2 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing title_guard.py via python3. From dongshuyan/compass-skills.

not rated 775 +2 today A tokens not measured original MIT

UserPromptSubmit

09

EverMind-AI/SkillCorpus

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing hook.mjs via node. From EverMind-AI/SkillCorpus.

not rated 709 +3 4d ago A tokens not measured original Apache-2.0

SessionStart

10

samvallad33/vestige

Hook Claude Code

One of 7 in hooks.json

Runs when a session starts, executing vestige-bridge.cjs via node with --runtime and --event. From samvallad33/vestige.

not rated 664 changed today A tokens not measured AGPL-3.0

PreToolUse

11

qualixar/superlocalmemory

Hook Claude Code

One of 5 in hooks.json

Runs before the agent uses a tool for WebSearch, WebFetch, Write, Edit, MultiEdit and Bash tool calls, running an inline shell check (2 commands). From qualixar/superlocalmemory.

not rated 293 +3 changed 10d ago A tokens not measured AGPL-3.0

PreToolUse

12

johnkf5-ops/the-dev-squad

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool, executing approval-gate.sh. From johnkf5-ops/the-dev-squad.

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

PreToolUse

13

weijiafu14/pi2dsh

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, running touch "$CLAUDE_PROJECT_DIR/.hook-fired". From weijiafu14/pi2dsh.

not rated 220 10d ago A tokens not measured original MIT

UserPromptSubmit

14

KimYx0207/Kim_Service

Hook Claude Code

One of 2 in settings.json

Runs when you submit a prompt, before the agent sees it, running node. From KimYx0207/Kim_Service.

not rated 198 +1 12d ago A tokens not measured original MIT

PostToolUse

15

serradura/okf

Hook Claude Code

One of 5 in settings.json

Runs after a tool call finishes for Edit, Write and MultiEdit tool calls, running "$CLAUDE_PROJECT_DIR"/.claude/hooks/run post-edit. From serradura/okf.

not rated 193 +3 9d ago A tokens not measured copy · 44% Apache-2.0

SessionStart

16

Xiaoyangy/novel-studio

Hook Claude Code

One of 5 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing story_codex_hook.py. From Xiaoyangy/novel-studio.

not rated 169 +5 2mo ago A tokens not measured original Apache-2.0

PostToolUse

17

NeoTheCapt/RedteamAgent

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Bash, Agent, Write and Edit tool calls, executing post-tool-log.sh via bash (4 commands). From NeoTheCapt/RedteamAgent.

not rated 168 +3 4mo ago A tokens not measured

PreToolUse

18

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

PostToolUse

19

cowwoc/cat

Hook Claude Code

One of 4 in hooks.json

Runs after a tool call finishes for Bash, Write, Edit, Read, Glob, Grep, WebFetch and WebSearch tool calls, executing get-posttool-output.py, detect-assistant-giving-up.sh, get-bash-posttool-output.py, remind-restart-after-skill-modification.sh and get-read-posttool-output.py via python3 (5 commands). From cowwoc/cat.

not rated 101 4mo ago A tokens not measured

PostToolUse

20

Arcadia-1/analog-agents

Hook Claude Code

One of 4 in hooks.json

Runs after a tool call finishes for spectre, virtuoso-bridge, Write and Edit tool calls, executing post-sim.sh and post-netlist-check.sh (2 commands). From Arcadia-1/analog-agents.

not rated 98 +5 5mo ago A tokens not measured

PreToolUse

21

monte-carlo-data/mc-agent-toolkit

Hook Claude Code

One of 4 in hooks.json

Runs before the agent uses a tool for ^(edit, write, multi_edit, apply_patch)$, ^bash$ and ^skill$ tool calls, executing pre_edit_hook.py, pre_commit_hook.py and skill-beacon.sh via python3 (3 commands). From monte-carlo-data/mc-agent-toolkit.

not rated 97 changed 8d ago A tokens not measured original Apache-2.0

SessionStart

22

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

BeforeTool

23

Jamkris/everything-gemini-code

Hook Claude Code

One of 6 in hooks.json

Runs on the BeforeTool event for tool == "run_shell_command", tool == "run_shell_command", tool == "run_shell_command" && tool_input.command matches "^\\s*(npm (install, test, i, ci), pnpm (install, test, i), yarn (install, test, add, remove, upgrade), bun (install, test, i, add, remove), cargo build, make, docker…

not rated 95 +1 6mo ago A tokens not measured original MIT

SessionStart

24

nota-america/forgecat-agent-profiles

Hook Claude Code

One of 2 in settings.json

Runs when a session starts, executing _fc_wrap.sh. From nota-america/forgecat-agent-profiles.

not rated 93 changed 2mo 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: