Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Cerebro reads a config.toml file. The command-line tool and TUI use the XDG default location, $XDG_CONFIG_HOME/cerebro/config.toml, or ~/.config/cerebro/config.toml when XDG_CONFIG_HOME is unset, the same on every platform. The MCP server uses CORTEX_PATH to locate the cortex data directory, falling back to ~/Projects/cortex.

Config lookup order

Cerebro checks these locations in order:

  1. --config <path> command-line flag, an explicit override
  2. XDG config dir at $XDG_CONFIG_HOME/cerebro/config.toml, falling back to $HOME/.config/cerebro/config.toml. This is the default.
  3. CORTEX_PATH env var, a legacy fallback for users who keep their config alongside the cortex data dir
  4. ./config.toml in the current working directory, as a last resort

Example configuration

[settings]
opencode_db_path = "~/.local/share/opencode/opencode.db"
pi_sessions_path = "~/.pi/agent/sessions"
output_dir = "./content"
timezone = "America/New_York"
commit_window_days = 365
max_commits = 5000

[[projects]]
name = "my-project"
repo_path = "~/Projects/my-project"
active = true

Settings

SettingRequiredDescriptionDefault
output_dirNoWhere to write the generated dashboard./content
opencode_db_pathNoPath to OpenCode’s session database. Only needed if you want OpenCode session history.None
pi_sessions_pathNoPath to Pi’s sessions directory. Only needed if you want Pi session history.None
timezoneNoIANA time zone that days are bucketed in. Unset uses this machine’s zone.Machine zone
commit_window_daysNoHow many civil days of commit history a build collects, ending with today.365
max_commitsNoCeiling on the commits one repository may return per build. Reaching it is reported on the page.5000

Time zone

timezone decides which calendar day an activity belongs to. A journal page holds one day of work as you experienced it, so evening work stays on the day’s page. Commit timestamps are stored in UTC, so without a frame of reference the pages cover roughly 19:00 to 19:00 local and evening work lands on the following day. The key fixes exactly that, for the journal/ pages, today.md, this-week.md, and the journal view in the TUI, which all read the same value.

Use an IANA name such as America/New_York or Europe/Berlin. An unknown name stops the run with a message naming the key; cerebro never falls back to UTC quietly, because a silent fallback is the bug this key exists to prevent. Every generated day page carries a comment naming the zone it was bucketed in, so the frame survives the page outliving the config that set it.

Commit window

A journal page is supposed to hold everything that happened on a day, so the collector reads a window of days rather than a count of commits. commit_window_days names that window, counted in civil days in the configured zone and ending with today. Its default, 365, matches the year of pages the journal backfills. Before issue #114 the collector returned the twenty newest commits reachable from HEAD, which meant a day page described the moment it was built: a Saturday with thirty commits on it arrived as twenty, and once a repository’s newest twenty commits were all from Monday, Saturday’s page lost its work entirely.

Set it lower only if you also want fewer journal pages. A window shorter than the pages the journal renders leaves the oldest days empty, which is the same bug in a different place.

max_commits is a guard against one pathological repository stalling a build, not a way to shorten a day: 134 projects walking a year of history each is a few thousand commits read, and an upstream clone with a quarter-million would not be. When a repository reaches the ceiling the collected list is not complete, and the page says so under a Commit history truncated marker rather than reporting a quiet low number. The same marker appears on that project’s page.

Commits are attributed to a day by their author instant. A rebase, an amend, or a merge rewrites the committer instant and leaves the author stamp alone, so a branch that moved on Sunday cannot move Saturday’s work onto Sunday’s page. Both instants are collected; only the author one decides where a commit is filed.

Project configuration

Define each project with:

SettingDescriptionRequired
nameProject nameYes
repo_pathPath to git repositoryYes
activeInclude in dashboard generationYes

Manual notes

Manual notes aren’t configured per-project. They live directly in your cortex:

PathPurposeEdited by
content/intent/Goals for daily, weekly, monthly, or yearly periodsHuman only
content/notes/Evergreen notes and documentationHuman only
content/SUMMARY.mdNavigation structureHuman only

An AGENTS.md file in your cortex defines the boundary between auto-generated and manual content. Cerebro only writes to content/index.md, content/projects/, content/journal/, content/today.md, and content/this-week.md.