Troubleshooting
Common issues and solutions.
Installation
“Command not found: cerebro”
The just install-* recipes place the binaries in ~/.local/bin. Make sure
it is in your PATH:
export PATH="$HOME/.local/bin:$PATH"
Add this to your shell profile, such as ~/.zshrc or ~/.bashrc, to persist.
“Couldn’t find cerebro”
Cerebro is not published to crates.io: every crate is publish = false and
depends on its siblings by path (ADR-0012), so cargo install cerebro finds
nothing. Install from a checkout of the repository instead. From the repo root:
just install-all # CLI, MCP, and TUI into ~/.local/bin, then verifies them
Without just, install the cerebro package by path. The workspace root is a
virtual manifest, so cargo install --path . errors with “found a virtual
manifest”; point at the crate directory:
cargo install --path crates/cerebro --locked
Configuration
“Config file not found”
Cerebro reads its config from the XDG location by default:
$XDG_CONFIG_HOME/cerebro/config.toml, or ~/.config/cerebro/config.toml when
XDG_CONFIG_HOME is unset. Create it there:
mkdir -p ~/.config/cerebro
cp config.toml.example ~/.config/cerebro/config.toml
Or create it by hand:
[settings]
opencode_db_path = "~/.local/share/opencode/opencode.db"
pi_sessions_path = "~/.pi/agent/sessions"
output_dir = "./content"
[[projects]]
name = "my-project"
repo_path = "~/Projects/my-project"
active = true
“Couldn’t parse config”
Check your TOML syntax:
- Use
=not: - String values need quotes:
"path"notpath - Arrays use brackets:
[[projects]]not[projects]
Validate with:
cerebro build
“Repo not found”
Verify repo_path exists:
ls -la ~/Projects/my-project
Build
“No activity found”
Likely causes:
| Cause | Fix |
|---|---|
| No git commits yet | Commit something first |
| No AI sessions | Only relevant if you’ve configured opencode_db_path or pi_sessions_path |
| No TODOs | Add a TODO or Needs Fixing comment |
This is normal for new projects. Activity appears as you work.
“Build is slow”
First build can be slow on large repos. Subsequent builds use cache.
Force a fresh build:
cerebro build --fresh
Delete the cache file (cache.json) from the platform cache dir:
rm ~/Library/Caches/cerebro/cache.json # macOS
rm ~/.cache/cerebro/cache.json # Linux
“OpenCode database not found”
Set the correct path in config:
opencode_db_path = "~/.local/share/opencode/opencode.db"
Verify the file exists:
ls -la ~/.local/share/opencode/opencode.db
MCP server
“MCP tools not available”
Restart OpenCode after configuring the MCP server.
Set CORTEX_PATH if your cortex data dir isn’t at the default ~/Projects/cortex.
Use an expanded path (a leading ~ inside quotes is not expanded by the shell):
export CORTEX_PATH="$HOME/Projects/my-data-dir"
Test the server directly:
cargo run -p cerebro-mcp # from a source checkout
cerebro mcp # the installed binary
“No projects found in MCP”
Verify your config includes the project and it’s set to active = true.
Serving
“Port already in use”
Pick a different port:
cerebro serve --port 3001
“Dashboard not updating”
Rebuild with --fresh:
cerebro build --fresh
Then refresh your browser.
General
“Unexpected behavior”
Run with debug logging:
RUST_LOG=debug cargo run -- build
“It’s broken and the cause is unclear”
Clear everything and start fresh:
# Remove the generated content (output_dir from your config)
rm -rf ~/Projects/cortex/content
# Remove cache
rm -rf ~/Library/Caches/cerebro # macOS
rm -rf ~/.cache/cerebro # Linux
# Rebuild
cerebro build --fresh