From claude-brain-sync
Before context compaction (auto): runs if [ -f "${HOME}/.claude/brain-config.json" ]; then bash "${CLAUDE_PLUGIN_ROOT}/…. When a session ends: runs if [ -f "${HOME}/.claude/brain-config.json" ]; then bash "${CLAUDE_PLUGIN_ROOT}/…. And 1 more.
3 events · 3 hooks
Ships in claude-brain-sync. Installing the plugin adds it to Claude Code.
Event handlers and matchers — expand Raw configuration for the full JSON
autoif [ -f "${HOME}/.claude/brain-config.json" ]; then bash "${CLAUDE_PLUGIN_ROOT}/scripts/export.sh" --memory-only --quiet > /dev/null; fi10sif [ -f "${HOME}/.claude/brain-config.json" ]; then bash "${CLAUDE_PLUGIN_ROOT}/scripts/push.sh" --quiet || true; fi15sstartup|resumeif [ -f "${HOME}/.claude/brain-config.json" ]; then bash "${CLAUDE_PLUGIN_ROOT}/scripts/pull.sh" --quiet --auto-merge; fi30sWhere this hook configuration is defined
Defined in hooks/hooks.json
35 plugins in 33 repositories ship this exact hooks config · first indexed Nov 28, 2025
npx claudepluginhub toroleapinc/claude-brain --plugin claude-brain-syncOther plugins' hooks for the same job