context window hooks

56 tagged context window, measured the same way as everything else here.

Browse within: agentskills 13claude-code-skill 13token-optimization 13token-usage 13context-compression 10hooks 7observability 7ai-agent-tools 6codex-plugin 6llm-context 6ast 5code-navigation 5

PostToolUse

25

nikshepsvn/scrim

Hook

Runs after a tool call finishes, executing run.sh. From nikshepsvn/scrim.

4 14d ago A tokens not measured original MIT

UserPromptSubmit

26

nikshepsvn/scrim

Hook

Runs when you submit a prompt, before the agent sees it, executing run.sh. From nikshepsvn/scrim.

4 14d ago A tokens not measured original MIT

Stop

27

nikshepsvn/scrim

Hook

Runs when the agent finishes a response, executing run.sh. From nikshepsvn/scrim.

4 14d ago A tokens not measured original MIT

PreToolUse

28

hakiyaka/capsule

Hook

Runs before the agent uses a tool for local_shell, shell, shell_command, exec_command, terminal, Bash, Shell, sh, zsh, fish, powershell, pwsh, cmd, write_stdin, grep_files, mcp__, spawn_agent, collaboration, read_thread and codex_app tool calls, executing hook.cjs via node with --no-warnings. From hakiyaka/capsule.

1 22d ago A tokens not measured original MIT

PostToolUse

29

hakiyaka/capsule

Hook

Runs after a tool call finishes, executing hook.cjs via node with --no-warnings. From hakiyaka/capsule.

1 22d ago A tokens not measured original MIT

SessionStart

30

hakiyaka/capsule

Hook

Runs when a session starts, executing hook.cjs via node with --no-warnings. From hakiyaka/capsule.

1 22d ago A tokens not measured original MIT

SessionStart

31

ignatenkofi/memshelf-mcp

Hook

Runs when a session starts, executing session-start-index.sh via bash. From ignatenkofi/memshelf-mcp.

0 8d ago A tokens not measured copy · 58% MIT

SessionEnd

32

ignatenkofi/memshelf-mcp

Hook

Runs when a session ends, executing autopush.sh via bash. From ignatenkofi/memshelf-mcp.

0 8d ago A tokens not measured copy · 63% MIT

PreCompact

33

ignatenkofi/memshelf-mcp

Hook

Runs before the context is compacted, executing autopush.sh via bash. From ignatenkofi/memshelf-mcp.

0 8d ago A tokens not measured copy · 64% MIT

PostToolUse

34

tyejcoleman/tokenroom

Hook Claude Code

Runs after a tool call finishes for Edit and Write tool calls, executing check-invariants.mjs via node. From tyejcoleman/tokenroom.

0 1mo ago A tokens not measured original Apache-2.0