Recipes
Code review session
Section titled “Code review session”Save a review brain once, activate it anytime:
# Set up the configurationbrainjar soul use craftsmanbrainjar persona use reviewerbrainjar rules add boundariesbrainjar rules add securitybrainjar brain save review
# Activate anytimebrainjar brain use review
# Or scope to a single sessionbrainjar shell --brain reviewCI pipeline — enforce rules without a persona
Section titled “CI pipeline — enforce rules without a persona”Use environment variables in CI to override behavior:
BRAINJAR_PERSONA=auditor \BRAINJAR_RULES_ADD=security,compliance \brainjar status --syncProject-specific persona
Section titled “Project-specific persona”Override behavior for a specific project without affecting your global config. Project scope is auto-detected from the .brainjar/ directory:
cd my-projectbrainjar persona use plannerbrainjar rules add no-delete
brainjar status# soul craftsman (workspace)# persona planner (project)# rules boundaries (workspace), no-delete (+project)Scoped shell sessions
Section titled “Scoped shell sessions”Temporarily switch context without changing any state files:
brainjar shell --persona reviewer --rules-add security# Inside this shell, BRAINJAR_* env vars are set# Exit the shell and everything revertsTeam sharing with packs
Section titled “Team sharing with packs”Export your setup and share it with teammates:
# Youbrainjar pack export review --author frank --version 1.0.0
# Teammatebrainjar pack import ./review --activateMCP server registration
Section titled “MCP server registration”Register brainjar as an MCP server so agents can discover and use all commands:
brainjar mcp add # Global, auto-detect agentbrainjar mcp add --agent cursor # Target a specific agentbrainjar mcp add --no-global # Project-local onlySkill files
Section titled “Skill files”Sync brainjar skill files to your agent for slash-command integration:
brainjar skills add # Global installbrainjar skills add --no-global # Project-local onlyShell completions
Section titled “Shell completions”Set up tab completion for brainjar commands:
eval "$(brainjar completions zsh)" # Add to ~/.zshrceval "$(brainjar completions bash)" # Add to ~/.bashrcMultiple backends
Section titled “Multiple backends”Work with both Claude Code and Codex:
brainjar init --backend claude # Defaultbrainjar init --backend codex # Also set up Codex