Building agents hooks

173 tagged Building agents, measured the same way as everything else here.

Browse within: claude-code-plugin 198agents 125cli 95LLM 92agentic-ai 91ai-coding 88cursor 74mcp-server 59model-context-protocol 56ai-tools 52agent-orchestration 43skills 43agent-memory 40claude-code-hooks 37

SessionStart

01

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

PostToolUse

02

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

PreToolUse

03

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 yesterday A tokens not measured CC-BY-SA-4.0

PostToolUse

04

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

UserPromptSubmit

05

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

SessionStart

06

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 665 changed yesterday A tokens not measured AGPL-3.0

PreCompact

07

avenoxai/avenoxbeyin

Hook Claude Code

One of 5 in settings.json

Runs before the context is compacted, executing pre-compact.sh. From avenoxai/avenoxbeyin.

not rated 652 +62 today A tokens not measured original MIT

PreToolUse

08

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

PostToolUse

09

kryptobaseddev/cleo

Hook Claude Code

One of 4 in settings.json

Runs after a tool call finishes for Bash, Edit, Write, MultiEdit, Agent, Task, Write and Edit tool calls, executing gsd-context-monitor.js and gsd-phase-boundary.sh via node (2 commands). From kryptobaseddev/cleo.

not rated 159 yesterday A tokens not measured original MIT

PreToolUse

10

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

PreToolUse

11

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 9d ago A tokens not measured original Apache-2.0

SessionStart

12

IAPro-Community/Orquestrador-Maestro

Hook Claude Code

One of 8 in hooks.json

Runs when a session starts on startup, resume, clear and compact, executing hook.js via node. From IAPro-Community/Orquestrador-Maestro.

not rated 66 +2 today A tokens not measured original Apache-2.0

UserPromptSubmit

13

haposoft/cafekit

Hook Claude Code

One of 8 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing secret-output-guardrail.cjs, privacy-approval.cjs, rules.cjs, spec-state.cjs and ask-guard.cjs (5 commands). From haposoft/cafekit.

not rated 54 changed 1mo ago A tokens not measured

SessionStart

14

UniM0cha/self-improving-skills

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts on startup and resume, executing session_start.py via python3. From UniM0cha/self-improving-skills.

not rated 52 2mo ago A tokens not measured original MIT

SessionStart

15

ithinkihaveacat/dotfiles

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, running an inline shell check. From ithinkihaveacat/dotfiles.

not rated 46 today A tokens not measured original Apache-2.0

PreToolUse

16

YuDefine/nuxt-supabase-starter

Hook Claude Code

One of 8 in settings.json

Runs before the agent uses a tool for Bash, Edit, Write, Edit, Write, Agent, Artifact, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Bash, Monitor, Bash, Bash, Bash, Bash, Edit, Write, Edit, Write, MultiEdit, Edit, Write, MultiEdit, NotebookEdit, Edit…

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

PostToolUse

17

mrlm-xyz/demo-claude-marketplace

Hook Claude Code

One of 3 in settings.json

Runs after a tool call finishes for Edit and Write tool calls, executing check-docs-drift.sh. From mrlm-xyz/demo-claude-marketplace.

not rated 35 2mo ago A tokens not measured copy · 52% Apache-2.0

SessionStart

18

artk0de/TeaRAGs-MCP

Hook Claude Code

One of 5 in hooks.json

Runs when a session starts, executing session-start.sh, session-codex-rules.sh, session-digest.sh and reread-ledger.mjs with --harness (4 commands). From artk0de/TeaRAGs-MCP.

not rated 33 5d ago A tokens not measured

PreCompact

19

dp-web4/SAGE

Hook Claude Code

One of 5 in settings.json

Runs before the context is compacted for manual and auto tool calls, running an inline shell check (2 commands). From dp-web4/SAGE.

not rated 28 today A tokens not measured AGPL-3.0

SessionStart

20

tractorjuice/arckit-codex

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/arckit-codex.

not rated 19 6d ago A tokens not measured

UserPromptSubmit

21

heurema/signum

Hook Claude Code

Runs when you submit a prompt, before the agent sees it, executing capture_inbox.py via python3 with --hook. From heurema/signum.

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

UserPromptSubmit

22

kaizakin/dotfiles

Hook Claude Code

One of 15 in settings.json

Runs when you submit a prompt, before the agent sees it, executing native-hook-fast.js and claude-hook.cmd with --adapter (3 commands). From kaizakin/dotfiles.

not rated 16 yesterday A tokens not measured

SessionStart

23

jscraik/Agent-Skills

Hook Claude Code

Runs when a session starts, executing session_start_contract.py via python3. From jscraik/Agent-Skills.

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

BeforeTool

24

gmoncor/agentic-engineering-framework

Hook Claude Code

Runs on the BeforeTool event for write_file, replace, run_shell_command, read_file, write_file, replace, read_file, write_file, replace and run_shell_command tool calls, executing sdd-pipeline-guard.js, sdd-commit-guard.js, sdd-read-before-edit.js and sdd-turn-budget.js via node (4 commands). From…

not rated 6 changed 1mo ago 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: