shine-sync
Re-run SHINE SessionStart hooks (memory symlink, plugin sync, update check).
/shine-sync
Manually re-trigger the SessionStart hooks without restarting Claude Code. Useful after:
- Editing
~/.claude/settings.json - Installing or uninstalling a plugin
- Moving projects between devices
- Suspecting memory symlinks are broken
What it does
- Re-creates the
./memory → ~/.claude/memory/symlink (unless opted out). - Re-runs the integration-sync hook to refresh the plugin list in CLAUDE.md.
- Runs the update check (cached 24h — pass
--forceenv to bust the cache). - Prints a one-line status per hook.
Implementation
bash "$HOME/.claude/hooks/global-memory-symlink.sh"
node "$HOME/.claude/hooks/integration-sync.js"
node "$HOME/.claude/hooks/shine-check-update.js"
Invoked as:
!bash "$HOME/.claude/hooks/global-memory-symlink.sh" 2>&1 && node "$HOME/.claude/hooks/integration-sync.js" 2>&1 && node "$HOME/.claude/hooks/shine-check-update.js" 2>&1
Output
One line per hook, prefixed with ✓ or ⚠.
Errors
- Any hook fails → surface its stderr; the others still run (fail-open semantics, exit 0).
- Hook file missing → instruct the user to re-run
./install.sh.