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

SessionStart

01

headroomlabs-ai/headroom

Hook

Runs when a session starts on startup and resume, running headroom init hook ensure. From headroomlabs-ai/headroom.

68k +94 today A tokens not measured original Apache-2.0

PreToolUse

02

headroomlabs-ai/headroom

Hook

Runs before the agent uses a tool for Bash and PowerShell tool calls, running headroom init hook ensure. From headroomlabs-ai/headroom.

68k +94 today A tokens not measured original Apache-2.0

PostToolUse

03

cocoindex-io/cocoindex

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing docs-build-check.sh and py-typecheck-flag.sh (2 commands). From cocoindex-io/cocoindex.

11k +15 today A tokens not measured copy · 42% Apache-2.0

Stop

04

cocoindex-io/cocoindex

Hook Claude Code

Runs when the agent finishes a response, executing docs-build-run.sh and py-typecheck-run.sh (2 commands). From cocoindex-io/cocoindex.

11k +15 today A tokens not measured copy · 50% Apache-2.0

PostToolUse

05

semantica-agi/semantica

Hook

Runs after a tool call finishes for Write, Edit, Write and Edit tool calls, running an inline shell check (2 commands). From semantica-agi/semantica.

11k yesterday A tokens not measured original MIT

PreToolUse

06

semantica-agi/semantica

Hook

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From semantica-agi/semantica.

11k yesterday A tokens not measured original MIT

SessionStart

07

open-gsd/gsd-core

Hook

Runs when a session starts, executing gsd-ensure-canonical-path.js and gsd-check-update.js via node (2 commands). From open-gsd/gsd-core.

8.9k 2d ago A tokens not measured original MIT

PreToolUse

08

open-gsd/gsd-core

Hook

Runs before the agent uses a tool for Write, Edit, Write, Edit, MultiEdit, Write, Agent and Task tool calls, executing gsd-prompt-guard.js, gsd-read-guard.js, gsd-worktree-path-guard.js, gsd-write-guard.js and gsd-agent-isolation-guard.js via node (5 commands). From open-gsd/gsd-core.

8.9k 2d ago A tokens not measured original MIT

PostToolUse

09

open-gsd/gsd-core

Hook

Runs after a tool call finishes for Bash, Edit, Write, MultiEdit, Agent, Task, Read, WebFetch and WebSearch tool calls, executing gsd-context-monitor.js and gsd-read-injection-scanner.js via node (2 commands). From open-gsd/gsd-core.

8.9k 2d ago A tokens not measured original MIT

SessionStart

10

memodb-io/Acontext

Hook

Runs when a session starts, executing hook-handler.cjs via node. From memodb-io/Acontext.

3.7k 1mo ago A tokens not measured original Apache-2.0

PostToolUse

11

memodb-io/Acontext

Hook

Runs after a tool call finishes, executing hook-handler.cjs via node. From memodb-io/Acontext.

3.7k 1mo ago A tokens not measured original Apache-2.0

Notification

12

memodb-io/Acontext

Hook

Runs when the agent sends a notification, executing hook-handler.cjs via node. From memodb-io/Acontext.

3.7k 1mo ago A tokens not measured original Apache-2.0

SessionStart

13

cocoindex-io/cocoindex-code

Hook

Runs when a session starts, running an inline shell check. From cocoindex-io/cocoindex-code.

2.7k 2d ago A tokens not measured original Apache-2.0

PostToolUse

14

cocoindex-io/cocoindex-code

Hook

Runs after a tool call finishes for Edit, Write, MultiEdit and search_replace tool calls, running an inline shell check. From cocoindex-io/cocoindex-code.

2.7k 2d ago A tokens not measured copy · 89% Apache-2.0

UserPromptSubmit

15

oceanbase/powercontext

Hook

Runs when you submit a prompt, before the agent sees it, running python3. From oceanbase/powercontext.

923 yesterday A tokens not measured original Apache-2.0

SessionStart

16

halofyai/halofy

Hook

Runs when a session starts on startup, resume and clear, executing session-start.mjs via node. From halofyai/halofy.

496 7d ago A tokens not measured AGPL-3.0

Stop

17

halofyai/halofy

Hook

Runs when the agent finishes a response, executing session-end.mjs via node. From halofyai/halofy.

496 7d ago A tokens not measured AGPL-3.0

WorktreeCreate

18

ai-driven-dev/framework

Hook Claude Code

Runs when a git worktree is created, executing worktree-create.js via node. From ai-driven-dev/framework.

445 yesterday A tokens not measured original MIT

SessionStart

19

atomicstrata/atomicmemory

Hook

Runs when a session starts on startup, resume and compact, executing on_session_start.sh. From atomicstrata/atomicmemory.

429 5d ago A tokens not measured

PreCompact

20

atomicstrata/atomicmemory

Hook

Runs before the context is compacted, executing on_pre_compact.sh. From atomicstrata/atomicmemory.

429 5d ago A tokens not measured

PostCompact

21

atomicstrata/atomicmemory

Hook

Runs after the context is compacted, executing on_post_compact.sh. From atomicstrata/atomicmemory.

429 5d ago A tokens not measured

SessionStart

22

Fergana-Labs/stash

Hook

Runs when a session starts, executing ensure_cli.sh via bash. From Fergana-Labs/stash.

327 3d ago A tokens not measured original MIT

UserPromptSubmit

23

Fergana-Labs/stash

Hook

Runs when you submit a prompt, before the agent sees it, running stash hook run claude on_prompt. From Fergana-Labs/stash.

327 3d ago A tokens not measured original MIT

PostToolUse

24

Fergana-Labs/stash

Hook

Runs after a tool call finishes, running stash hook run claude on_tool_use. From Fergana-Labs/stash.

327 3d ago A tokens not measured original MIT