Sign in, sync a folder of docs into the Brain with brainbox sync, connect Claude Code or Codex, and ask your first question. About five minutes.
You need a folder of docs, Node 24 or later, and Claude Code or Codex. Other agents can connect over MCP; see Get started.
Paste this prompt into Claude Code or Codex. It runs init, which opens your browser to sign in (sign-up works too) and installs the BrainBox skills and MCP server for the agent that ran it.
Set up BrainBox in this project: run `npx -y @brainbox-labs/cli@latest init` and follow what it prints.Claude Code: type /reload-plugins, then sign in to the MCP server when prompted (or via /mcp). Codex: run codex mcp login brainbox, then quit and run codex resume --last.
Point sync at the folder that holds your docs. It reads md, txt, html, pdf and docx. Export formats like JSON or CSV need converting to markdown first. A dry run sends and archives nothing; it only shows the diff.
npx -y @brainbox-labs/cli@latest sync ./docs --dry-runRun it for real. Each file is stored under a stable key (the namespace plus its path), and the namespace defaults to the folder name. Pass --namespace to choose your own.
npx -y @brainbox-labs/cli@latest sync ./docs --namespace kbIn your agent, ask it to use brain-recall, for example: "Use brain-recall: how do we handle refunds for annual plans?" The answer comes from your docs, through the MCP server.
Re-run the same sync command whenever the folder changes. New and edited docs are ingested and unchanged ones are skipped. If you delete a file, sync never archives its page silently: on a terminal it asks first, and without one it reports the page as a pending delete. Pass --prune to archive them all, or brainbox prune <key> for specific ones. Renaming or moving a file gives it a new key, so add sourceKey: my-doc to its frontmatter if you want a stable identity.
Write links as [[kb/runbooks/refunds]] (the namespace plus the file path, no extension) or as relative .md links such as [refunds](refunds.md); they are stored with the page. A sourceKey is an identity, not a link target, so it does not resolve inside a link. Subfolders become nested namespaces: kb/eng/runbooks for eng/runbooks/ under --namespace kb.
Sign in and sync your first folder.