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

PreToolUse

03

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 53k +129 10d ago A ✓ AI review tokens not measured original MIT

SessionStart

04

Yeachan-Heo/oh-my-codex

Hook Claude Code

One of 7 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 33k +47 2d ago A tokens not measured original MIT

PostToolUse

05

danielmiessler/LifeOS

Hook Claude Code

One of 11 in hooks.json

Runs after a tool call finishes for Agent, WebFetch, WebSearch, mcp__.*, ToolSearch, AskUserQuestion, Read, Write, Edit, MultiEdit and Bash tool calls, executing AgentInvocation.hook.ts, Safety.hook.ts, TabState.hook.ts, ISAStaleWriteGuard.hook.ts, ISASync.hook.ts, CheckpointPerISC.hook.ts, ConfigEvalFire.hook.ts…

not rated 19k +89 1mo ago A ✓ AI review tokens not measured original MIT

SessionStart

06

Imbad0202/academic-research-skills-codex

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts, executing announce-ars-loaded.sh via bash. From Imbad0202/academic-research-skills-codex.

not rated 12k +305 5d ago A tokens not measured

BeforeAgent

07

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 9.0k +353 yesterday A tokens not measured

PostToolUse

08

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

SessionStart

09

FailproofAI/failproofai

Hook Claude Code

One of 5 in hooks.json

Runs when a session starts, executing dev-hook.mjs with --hook and --cli. From FailproofAI/failproofai.

not rated 5.3k +21 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.5k +65 3d 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 3.9k +27 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.7k +31 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.4k +1 changed 8d 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 +2 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 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 +2 5mo ago A tokens not measured AGPL-3.0

SessionStart

17

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

SessionStart

18

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 +2 today 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 +4 changed 20d ago A tokens not measured

SessionStart

20

GoogleCloudPlatform/scion

Hook Claude Code

One of 9 in settings.json

Runs when a session starts, running sciontool hook --dialect=claude. From GoogleCloudPlatform/scion.

not rated 1.7k +4 today A tokens not measured original Apache-2.0

SessionStart

21

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 and --if-enabled. From nvk/llm-wiki.

not rated 1.4k +29 6d ago A tokens not measured original MIT

PostToolUse

22

cfrs2005/claude-init

Hook Claude Code

One of 5 in hooks.json

Runs after a tool call finishes for tool == "Bash", tool == "Edit" && tool_input.file_path matches "\\.(ts, tsx, js, jsx)$", tool == "Edit" && tool_input.file_path matches "\\.(ts, tsx)$", tool == "Edit" && tool_input.file_path matches "\\.(ts, tsx, js and jsx)$" tool calls, running #!/bin/bash (4 commands). From…

not rated 1.4k +2 7mo ago A tokens not measured original MIT

PostToolUse

23

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.2k +101 today A tokens not measured original Apache-2.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.1k +14 3d 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: