Building agents hooks

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

Browse within: claude-code-plugin 178agents 100ai-coding 99agentic-ai 80cli 73LLM 72cursor 55ai-tools 45mcp-server 35claude-plugin 34agentic-workflow 31agent-orchestration 30Orchestration 29nextjs 29

PreToolUse

01

Imbad0202/academic-research-skills-codex

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool for Write, Edit, MultiEdit and Bash tool calls, executing run_guard.sh via bash. From Imbad0202/academic-research-skills-codex.

not rated 13k +517 12d ago A tokens not measured

PostToolUse

02

gadievron/raptor

Hook Claude Code

Runs after a tool call finishes for Read tool calls, running an inline shell check. From gadievron/raptor.

not rated 3.9k +32 2d ago A tokens not measured

SessionStart

03

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.1k +3 yesterday A tokens not measured

SessionStart

04

moorcheh-ai/memanto

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts on startup and resume, running an inline shell check. From moorcheh-ai/memanto.

not rated 2.3k +15 changed 1mo ago A tokens not measured original MIT

PreToolUse

05

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.2k +109 4d ago A tokens not measured CC-BY-SA-4.0

PostToolUse

06

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.2k +51 2d ago A tokens not measured original Apache-2.0

SessionStart

07

josstei/maestro-orchestrate

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, executing hook-runner.js via node. From josstei/maestro-orchestrate.

not rated 479 +14 5d ago A tokens not measured original Apache-2.0

SessionStart

08

devcodex-labs/devcodex

Hook Claude Code

One of 6 in hooks.json

Runs when a session starts, executing session-start.cjs via node. From devcodex-labs/devcodex.

not rated 438 +1 5d ago A tokens not measured AGPL-3.0

PreCompact

09

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 258 +37 yesterday A tokens not measured original MIT

PreToolUse

10

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 216 +4 2d ago A tokens not measured original MIT

UserPromptSubmit

11

mtarcure/claude-vibe-squad

Hook Claude Code

One of 2 in settings.json

Runs when you submit a prompt, before the agent sees it, executing context-tripwire.sh via bash. From mtarcure/claude-vibe-squad.

not rated 165 25d ago A tokens not measured original MIT

PostToolUse

12

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 160 today 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 149 +2 changed 5d ago A tokens not measured AGPL-3.0

PreToolUse

14

Fmarzochi/EGC

Hook Claude Code

One of 8 in hooks.json

Runs before the agent uses a tool for Write, Edit, MultiEdit, Write, Edit, MultiEdit, Bash, Write, Edit, Write, Bash, Write, Edit, MultiEdit, Write, Edit, MultiEdit, Edit, Write, MultiEdit, Bash, Write, Edit and MultiEdit tool calls, executing utils.js via node (12 commands). From Fmarzochi/EGC.

not rated 67 +4 yesterday A tokens not measured original Apache-2.0

SessionStart

15

IAPro-Community/Orquestrador-Maestro

Hook Claude Code

One of 7 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 58 +2 today A tokens not measured original Apache-2.0

PostToolUse

16

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 1mo ago A tokens not measured copy · 52% Apache-2.0

PreCompact

17

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 +1 today A tokens not measured AGPL-3.0

PreToolUse

18

heyJordanParker/dotfiles

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool for Bash tool calls, executing block-git-revert.sh and block-unsafe-delete.sh (2 commands). From heyJordanParker/dotfiles.

not rated 22 changed 17d ago A tokens not measured

SessionStart

19

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 17 3d ago A tokens not measured

SessionStart

20

jscraik/Agent-Skills

Hook Claude Code

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

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

PreToolUse

21

ldilov/harness-forge

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool, executing pre-tool-use.sh. From ldilov/harness-forge.

not rated 6 4mo ago A tokens not measured GPL-3.0

BeforeTool

22

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

PreToolUse

23

yushiran/Academic-Figure-Figma-CC-Skills

Hook Claude Code

Runs before the agent uses a tool for mcp__.*[Ff]igma.*__use_figma tool calls, executing figma_preflight.py. From yushiran/Academic-Figure-Figma-CC-Skills.

not rated 5 12d ago A tokens not measured

PreToolUse

24

metago-ai/metagolifeform

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool for Edit, Write and Bash tool calls, executing pre-tool-use-guard.cjs via node. From metago-ai/metagolifeform.

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

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: