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

3. Four data collectors

Date: 2026-04-22

Status

Accepted

Context

Cerebro generates context from development activity. The design must specify which data sources to collect from.

Decision

Cerebro collects data from four sources:

SourceImplementationData
OpenCodeSQLite via opencode_db_pathSession history
Gitgit2 crateCommits, modified files
TODOsRegex scan on source filesTODO, Needs Fixing, Hack, and Placeholder comments
Manual Notesnotes/projects/{name}.mdStatus, journal, intent

Consequences

Pros

  • Broad coverage of development activity signals
  • Each collector is independent
  • Manual notes provide human context

Cons

  • Git collection can be slow on large repos
  • The TODO regular expression may produce false positives in strings

Notes

The collectors/mod.rs module orchestrates the collectors. Each collector is async and can run in parallel.