Skip to content

Working Memory ​

On-disk layout (typical) ​

Inside your repository:

.cm/
  CONTINUITY.md          # session spine (src/continuity.ts)
  config.yaml            # project config (e.g. storage backend)
  context-bus.json       # skill chain handoff bus
  token-budget.json      # category budgets
  context.db             # SQLite + FTS (default backend)
  memory/
    learnings.json       # legacy / migration path
    decisions.json
  sprint/                # engineering pipeline artifacts

Exact files depend on which commands you have run and migration state.

What to store where ​

ContentStoreWhy
Current goal + blockersCONTINUITY.mdFast human scan
β€œDo not repeat” lessonslearningsSearchable, TTL-capable
Architectural choicesdecisionsSearchable, citeable
Step output for chainscontext busMachine-readable handoff
Execution outcomesexecution_analysesAdvisory evidence
Skill quality signalsskill_metricsRouting + recovery input

Agent access (MCP) ​

The MCP server (src/mcp-context-server.ts) exposes:

  • cm_query β€” search learnings/decisions
  • cm_resolve β€” load cm:// resources at L0/L1/L2
  • cm_bus_read / cm_bus_write β€” context bus
  • cm_memory_decay β€” TTL archival

Backends ​

  • sqlite (default) β€” SqliteBackend in src/storage-backend.ts
  • legacy configs β€” if an old project still says storage.backend: viking, CodyMaster warns and falls back to SQLite

Advisory data ​

The advisory loop also stores its evidence in .cm/context.db:

  • execution_analyses β€” recent task outcomes plus analyzer recommendations
  • skill_metrics β€” aggregated per-skill counters and the inputs used by qualityWeight()

Use these commands instead of querying the DB manually in most cases:

bash
cm advisory report --project .
cm advisory metrics --project .
cm advisory handoff --project . --for cm-skill-health

See also ​

CodyMaster β€” AI-assisted engineering toolkit