Concepts · The Brain

The Brain: your business as a typed model

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.

  • One project is one Brain, with four stores and a feedback loop.
  • Built from schema metadata and docs; a person approves drafts before they merge.
  • By default no database rows are read.

What it is

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.

What the Domain Model holds

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.

How it gets built

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.

How an agent reads it

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?
The stores in a Brain
StoreHoldsShape
Domain ModelEntities, relationships, vocabulary, rules, processes, metricsTyped, curated, cumulative
WikiYour documents verbatim and written briefsNarrative pages in namespaces
TracesInterpreted eventsImmutable, time-ordered
SkillsProcedures for recurring workVersioned markdown
LearningsCorrections from agents and peopleActive, promoted, absorbed

FAQ

What is the difference between the Brain and the Wiki?
The Domain Model holds typed structure agents query: entities, relationships, rules, metrics. The Wiki holds narrative pages: your documents verbatim and written briefs.
Where does the Brain get its content?
From connectors: database schema metadata, SQL files and docs. Events add traces and learnings over time.
Does BrainBox read my database rows?
Not by default. Opt-in column profiling (--profile-data) samples rows for statistics, and full mode also sends enum values and JSON key shapes.
How does an agent query it?
Over MCP: get_index first, then recall_domain by term or entity.

Give your agents a brain.

Sign in and ask your first question.

Book a Demo