website/docs/cli-reference/prime.md
Generated from bd help --doc prime
Output essential Beads workflow context in AI-optimized markdown format.
Automatically detects if MCP server is active and adapts output:
Designed for Claude Code hooks (SessionStart, PreCompact) to prevent agents from forgetting bd workflow after context compaction.
Config options:
no-git-ops: When true, outputs stealth mode (no git commands in session close protocol). Set via: bd config set no-git-ops true Useful when you want to control when commits happen manually.
Workflow customization:
bd prime [flags]
Flags:
--export Output default content (ignores PRIME.md override)
--full Force full CLI output (ignore MCP detection)
--mcp Force MCP mode (minimal output)
--memories-only Output only persistent memories for compact hook contexts
--stealth Stealth mode (no git operations, flush only)