Before context compaction (auto): runs bash "${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact-primer.sh". Before context compaction (manual): runs bash "${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact-primer.sh".
1 event · 2 hooks
Ships in agent-patterns-plugin. Installing the plugin adds it to Claude Code.
Event handlers and matchers — expand Raw configuration for the full JSON
autobash "${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact-primer.sh"10smanualbash "${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact-primer.sh"10sWhere this hook configuration is defined
Defined in hooks.json
npx claudepluginhub laurigates/claude-plugins --plugin agent-patterns-plugin37 plugins in 33 repositories ship this exact hooks config · first indexed Jan 1, 2026
Other plugins' hooks for the same job