huzaifa525/claude-code-optimizer

Optimize Claude Code token usage — 22 skills, 8 hooks, 6 rules. One npm install. Zero manual steps. Cut costs by 67%.

9Stars on the repository
32Mods indexed here, across every type
5mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

SessionStart

01

huzaifa525/claude-code-optimizer

Hook Claude Code

Runs when a session starts, executing generate-context.sh, memory-inject.sh, resume-plan.sh, auto-setup.sh and auto-update-check.sh via bash (5 commands). From huzaifa525/claude-code-optimizer.

9 5mo ago A tokens not measured original MIT

PreToolUse

02

huzaifa525/claude-code-optimizer

Hook Claude Code

Runs before the agent uses a tool for Edit, Write and Bash tool calls, executing protect-files.sh and block-dangerous.sh via bash (2 commands). From huzaifa525/claude-code-optimizer.

9 5mo ago A tokens not measured original MIT

PostToolUse

03

huzaifa525/claude-code-optimizer

Hook Claude Code

Runs after a tool call finishes for Edit, Write, Bash, Edit, Write and Bash tool calls, executing auto-format.sh, filter-test-output.sh and track-activity.sh via bash (3 commands). From huzaifa525/claude-code-optimizer.

9 5mo ago A tokens not measured original MIT

Stop

04

huzaifa525/claude-code-optimizer

Hook Claude Code

Runs when the agent finishes a response, executing commit-reminder.sh, session-summary.sh and token-savings-footer.sh via bash (3 commands). From huzaifa525/claude-code-optimizer.

9 5mo ago A tokens not measured copy · 88% MIT