CodyMaster Brain β
TIP
Metaphor: the βbrainβ is not a model β it is durable project state plus retrieval rules so agents load the right slice of context at the right time.
Core concepts β
Continuity (CONTINUITY.md) β
Structured working memory for the active goal, phase, blockers, and recent actions (src/continuity.ts). This is the human- and agent-readable spine of a session.
Learnings and decisions β
- Stored in project memory (JSON legacy paths and/or SQLite
context.dbdepending on migration state). - Searchable via FTS when using SQLite (
src/context-db.ts). - Exposed to MCP clients through
cm_query(src/mcp-context-server.ts).
Context bus (.cm/context-bus.json) β
Publishes step outputs for skill chains so downstream steps do not re-derive state from chat history (src/context-bus.ts, MCP cm_bus_read / cm_bus_write).
Token budget (.cm/token-budget.json) β
Category budgets and pre-flight checks (src/token-budget.ts, MCP cm_budget_check).
cm:// URIs β
Unified addressing for memory, skills, and pipeline snapshots (src/uri-resolver.ts, MCP cm_resolve).
Retrieval depths (L0 / L1 / L2) β
| Depth | Typical use |
|---|---|
| L0 | Cheapest β compact indexes / abstracts |
| L1 | Default β overview |
| L2 | Full content when justified |
Removed OpenViking backend β
Older CodyMaster versions experimented with an OpenViking-backed path. That runtime backend has been removed; legacy configs that still mention storage.backend: viking now fall back to SQLite with a warning.