Commands
Cerebro provides these commands:
Build commands
cerebro build
Generate the dashboard. Uses cached data where fresh.
cerebro build # Build all projects
cerebro build --project my-proj # Build specific project
cerebro build --fresh # Force rebuild, ignoring cache
cerebro serve
Serve the generated dashboard locally with mdBook.
cerebro serve # Default port is 3000
cerebro serve --port 8080 # Custom port
This spawns mdbook in the configured output_dir and exits immediately.
For a persistent server, run mdbook serve directly in your cortex.
Status commands
cerebro status
Check cache status for all projects, plus the project coverage signal:
how many directories under projects_dir are on disk but not in config, per
ADR-0015.
cerebro status
Shows last build time per project, cache TTL remaining, and any stale data.
cerebro discover
Reconcile projects_dir, default ~/Projects, against the config and
print the classified difference. Discovery reads only. It writes nothing
unless you pass --sync-config.
cerebro discover # report: what is on disk that config misses
cerebro discover --sync-config # append the proposed [[projects]] entries
Discovery reports each directory as one of:
- registered project
- proposed: a git repo with commits by your configured git identity, or a non-git content directory
- worktree of a tracked repository, attributed by the git common dir, never by name
- upstream clone, skipped by the authorship gate because it has zero commits by you
- empty repository, reported as informational
- name in
settings.discovery_deny, never proposed and never written - name conflict
- stale config entry whose path no longer exists
--sync-config appends only. It never deletes or rewrites existing lines.
Discovery reports stale entries for hand removal, because a deletion isn’t
reversible by a diff a human reads. Without a git user.name/user.email
configured, discovery stays report-only and refuses to apply.
Query commands
These commands read cortex data and output JSON, so you can script against them or pipe the results into other tools. Whether the answers are trustworthy enough to call the project finished is a separate question, written down in the definition of done.
cerebro projects list
List all tracked projects.
cerebro projects list # All projects
cerebro projects list --active-only # Only active projects
cerebro projects read <name>
Read the full context for a specific project.
cerebro projects read my-project
Returns sessions, commits, TODOs, and manual notes for the named project.
cerebro journal read <date>
Read a journal entry for a specific date.
cerebro journal read 2026-05-17
cerebro journal today
Read today’s journal entry.
cerebro journal today
cerebro intent <period> <identifier>
Read intent/goals for a period.
cerebro intent daily 2026-05-17
cerebro intent weekly 2026-W20
cerebro intent monthly 2026-05
cerebro intent yearly 2026
cerebro todos
Search TODO comments across all projects.
cerebro todos # All TODOs
cerebro todos --keyword FIXME # Filter by keyword
cerebro todos --project my-project # Filter by project
cerebro stats
Get overall cortex statistics.
cerebro stats
Returns project count, session count, commit count, TODO count, and recent activity metrics.
MCP commands
cerebro mcp
Start the MCP server. Works with any MCP-compliant client, including OpenCode, Claude, and Cursor. Reads from the cortex directory containing the config file.
cerebro mcp
Reads CORTEX_PATH to locate the cortex data dir. If unset, it falls back to
~/Projects/cortex. For command-line and TUI configuration, see
Configuration.
TUI
cerebro tui
Launch the Terminal User Interface for browsing projects interactively.
cerebro tui
The Terminal User Interface shares data types with the command-line tool and
cerebro-core, and reads the same cortex content that mdbook renders. You can
also run it independently through the standalone cerebro-tui binary.