export function buildManPage(): string { return `EI(1) Ei Terminal UI EI(1) NAME ei - local-first AI companion with persistent personas KEYBINDINGS Ctrl+E Open current input in $EDITOR (preserves text) Ctrl+C Clear input field (second press exits) Ctrl+B Toggle sidebar Escape Abort operation / resume queue PageUp/Down Scroll message history CORE COMMANDS /settings, /set Edit global settings in $EDITOR. Configure default model, heartbeat interval, context window, integrations, and more. /quit, /q Save, sync, and exit. Add ! to force quit without syncing: /q! /provider Open provider picker to select, edit, or create LLM providers. /provider Set provider on active persona /provider : Set provider and model explicitly /provider new Create a new provider /me Edit your personal data (facts, topics, people) in $EDITOR. Each section includes a commented stub — uncomment and fill it in to create a new entry. No UUID required; one is generated for you. /me fact Edit only facts (stub included) /me topic Edit only topics (stub included) /me person Edit only people (stub included) /me fact new Open with just the new-fact stub /me fact coffee Filter facts whose name contains "coffee" /me person "New York" Quoted search for multi-word names /details, /d Edit the current persona's details in $EDITOR. /d Edit a specific persona by name PERSONA COMMANDS /persona, /p Open persona picker. Switch, list, or create personas. /p new Create a new persona /p update [person] Regenerate persona from a person record /context, /messages Edit which messages are included in LLM context. /pause Pause the current persona indefinitely. /pause Pause for a duration: 2h, 1d, 1w /resume, /unpause Resume the current paused persona. /resume Resume a specific persona /new Toggle a context boundary — starts a fresh conversation thread without deleting history. /quotes, /quote Manage quotes attached to messages. /quotes View quotes from message N /quotes me View your own quotes /quotes search "term" Search quotes by keyword /quotes View a persona's quotes ROOM COMMANDS /room, /r Open room picker. Switch or create rooms. /room new Create a new room (FFA, CYP, or MAP mode) /room new Create with a pre-filled name /activate, /a Advance the active node in a CYP or MAP room. /activate Activate a specific response by number /silence Pass your turn in a room with an optional reason. /silence [reason] /capture Force-extract quotes, topics, and people from the current chat now. /capture person Re-scan all messages for a specific person. /capture topic Re-scan all messages for a specific topic. EXTENDED COMMANDS /reflect Review a persona's pending reflection — a proposed identity update generated by Ei after observing patterns in your conversations. A badge appears on the persona pill when one is ready. /reflect generate Write current + proposed YAML files to disk /reflect update Read edited proposed.yaml back into Ei /reflect apply Apply the proposed identity to the persona /reflect dismiss Discard without changing anything /import Import a document (txt, md, pdf, etc.) into Ei. Ei segments it, extracts knowledge, and attributes it to the "Emmett" persona. /import ~/notes/journal.md /import /path/to/report.pdf /unsource Remove all facts, topics, etc. extracted from a previously imported document. Use the source tag shown when the import completed. /unsource my-journal-2024 /generate Synthesize everything Ei knows about a subject into a clean markdown document. Uses your rewrite_model (Opus-class recommended). The file lands in $EI_DATA_PATH/docs/ automatically. /generate everything about the Uniform project /generate comprehensive runbook for the IDP deployment issues /generate (no args) — Open your generated documents. Re-run, re-export, or delete from here. /tools Manage tool providers — enable or disable tools per persona. /auth Authenticate with an external service. /auth spotify Connect your Spotify account /auth slack Connect your Slack workspace /queue Pause the queue and inspect or edit active items in $EDITOR. /dlq Inspect and recover failed (dead-letter) queue items in $EDITOR. /dedupe Find and merge duplicate people or topics. /dedupe person Flare "Jeremy Scherer" /dedupe topic AI "artificial intelligence" /archive Archive a persona or room. Lists archived items if no name given. /archive Archive by name /unarchive Restore an archived persona or room and switch to it. /unarchive /delete, /del Permanently delete a persona. Cannot be undone. /delete /setsync, /ss Set sync credentials (triggers restart). /setsync /editor, /e, /edit Open $EDITOR with the current input field contents. Note: Ctrl+E does the same thing without clearing the input first. TIPS - Append ! to any command as shorthand for --force: /quit! - Duration strings: 30m, 2h, 1d, 1w (used by /pause, /settings) - All editor fields that say "null" inherit from your global settings - $EDITOR and $PAGER are respected throughout Ei - 永 (ei) - eternal `; }