Architecture overview¶
Memcal keeps a local memory store that can serve multiple agents. It collects source messages, processes them in Dream, and renders a brief. Agents such as Hermes and OpenClaw, or any MCP client, can read the brief, open details, and write corrections through typed tools.
The loop¶
streams ──▶ observe ──▶ gate ──▶ spool ──▶ dream (nightly) ──▶ typed stores ──▶ brief
▲ │
│ daytime collection (model-free) ▼
└────────────────────── freshness hints ◀────────────────────── agent turns
- Day: connectors collect new traffic without model calls. Freshness hints flag activity that could affect known context.
- Turn: the agent receives the brief plus any freshness hints, reads original messages when an answer needs checking, and applies evidence-backed corrections through typed tools.
- Night: dream reconciles everything collected into typed state and re-renders the brief.
Design principles¶
- A brief with details on demand. The brief includes the next 30 days by default; tools retrieve other dates and supporting evidence.
- Related information across sources. Memcal groups and reconciles mentions of the same person or plan from messages, email, and agent conversations.
- Evidence-based updates. Corrections are applied per field according to when the evidence was said, with previous values retained in history.
- Structured changes. The model proposes updates to events, to-dos, wiki entries, and questions rather than saving an unstructured list of memories.
- Use model calls where judgment helps. Ingest uses dictionary lookups for identity and policy; model calls handle extraction and ambiguous matches.
- Preserve uncertainty. When evidence is insufficient, Memcal can raise a question rather than turn a guess into a fact.
Map¶
| Page | Question it answers |
|---|---|
| Observe | How does raw traffic get in? |
| Gate | What deserves model attention, and what costs nothing? |
| Dream | How does traffic become typed state? |
| Brief | What does the agent see every turn? |
| Events & series | How are plans represented? |
| To-dos | How are obligations tracked? |
| Questions | How is uncertainty handled? |
| Wiki | Where do durable facts live? |
| Identity | Who is who? |
| Daytime freshness | What happens between dreams? |
| Evidence & provenance | Why should I believe a row? |
| Storage | Where do the bytes live? |
| Performance | What does it cost, and how fast is it? |
| memcal vs retrieval | Why not just vector search? |