For teams deciding how to give agents reliable knowledge of their business.
Updated
A context layer sits between your business sources and your AI agents. It ingests schema, documents and events, turns them into structured, source-attributed knowledge that people review, and serves the right slice to an agent at query time. The Brain is BrainBox's context layer: a typed Domain Model, a Wiki, Intelligence Traces, Skills and a loop of learnings, served over MCP.
An agent can read your schema and your documents, but it cannot read your business: what "active customer" means, which of three tables is the real one, which policy applies, what was decided last quarter. Teams end up building the same layer under every agent to hold this. A context layer is that layer, built once and shared.
A Brain is what is known about how one business works. It has a Domain Model (typed and curated), a Wiki (your documents and written briefs), Traces (interpreted events), Skills (procedures) and Learnings (corrections from agents and people). Elements carry their source, a person approves what ingestion proposes, and agents read it over MCP. We call the category the context layer and the product the Brain.
A context layer is not your agent runtime or orchestration, your LLM gateway, the inline guardrails that check an agent's output, your system of record, or your data pipelines. It reads from those and records knowledge about them. Business rules can live in the layer as content; enforcing them stays in your harness.
If one assistant answers questions from a small document set, plain retrieval may be enough. If you only need consistent KPI numbers, a semantic layer may be enough. A context layer earns its place when several agents need the same reliable view of the business, when meaning lives in people's heads, and when knowledge changes and needs review.
| Building block | Question it answers | In the Brain |
|---|---|---|
| Ingestion | Where does knowledge come from? | Connectors for SQL, docs, dbt, MCP servers and NoSQL; events through process_event |
| Ontology | What do our terms and entities mean? | Domain Model: entities, relationships, vocabulary, rules, processes, metrics |
| Retrieval | What is the right slice for this question? | get_index, recall_domain, recall_wiki, get_wiki_page |
| Memory | What happened, and how do we do things? | Traces, wiki briefs, skills, personal pages |
| Feedback | How does it correct itself? | Learnings and context gap reports |
| Tenancy and access | Who can see and change what? | Tenants, scoped keys, OAuth 2.0 |
| Review and audit | Who approved this, and where did it come from? | Drafts approved by people, source attribution, an audit log |