csb create
Create a new brain.
Usage
csb create [<name>] [--agent <ids>] [--copy]csb <name> is a shortcut for csb create <name>, and plain csb is the same as csb create.
Creates the brain at ~/.claude-second-brain/<name>/, runs pnpm install, pnpm qmd:setup and git init, and registers it in ~/.claude-second-brain/config.toml. The first brain you create becomes the default.
Arguments
name
string
Name of the brain. Skips the name prompt. Defaults to my-brain when you accept the prompt's suggestion. A name can't be a csb command (ls, lint, create, …), so csb create lint stops with an error instead of making a brain called lint.
csb create my-brainOptions
-a, --agent <ids>
string
Agents to install skills for, comma-separated, or all. Also read from CSB_AGENTS. Without it, the CLI prompts (interactive) or uses Claude Code plus every detected agent (non-interactive). See csb skills for the agent IDs.
csb create my-brain --agent claude-code,codex--copy
boolean
Copy skills into each agent's folder instead of symlinking them to ~/.agents/skills.
csb create my-brain --copy-h, --help
Displays help message.
csb create --helpPrompts
All questions are asked up front, so the rest of setup runs unattended:
| Prompt | Default | Shown when |
|---|---|---|
| Brain name | my-brain | No name argument |
| Git remote | none | Always: GitHub, Cloudflare Artifacts or Skip |
| Repo name | the brain name | A remote is selected |
| Artifacts namespace | default | Cloudflare Artifacts is selected |
| Register qmd collections after install? | yes | Always |
| Install skills for which agents? | Claude Code plus detected agents | No --agent and no CSB_AGENTS |
See GitHub and Cloudflare Artifacts for what each remote needs.
Behavior
- Long steps show a spinner with elapsed time and the latest output line.
- If
pnpm10+ is already on yourPATH, it is used directly. Otherwise the CLI installs mise (if needed) and runsmise installto fetch node and pnpm first. SetCSB_USE_MISE=1to always use mise. CSB_ICONS=nerd|emoji|nonepicks the icons in the git-remote picker. Real GitHub and Cloudflare logos (Nerd Font glyphs) are on by default in Ghostty, WezTerm and kitty. SetCSB_ICONS=nerdin other terminals if you use a Nerd Font.- The closing Next steps box shows how to open each agent you picked (
claude,codex,cursor ., …). - If the GitHub or Cloudflare remote can't be created or pushed, the brain is still created locally, Next steps lists the fix, and the CLI exits 1.