context engineering hooks

208 tagged context engineering, measured the same way as everything else here.

Browse within: agent-memory 30ai-memory 21ai-governance 20agent-runtime 18agentic-workflows 18llm-agents 14spec-driven-development 14cli-tools 11agent-harness 10ai-assisted-development 10ai-for-developers 10code-quality 10developer-productivity 10harness-engineering 10

PreToolUse

25

romiluz13/cc10x

Hook

Runs before the agent uses a tool for Edit, Write and Bash tool calls, executing cc10x_pretooluse_guard.py and cc10x_git_guard.py via python3 (2 commands). From romiluz13/cc10x.

164 29d ago A tokens not measured original MIT

SessionStart

26

romiluz13/cc10x

Hook

Runs when a session starts on startup, resume and compact, executing cc10x_sessionstart_context.py via python3. From romiluz13/cc10x.

164 29d ago A tokens not measured original MIT

PostToolUse

27

romiluz13/cc10x

Hook

Runs after a tool call finishes for Edit and Write tool calls, executing cc10x_posttooluse_artifact_guard.py via python3. From romiluz13/cc10x.

164 29d ago A tokens not measured original MIT

SessionStart

28

oliver-zehentleitner/keep-the-why

Hook Claude Code

Runs when a session starts, running an inline shell check. From oliver-zehentleitner/keep-the-why.

146 4d ago A tokens not measured original MIT

PreToolUse

29

ppgranger/token-saver

Hook

Runs before the agent uses a tool for Bash tool calls, executing hook_pretool.py via python3. From ppgranger/token-saver.

142 14d ago A tokens not measured original Apache-2.0

SessionStart

30

ppgranger/token-saver

Hook

Runs when a session starts, executing hook_session.py via python3. From ppgranger/token-saver.

142 14d ago A tokens not measured original Apache-2.0

SessionStart

31

gintasz/unigent

Hook Claude Code

Runs when a session starts on startup, executing worktree-bootstrap.sh via bash. From gintasz/unigent.

104 1mo ago A tokens not measured original MIT

SessionStart

32

cowwoc/cat

Hook

Runs when a session starts, executing check-upgrade.sh, check-update-available.sh, echo-session-id.sh, check-retrospective-due.sh and inject-session-instructions.sh (5 commands). From cowwoc/cat.

101 1mo ago A tokens not measured

UserPromptSubmit

33

cowwoc/cat

Hook

Runs when you submit a prompt, before the agent sees it, executing get-skill-output.py and detect-giving-up.sh via python3 (2 commands). From cowwoc/cat.

101 1mo ago A tokens not measured

PostToolUse

34

cowwoc/cat

Hook

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.

101 1mo ago A tokens not measured

SessionStart

35

zby/commonplace

Hook Claude Code

Runs when a session starts on startup and resume, executing cloud-session-setup.sh. From zby/commonplace.

85 2d ago A tokens not measured CC-BY-4.0

SessionStart

36

adelinamart/robrain

Hook

Runs when a session starts, executing session-start.mjs via node. From adelinamart/robrain.

81 27d ago A tokens not measured copy · 53% Apache-2.0

UserPromptSubmit

37

adelinamart/robrain

Hook

Runs when you submit a prompt, before the agent sees it, executing user-prompt-submit.mjs via node. From adelinamart/robrain.

81 27d ago A tokens not measured original Apache-2.0

Stop

38

adelinamart/robrain

Hook

Runs when the agent finishes a response, executing stop.mjs via node. From adelinamart/robrain.

81 27d ago A tokens not measured copy · 50% Apache-2.0

Stop

39

mordechaipotash/brain-mcp

Hook

Runs when the agent finishes a response, executing brain-stream-on-turn.sh. From mordechaipotash/brain-mcp.

68 12d ago A tokens not measured original MIT

SessionEnd

40

mordechaipotash/brain-mcp

Hook

Runs when a session ends, executing brain-stream-on-sessionend.sh. From mordechaipotash/brain-mcp.

68 12d ago A tokens not measured original MIT

PreCompact

41

mordechaipotash/brain-mcp

Hook

Runs before the context is compacted, executing brain-stream-on-sessionend.sh. From mordechaipotash/brain-mcp.

68 12d ago A tokens not measured original MIT

SessionStart

42

archcore-ai/cli

Hook Claude Code

Runs when a session starts, running archcore hooks claude-code session-start. From archcore-ai/cli.

62 15d ago A tokens not measured original Apache-2.0

SessionStart

43

JanYork/llm-wiki-cli

Hook

Runs when a session starts on startup, resume, clear and compact, running lwc --scope all agent hook --agent claude --event SessionSta. From JanYork/llm-wiki-cli.

48 6d ago A tokens not measured original Apache-2.0

UserPromptSubmit

44

JanYork/llm-wiki-cli

Hook

Runs when you submit a prompt, before the agent sees it, running lwc agent hook --agent claude --event UserPromptSubmit. From JanYork/llm-wiki-cli.

48 6d ago A tokens not measured original Apache-2.0

PostToolUse

45

tam159/next-role

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, running an inline shell check. From tam159/next-role.

49 3d ago A tokens not measured original MIT

PreToolUse

46

AutomatosAI/automatos-ai

Hook Claude Code

Runs before the agent uses a tool for Edit and Write tool calls, executing block-secrets.sh. From AutomatosAI/automatos-ai.

44 2d ago A tokens not measured

PostToolUse

47

AutomatosAI/automatos-ai

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing warn-os-getenv.sh and warn-hardcoded-llm.sh (2 commands). From AutomatosAI/automatos-ai.

44 2d ago A tokens not measured

PreToolUse

48

xg-gh-25/SwarmAI

Hook Claude Code

Runs before the agent uses a tool for Bash and WebFetch tool calls, executing reject-pytest-tail.sh and spa-domain-redirect.sh via bash (2 commands). From xg-gh-25/SwarmAI.

42 6d ago A tokens not measured original MIT