token optimization hooks

33 tagged token optimization, measured the same way as everything else here.

Browse within: agentskills 13claude-code-skill 13context-window 13token-usage 13cost 7hooks 7output-style 7

PostToolUse

04

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 2d ago A tokens not measured original Apache-2.0

UserPromptSubmit

05

abhisekjha/pith

Hook

Runs when you submit a prompt, before the agent sees it, executing prompt-submit.js via node. From abhisekjha/pith.

98 3mo ago A tokens not measured original MIT

PostToolUse

06

abhisekjha/pith

Hook

Runs after a tool call finishes, executing post-tool-use.js via node. From abhisekjha/pith.

98 3mo ago A tokens not measured original MIT

Stop

07

abhisekjha/pith

Hook

Runs when the agent finishes a response, executing stop.js via node. From abhisekjha/pith.

98 3mo ago A tokens not measured copy · 41% MIT

PostToolUse

08

PCIRCLE-AI/toonify-mcp

Hook

Runs after a tool call finishes for Read, Grep, Glob, WebFetch and Bash tool calls, executing post-tool-use.mjs via node. From PCIRCLE-AI/toonify-mcp.

64 16d ago A tokens not measured original MIT

PreToolUse

09

V-Songbird/hush

Hook

Runs before the agent uses a tool for ^(Bash and PowerShell)$ tool calls, executing preserve-exit-code.js via node. From V-Songbird/hush.

45 yesterday A tokens not measured original MIT

UserPromptSubmit

10

V-Songbird/hush

Hook

Runs when you submit a prompt, before the agent sees it, executing silence-nudge.js via node. From V-Songbird/hush.

45 yesterday A tokens not measured original MIT

PostToolUse

11

V-Songbird/hush

Hook

Runs after a tool call finishes for ^(Bash, PowerShell, Read and Grep)$ tool calls, executing compress-tool-output.js and silence-nudge.js via node (2 commands). From V-Songbird/hush.

45 yesterday A tokens not measured original MIT

SubagentStart

12

rjkaes/trueline-mcp

Hook

Runs when a subagent starts, executing session-start.js via node. From rjkaes/trueline-mcp.

34 25d ago A tokens not measured copy · 53% Apache-2.0

PreToolUse

13

rjkaes/trueline-mcp

Hook

Runs before the agent uses a tool for Edit, MultiEdit, Read and Bash tool calls, executing pretooluse.js via node. From rjkaes/trueline-mcp.

34 25d ago A tokens not measured original Apache-2.0

PostToolUse

14

rjkaes/trueline-mcp

Hook

Runs after a tool call finishes for mcp__plugin_trueline-mcp_mcp__trueline_edit tool calls, executing posttooluse.js via node. From rjkaes/trueline-mcp.

34 25d ago A tokens not measured original Apache-2.0

UserPromptSubmit

15

ww-w-ai/super-token-saver

Hook

Runs when you submit a prompt, before the agent sees it, executing cache-expiry-check.sh. From ww-w-ai/super-token-saver.

31 2d ago A tokens not measured original Apache-2.0

SessionStart

16

ww-w-ai/super-token-saver

Hook

Runs when a session starts on compact, executing statusline-version-check.sh, git-context-lite.sh and s-continue-after-compact.sh (4 commands). From ww-w-ai/super-token-saver.

31 2d ago A tokens not measured original Apache-2.0

PreToolUse

17

WatsonTsai/pdf-text-router

Hook

Runs before the agent uses a tool for Read tool calls, running python. From WatsonTsai/pdf-text-router.

7 2d ago A tokens not measured original MIT