cost optimization hooks

25 tagged cost optimization, measured the same way as everything else here.

Browse within: ai-assistant 6context-engineering 6git-worktrees 6

SessionStart

01

nudgebee/nudgebee

Hook Claude Code

Runs when a session starts, executing session-start.sh. From nudgebee/nudgebee.

387 2d ago A tokens not measured

SessionStart

02

lookfree/cc-harness

Hook Claude Code

Runs when a session starts, executing session_context.sh. From lookfree/cc-harness.

47 26d ago A tokens not measured original MIT

PreToolUse

03

lookfree/cc-harness

Hook Claude Code

Runs before the agent uses a tool for Write and Edit tool calls, executing safety_check.sh with --write (2 commands). From lookfree/cc-harness.

47 26d ago A tokens not measured original MIT

PostToolUse

04

lookfree/cc-harness

Hook Claude Code

Runs after a tool call finishes for Write and Edit tool calls, executing format.sh. From lookfree/cc-harness.

47 26d ago A tokens not measured original MIT

SessionStart

05

jianzhichun/permafrost

Hook

Runs when a session starts, executing session_start.sh. From jianzhichun/permafrost.

21 2mo ago A tokens not measured copy · 63% MIT

Stop

06

mhlaghari/stuntman

Hook

Runs when the agent finishes a response, executing handoff-guard.sh. From mhlaghari/stuntman.

11 3d ago A tokens not measured original MIT

SessionStart

07

Smart-AI-Memory/attune-ai

Hook Claude Code

Runs when a session starts, executing help_freshness_nudge.py, starter_prompt_nudge.py and starter_reconciler.py (3 commands). From Smart-AI-Memory/attune-ai.

10 yesterday A tokens not measured original Apache-2.0

PreToolUse

08

Smart-AI-Memory/attune-ai

Hook Claude Code

Runs before the agent uses a tool for Bash, Edit and Write tool calls, executing security_guard.py, worktree_path_guard.py and dirty_switch_guard.py (4 commands). From Smart-AI-Memory/attune-ai.

10 yesterday A tokens not measured original Apache-2.0

PostToolUse

09

Smart-AI-Memory/attune-ai

Hook Claude Code

Runs after a tool call finishes for Edit, Write, Bash, Edit and Write tool calls, executing format_on_save.py and telemetry_hook.py (2 commands). From Smart-AI-Memory/attune-ai.

10 yesterday A tokens not measured original Apache-2.0

SessionStart

10

shakestzd/contextune

Hook

Runs when a session starts, executing session_start_git_context.py, context_restorer.js, session_start.js and version_checker.js via uv (4 commands). From shakestzd/contextune.

5 8mo ago A tokens not measured original MIT

PreToolUse

11

shakestzd/contextune

Hook

Runs before the agent uses a tool, executing pre_tool_use_state_sync.py, pre_tool_use_git_advisor.py and tool_router.py via uv (3 commands). From shakestzd/contextune.

5 8mo ago A tokens not measured original MIT

PostToolUse

12

shakestzd/contextune

Hook

Runs after a tool call finishes, executing contextune_plan_tracker.py, contextune_execute_tracker.py and tool_cost_tracker.py via uv (3 commands). From shakestzd/contextune.

5 8mo ago A tokens not measured original MIT

SessionStart

13

AqueGen/model-routing

Hook

Runs when a session starts on startup, executing update-check.mjs via node (2 commands). From AqueGen/model-routing.

3 7d ago A tokens not measured original MIT

PostToolUse

14

AqueGen/model-routing

Hook

Runs after a tool call finishes for Agent and Task tool calls, executing dispatch-counter.mjs via node. From AqueGen/model-routing.

3 7d ago A tokens not measured original MIT

SessionStart

15

nomadop/session-watcher

Hook

Runs when a session starts on startup, resume, clear and compact, running node. From nomadop/session-watcher.

3 1mo ago A tokens not measured original MIT

SessionStart

16

Davmunrey/Trazum

Hook Claude Code

Runs when a session starts, executing session-start.sh. From Davmunrey/Trazum.

1 yesterday A tokens not measured copy · 52% MIT

UserPromptSubmit

17

itsribbZ/Godspeed

Hook

Runs when you submit a prompt, before the agent sees it, executing godspeed_fuzzy_trigger.py and brain_advisor.sh via python (2 commands). From itsribbZ/Godspeed.

1 1mo ago A tokens not measured original MIT

PreCompact

18

itsribbZ/Godspeed

Hook

Runs before the context is compacted, executing pre_compact_snapshot.sh via bash. From itsribbZ/Godspeed.

1 1mo ago A tokens not measured original MIT

SessionEnd

19

itsribbZ/Godspeed

Hook

Runs when a session ends, executing session_cost_report.sh via bash. From itsribbZ/Godspeed.

1 1mo ago A tokens not measured original MIT