From substrate
After every Claude response: runs ${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/stop.sh. Before context compaction: runs ${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/pre_compact.sh. When a session starts: runs ${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/session_start.sh. And 2 more.
5 events · 5 hooks
Ships in substrate. Installing the plugin adds it to Claude Code.
Event handlers and matchers — expand Raw configuration for the full JSON
${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/stop.sh600s${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/pre_compact.sh${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/session_start.sh${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/subagent_stop.sh${CLAUDE_PLUGIN_ROOT}/internal/hooks/scripts/user_prompt.shWhere this hook configuration is defined
Defined in hooks/hooks.json
session-start, stop, pre-compact, subagent-stop, user-prompt
4 plugins ship this exact hooks config · first indexed Feb 8, 2026
npx claudepluginhub roasbeef/substrate --plugin substrateOther plugins' hooks for the same job