From morph-compact
Before context compaction: runs npm install --silent --prefix ${CLAUDE_PLUGIN_ROOT} --omit=dev --no-audit --no-f…. When a session starts: runs npm install --silent --prefix ${CLAUDE_PLUGIN_ROOT} --omit=dev --no-audit --no-f…. And 2 more.
4 events · 4 hooks
Ships in morph-compact. Installing the plugin adds it to Claude Code.
Event handlers and matchers — expand Raw configuration for the full JSON
npm install --silent --prefix ${CLAUDE_PLUGIN_ROOT} --omit=dev --no-audit --no-fund >/dev/null 2>&1 && node ${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.jsnpm install --silent --prefix ${CLAUDE_PLUGIN_ROOT} --omit=dev --no-audit --no-fund >/dev/null 2>&1 && node ${CLAUDE_PLUGIN_ROOT}/hooks/session-start.jsnode ${CLAUDE_PLUGIN_ROOT}/hooks/subagent-start.jsnode ${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit.jsWhere this hook configuration is defined
Defined in hooks/hooks.json
2 plugins ship this exact hooks config · first indexed Mar 30, 2026
npx claudepluginhub morphllm/morph-claude-code-plugin --plugin morph-compactOther plugins' hooks for the same job