Before context compaction: runs python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.py. After a tool call (Edit|Write): runs bash ${CLAUDE_PLUGIN_ROOT}/hooks/protect-files.sh. When a session starts (compact|resume): runs python3 ${CLAUDE_PLUGIN_ROOT}/hooks/post-compact-restore.py.
3 events · 3 hooks
Ships in Social Science Research. 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
python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.pyEdit|Writebash ${CLAUDE_PLUGIN_ROOT}/hooks/protect-files.shcompact|resumepython3 ${CLAUDE_PLUGIN_ROOT}/hooks/post-compact-restore.pyWhere this hook configuration is defined
Defined in hooks/hooks.json
precompact, posttooluse, session-start, file-tracking, consolidation
5 plugins ship this exact hooks config · first indexed Jan 26, 2026
npx claudepluginhub felpix-studios/social-science-research --plugin social-science-researchOther plugins' hooks for the same job