context compression hooks

12 tagged context compression, measured the same way as everything else here.

Browse within: context-window 10ai-agent-tools 6codex-plugin 6llm-context 6

PostToolUse

01

juyterman1000/entroly

Hook Claude Code

Runs after a tool call finishes for Bash, Read, Grep, Glob, Edit, Write and TodoWrite tool calls, running an inline shell check. From juyterman1000/entroly.

442 yesterday A tokens not measured original Apache-2.0

UserPromptSubmit

02

Madhan230205/token-reducer

Hook

Runs when you submit a prompt, before the agent sees it, executing userprompt_guard.py via python. From Madhan230205/token-reducer.

44 4mo ago A tokens not measured original MIT

PreToolUse

03

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

04

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

05

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

PreToolUse

06

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

07

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

08

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