Skip to content

Configuration ​

Most setups never edit configuration. When you do, there are two files, both in your private dotbrain home: one for the machine and one per project.

FileScopeSeeded by
~/dotbrain/config.yamlMachine: infrastructure, runtime profiles, global skills and subagentsdotbrain bootstrap
brainspaces/<name>/.brain/project.yamlOne projectdotbrain wire

After editing project declarations, run dotbrain refresh (or dotbrain refresh --all). Global asset changes use dotbrain skills link --scope global or dotbrain subagents link --scope global.

Environment ​

VariableDefaultPurpose
DOTBRAIN_HOME~/dotbrain (%USERPROFILE%\dotbrain on Windows)Where Brainspaces and config live
HERMES_HOME~/.hermesHermes's own home; dotbrain puts its Hermes plugin copy and global Hermes skills there
XDG_CONFIG_HOME~/.configParent of OpenCode's config directory; dotbrain puts its OpenCode plugin file, packaged skills, and global OpenCode skills under $XDG_CONFIG_HOME/opencode
PI_CODING_AGENT_DIR~/.pi/agentPi's agent directory; dotbrain puts its Pi extension copy and global Pi skills there

config.yaml ​

Every global setting lives here: server-mode Beads, home sync, extra runtime homes, and the skills and subagents delivered to your personal agent homes. The seeded file has every block commented out.

yaml
# ~/dotbrain/config.yaml
version: 4

beads:
  server:
    host: db.example.internal
    port: "3307"
    user: beads
    ssh_host: bastion.example.internal   # optional SSH hop, used by beads drop-db

profiles:                     # extra Claude Code and Codex homes
  claude-code: [~/.claude-work]
  codex: [~/.codex-work]

skills:                       # global skills, under ~/dotbrain/skills/
  - my-collection/my-skill
  - another-collection        # select every descendant skill

subagents:                    # custom subagents, under ~/dotbrain/subagents/
  - some-shared-subagent

WARNING

Never put credentials in config.yaml. Keep them in your secrets store.

sync: ​

Home sync records uncommitted changes in the dotbrain home as commits and exchanges them with the home's remote. It is on when the section is absent. Add the section only to turn sync off or to change the size limit:

yaml
# ~/dotbrain/config.yaml
sync:
  enabled: false        # default true
  max-file-size: 5MB    # default 1MB
KeyDefaultMeaning
sync.enabledtruefalse turns off the hooks' sync and dotbrain sync; you commit and push the home yourself
sync.max-file-size1MBFiles larger than this stay uncommitted and are reported. A byte count such as 1048576, or a size such as 500KB, 1MB, or 2GB (1 KB = 1024 bytes)

The remote is the upstream of the home's current branch; there is no remote setting. config.yaml is shared by every machine through that remote, so the setting applies on all of them. Sync names each machine in its commit messages by hostname.

project.yaml ​

Project identity and deviations from the global defaults. A project using server-mode Beads and one extra skill looks like this:

yaml
# ~/dotbrain/brainspaces/<name>/.brain/project.yaml
# Omit agents to follow this machine; an explicit list is exact.
agents:            # claude, codex, hermes, opencode, pi, cursor, antigravity
  - claude
  - codex

beads:                        # deviations from global defaults only
  mode: server                # embedded | server | none
  remote: https://doltremoteapi.dolthub.com/owner/repo
  database: project_beads

skills:                       # extra skills for this project's workspaces
  - some-collection/some-skill

subagents:                    # project-only custom subagents
  - some-project-only-subagent
KeyDefaultMeaning
agentsRuntimes set up on this machineClaude and Codex when their CLI is on PATH; hermes, opencode, pi, cursor, and antigravity when their dotbrain-owned delivery exists. An explicit list is exact; [] disables all. New projects leave this key commented out; existing lists are preserved.
beads.modeserver when a server host is configured; otherwise embeddedembedded, server, or none
beads.remote—Dolt remote for an embedded tracker
beads.databaseproject nameServer database name
skills[]Skills linked into this project's workspaces
subagents[]Project-only custom subagents

Refresh warns about runtime-specific workspaces outside the resolved agents set. Refresh preserves unrelated and user-owned content in those workspaces.

Codex and Antigravity share <checkout>/.agents/skills/ for project skills. Codex uses .codex/ for its configuration and subagents. Antigravity uses the fixed user directory ~/.gemini/config. Its global skills go in ~/.gemini/config/skills/ and its Dotbrain plugin goes in ~/.gemini/config/plugins/dotbrain. See skill reconciliation for legacy-link migration and collisions.

Global skills and profiles ​

skills: lists your global skills, linked into every agent session on this machine. Each entry is a path to a skill folder under ~/dotbrain/skills/. dotbrain skills link <entry> --scope global and dotbrain skills unlink edit this list for you; see skills.

Claude Code and Codex receive skills in <home>/skills for their default homes (~/.claude and ~/.codex) and each extra home listed in profiles. Missing profile homes are silently skipped, so the file can be shared across machines. Other runtimes keep their own relocation variables and plugin installation, and do not accept profiles.

Homes inside a wired checkout or worktree are rejected before their links are changed; symlinked home directories are supported. Doctor also checks the dotbrain plugin in each Claude Code home.

An entry containing SKILL.md selects that one skill. Otherwise its directory expands recursively to descendants containing SKILL.md, excluding node_modules. Overlapping entries selecting the same source are deduplicated. Distinct sources with the same destination name fail before any linking or pruning; missing paths and empty bundles also fail. Adding or removing a skill in a selected bundle takes effect on the next reconciliation without rewriting this declaration.

Global subagents ​

subagents: lists custom subagents delivered into your personal agent homes. Each name is a source under ~/dotbrain/subagents/claude/<name>.md or ~/dotbrain/subagents/codex/<name>.toml. Removing an entry prunes its managed resource on the next dotbrain subagents link --scope global.

The core ships no workflow agents. Every selected name refers to your own source. The dotbrain- prefix remains reserved for safe handling of old resources.

Claude Code and Codex receive agents in <home>/agents, using their default homes and the same profiles. Missing profiles are skipped; destinations inside wired checkouts are reported and skipped.

Skills and Claude agent definitions are symlinks. Codex agent definitions are disposable real TOML copies with the ownership marker # dotbrain-managed-agent: v1; edit source definitions under ~/dotbrain/subagents/, not delivered copies. Dotbrain migrates owned Codex symlinks, overwrites marked copies, and preserves unmarked files and foreign links. A conflicting user-owned filename is reported instead of replaced.

Runtime flags use --runtime claude|codex|hermes|opencode|pi|cursor|antigravity|all. Profile keys are claude-code and codex. Only Claude Code and Codex use the subagents: setting. Project linking defaults to the current wired checkout; --scope global is explicit and conflicts with project selectors or --all.

Upgrading from earlier versions ​

Read the breaking upgrade guide before changing a live installation. The current core has no legacy engineering workflow mode.

Older global settings may still need the existing bootstrap migration to config.yaml version 4. It merges supported profiles, skills and custom subagent selections, saves originals under ~/dotbrain/.cache/config-backups/, and reports retired entries. Runtime default targets are dropped; custom Claude Code/Codex homes become profiles. Sources under old agents/ move to subagents/ only when safe. Unknown or conflicting declarations and competing source folders stop migration rather than guessing. Global delivery waits until cleanup completes. Use the reported backups for manual recovery and inspect notices before retrying. This migration does not restore retired packaged roles.

Released under the MIT License.