Hooks
brainjar integrates with Claude Code’s hook system for automatic context injection. When hooks are installed, brainjar syncs your config on every session start — no manual brainjar sync needed.
Installing hooks
Section titled “Installing hooks”brainjar hooks install # Writes to ~/.claude/settings.jsonbrainjar hooks install --local # This project onlyHow it works
Section titled “How it works”The hook runs brainjar sync --quiet on Claude Code’s SessionStart event. This means:
- You change a soul, persona, or rule
- Next time Claude Code starts a session, the hook fires
- Your
CLAUDE.mdis updated with the latest config - The agent picks up the new behavior
No manual sync step needed.
Managing hooks
Section titled “Managing hooks”brainjar hooks status # Check if hooks are installedbrainjar hooks remove # Remove hooks from settingsManual sync
Section titled “Manual sync”If you’re not using hooks, sync manually after making changes:
brainjar syncbrainjar sync --quiet # No output on success