From context-optimizer
Before context compaction: runs test -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROO…. Before a tool call (Read): runs test -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROO…. And 4 more.
6 events · 6 hooks
Ships in context-optimizer. 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
test -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROOT}/src/hook.js"15sReadtest -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROOT}/src/hook.js"15stest -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROOT}/src/hook.js"15sBash|Read|Edit|MultiEdit|Write|NotebookEdit|Glob|Grep|Agent|Task|WebFetch|WebSearch|mcp__.*test -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROOT}/src/hook.js"15stest -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROOT}/src/hook.js"15stest -f "${CLAUDE_PLUGIN_ROOT}/src/hook.js" || exit 0; node "${CLAUDE_PLUGIN_ROOT}/src/hook.js"15sWhere this hook configuration is defined
Defined in hooks/hooks.json
7 plugins ship this exact hooks config · first indexed Dec 4, 2025
npx claudepluginhub egorfedorov/claude-context-optimizer --plugin context-optimizerOther plugins' hooks for the same job