From Cost Saving Plugin
Before a tool call (Read): runs node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/pre-read.mjs". After a tool call (Edit|Write|MultiEdit): runs node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/post-edit.mjs". And 5 more.
3 events · 7 hooks
Ships in Cost Saving Plugin. Installing the plugin adds it to Claude Code.
Safety signals detected in this hook configuration
Event handlers and matchers — expand Raw configuration for the full JSON
Readnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/pre-read.mjs"Edit|Write|MultiEditnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/post-edit.mjs".*node "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/turn-counter.mjs"is broken|isn't working|not working|doesn't work|keeps failing|throwing|throws an error|getting an error|seeing an error|weird behavior|unexpected behavior|can't figure out|what's wrong|debug this|diagnose this|bug in|regression|broken since|error in|failing test|test failsnode "${CLAUDE_PLUGIN_ROOT}/scripts/hooks/debug-gate.mjs"cost|token|optim|spend|usage|efficien|how much|waste|redundant|cache hit|session log|what did wenode -e "process.stdout.write('REMINDER: Answer cost/token/efficiency questions using the cost-analysis MCP plugin tools FIRST: cost_summary, suggest_optimizations, file_read_analysis, cost_trend, summarise. Do NOT read manual session logs or cost_tracking.md.');"implement |refactor|add a feature|new function|new endpoint|write a function|write the function|rewrite|build a |create a class|create a function|optimi[sz]e thenode -e "process.stdout.write('REMINDER: Code-change task — apply karpathy-guidelines: (1) surface assumptions and ask before coding, (2) simplest code that works, no speculative features, (3) surgical edits only — do not touch adjacent code, (4) define verifiable done-criteria before starting.');"caveman|less tokens|fewer tokens|be brief|talk like caveman|use caveman|too verbose|keep it short|keep it briefnode -e "process.stdout.write('REMINDER: User wants brevity — invoke Skill({ skill: "caveman" }) for compressed output, or answer in minimal tokens without filler.');"Where this hook configuration is defined
Defined in hooks/hooks.json
roblox, mcp, pre-tool-use, post-tool-use, user-prompt-submit
17 plugins ship this exact hooks config · first indexed Nov 28, 2025
npx claudepluginhub sarins-lab/code-optimization-plugin --plugin code-optimization-pluginOther plugins' hooks for the same job