Hooks

Shell commands your agent runs at defined points. A hook is code, so read it before you install it.

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 +107 today A ✓ AI review tokens not measured original Apache-2.0

SessionStart

02

vectorize-io/hindsight

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts, executing dcode-sessionstart-hook.js via node. From vectorize-io/hindsight.

not rated 59k +2.5k changed 13d ago A tokens not measured original MIT

PostToolUse

03

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 56k +285 yesterday A ✓ AI review tokens not measured original Apache-2.0

PreToolUse

04

anthropics/claude-cookbooks

Hook Claude Code ✓ vendor

One of 3 in settings.json

Runs before the agent uses a tool, executing pre-write.sh and pre-bash.sh (2 commands). From anthropics/claude-cookbooks.

not rated 54k +285 2d ago A ✓ AI review tokens not measured original MIT

SessionStart

05

Yeachan-Heo/oh-my-codex

Hook Claude Code

One of 8 in hooks.json

Runs when a session starts on startup, resume and clear, executing codex-native-hook.mjs via node. From Yeachan-Heo/oh-my-codex.

not rated 34k +36 3d ago A tokens not measured original MIT

UserPromptSubmit

06

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 +63 changed 9d ago A ✓ AI review tokens not measured original MIT

PreToolUse

07

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 14k +296 10d ago A tokens not measured

BeforeAgent

08

max-sixty/worktrunk

Hook Claude Code

One of 3 in hooks.json

Runs on the BeforeAgent event, executing wt.sh via bash. From max-sixty/worktrunk.

not rated 12k +2.0k today A tokens not measured

PostToolUse

09

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

SessionStart

10

brycewang-stanford/Auto-Empirical-Research-Skills

Hook Claude Code

One of 3 in hooks.json

Runs when a session starts on compact and resume, executing setup-project-dirs.sh and post-compact-restore.py via bash (2 commands). From brycewang-stanford/Auto-Empirical-Research-Skills.

not rated 4.9k +89 4d ago A tokens not measured

PostToolUse

11

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 4.0k +19 today A tokens not measured

SessionStart

12

code-yeongyu/lazycodex

Hook Claude Code

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

not rated 3.9k +29 changed today A tokens not measured original MIT

SessionStart

13

fuxicodex/Fuxi

Hook Claude Code

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

not rated 3.2k +8 changed 1mo ago A tokens not measured

SessionStart

14

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 +6 yesterday A tokens not measured

SessionEnd

15

nicknisi/dotfiles

Hook Claude Code

One of 2 in settings.json

Runs when a session ends, running claude-tmux-cleanup. From nicknisi/dotfiles.

not rated 3.0k +1 2d ago A tokens not measured original MIT

PreToolUse

16

stellarlinkco/myclaude

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool for Bash tool calls, executing pre-bash.py and inject-spec.py via python3 (2 commands). From stellarlinkco/myclaude.

not rated 2.8k +3 6mo ago A tokens not measured AGPL-3.0

PostToolUse

17

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 +9 changed 15d ago A tokens not measured original MIT

PreToolUse

18

tractorjuice/arc-kit

Hook Claude Code

One of 6 in hooks.json

Runs before the agent uses a tool for Read, Bash, apply_patch, Edit and Write tool calls, executing arckit-codex-hook.mjs. From tractorjuice/arc-kit.

not rated 2.3k +7 2d ago A tokens not measured

SessionStart

19

maxritter/pilot-shell

Hook Claude Code

One of 10 in hooks.json

Runs when a session starts on startup, resume, clear, compact, startup, startup, resume, clear, compact, startup, resume, clear, compact, clear and compact, executing license_check.py, licensed_assets_sync.py, codex_skill_sync.py, cc_skill_sync.py and run_if_licensed.py via uv with --no-project, --python and --exec…

not rated 2.1k changed 1mo ago A tokens not measured

Notification

20

GoogleCloudPlatform/scion

Hook Claude Code

One of 10 in settings.json

Runs when the agent sends a notification for permission_prompt, elicitation_dialog and elicitation_url_dialog tool calls, running sciontool hook --dialect=claude. From GoogleCloudPlatform/scion.

not rated 2.1k +28 changed 24d ago A tokens not measured original Apache-2.0

PostToolUse

21

hashgraph-online/awesome-codex-plugins

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing validate-schema.py via python3. From hashgraph-online/awesome-codex-plugins.

not rated 1.5k +56 yesterday A tokens not measured original Apache-2.0

SessionStart

22

nvk/llm-wiki

Hook Claude Code

One of 6 in hooks.json

Runs when a session starts, executing llm_wiki_session.py via python3 with --harness, --event-name and --if-enabled. From nvk/llm-wiki.

not rated 1.5k +24 changed 12d ago A tokens not measured original MIT

PreToolUse

23

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.5k +45 3d ago A tokens not measured CC-BY-SA-4.0

PostToolUse

24

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.4k +16 today 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: