For anyone deciding what to put in the Brain and how an agent reads it.
Updated
The Brain is a typed, curated model of one business: entities, relationships, vocabulary, rules, processes and metrics, each with its source. Agents read it over MCP, starting with get_index, so they answer from your definitions instead of guessing.
A Brain is what is known about how one business works. It has four stores and one feedback loop: the Domain Model (typed and curated), the Wiki (narrative pages), Traces (interpreted events) and Skills (procedures), plus Learnings (corrections from agents and people). Each project in your organization is one Brain.
Entities with typed fields, relationships with cardinality, vocabulary with aliases that map terms to entities, rules, processes and metrics. Keys and join keys sit on the entities, and field annotations record units, encodings and caveats. Every element carries its source: which connector and draft it came from.
Connect a database schema, SQL files or docs. An ingest run proposes entities and relationships, orients them against what the Brain already knows, and enriches instead of duplicating. A person approves the draft before it merges, and curated values survive re-ingest. For databases the Brain reads schema metadata and never rows by default; opt-in column profiling (--profile-data) samples rows for statistics, and full mode also sends enum values and JSON key shapes.
Agents start with get_index, which returns the whole Domain Model and counts for the other stores. Then recall_domain searches concepts, rules, relationships, processes and metrics by term or entity. Elements that recent events keep contradicting show up as staleSignals in get_index.
Use brain-recall: what counts as an active customer, and which table backs it?| Store | Holds | Shape |
|---|---|---|
| Domain Model | Entities, relationships, vocabulary, rules, processes, metrics | Typed, curated, cumulative |
| Wiki | Your documents verbatim and written briefs | Narrative pages in namespaces |
| Traces | Interpreted events | Immutable, time-ordered |
| Skills | Procedures for recurring work | Versioned markdown |
| Learnings | Corrections from agents and people | Active, promoted, absorbed |