context window hooks

54 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

PreToolUse

04

mpecan/tokf

Hook Claude Code

Runs before the agent uses a tool for Bash tool calls, executing pre-tool-use.sh. From mpecan/tokf.

195 3d ago A tokens not measured original MIT

SessionStart

05

0xhimanshu/governor

Hook

Runs when a session starts, executing governor.py via python3. From 0xhimanshu/governor.

133 2mo ago A tokens not measured original MIT

UserPromptSubmit

06

0xhimanshu/governor

Hook

Runs when you submit a prompt, before the agent sees it, executing governor.py via python3. From 0xhimanshu/governor.

133 2mo ago A tokens not measured original MIT

PostToolUse

07

0xhimanshu/governor

Hook

Runs after a tool call finishes, executing governor.py via python3. From 0xhimanshu/governor.

133 2mo ago A tokens not measured original MIT

SessionStart

08

linggen/linggen-memory

Hook

Runs when a session starts, executing autostart.sh. From linggen/linggen-memory.

108 12d ago A tokens not measured copy · 70% MIT

UserPromptSubmit

09

linggen/linggen-memory

Hook

Runs when you submit a prompt, before the agent sees it, executing recall.sh. From linggen/linggen-memory.

108 12d ago A tokens not measured copy · 70% MIT

PreToolUse

10

linggen/linggen-memory

Hook

Runs before the agent uses a tool for mcp__.*__memory_(add and search) tool calls, executing stamp-cwd.sh. From linggen/linggen-memory.

108 12d ago A tokens not measured original MIT

SessionStart

11

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

PreToolUse

12

hehee9/codex-compressor

Hook

Runs before the agent uses a tool for ^new_context$ tool calls, executing launch.py via python3. From hehee9/codex-compressor.

10 7d ago A tokens not measured original Apache-2.0

PreCompact

13

hehee9/codex-compressor

Hook

Runs before the context is compacted for ^(auto and manual)$ tool calls, executing launch.py via python3. From hehee9/codex-compressor.

10 7d ago A tokens not measured original Apache-2.0

SessionStart

14

hehee9/codex-compressor

Hook

Runs when a session starts on ^compact$, executing launch.py via python3. From hehee9/codex-compressor.

10 7d ago A tokens not measured copy · 86% Apache-2.0

SessionStart

15

sakebomb/mcp-recall

Hook

Runs when a session starts, running an inline shell check. From sakebomb/mcp-recall.

8 12d ago A tokens not measured original MIT

PostToolUse

16

sakebomb/mcp-recall

Hook

Runs after a tool call finishes for (mcp__(?!recall__).* and Bash) tool calls, running an inline shell check. From sakebomb/mcp-recall.

8 12d ago A tokens not measured copy · 59% MIT

PreToolUse

17

Digital-Threads/token-pilot

Hook

Runs before the agent uses a tool for Read, Edit, MultiEdit, Bash, Grep and Task tool calls, executing run.sh via sh (6 commands). From Digital-Threads/token-pilot.

5 5d ago A tokens not measured

PostToolUse

19

Digital-Threads/token-pilot

Hook

Runs after a tool call finishes for Bash and Task tool calls, executing run.sh via sh (2 commands). From Digital-Threads/token-pilot.

5 5d ago A tokens not measured

SessionStart

20

yoeld-wix/quiet-bash

Hook

Runs when a session starts on startup and clear, executing claude-code-sessionstart.sh. From yoeld-wix/quiet-bash.

5 1mo ago A tokens not measured original MIT

PreToolUse

21

yoeld-wix/quiet-bash

Hook

Runs before the agent uses a tool for Bash tool calls, executing claude-code.sh. From yoeld-wix/quiet-bash.

5 1mo ago A tokens not measured original MIT

PostToolUse

22

yoeld-wix/quiet-bash

Hook

Runs after a tool call finishes for mcp__.*, WebFetch, WebSearch and Read tool calls, executing claude-code-result.sh. From yoeld-wix/quiet-bash.

5 1mo ago A tokens not measured original MIT

PostToolUse

23

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

24

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