Memory Crystal uses two shelves.Documentation Index
Fetch the complete documentation index at: https://docs.memorycrystal.ai/llms.txt
Use this file to discover all available pages before exploring further.
- One shelf is for what just happened.
- One shelf is for what should stay important later.
What this means in practice
The two main layers are:Short-term memory (STM)
This stores recent or raw conversation history. It helps with continuity, exact wording, and “what were we just talking about?” questions.Long-term memory (LTM)
This stores distilled durable memories like facts, rules, decisions, goals, and workflows. It helps with cross-session continuity and high-value recall.How it actually works
The repo implements these layers through:crystalMessagesfor short-term/raw message storagecrystalMemoriesfor durable long-term memory records
README.mddocs/00-project-overview/OVERVIEW.mdconvex/schema.tsconvex/crystal/messages.tsconvex/crystal/memories.tsconvex/crystal/recall.ts
Commands / examples
Useful companion docs:Common mistakes
- thinking “messages” and “memories” are the same table or concept
- assuming all stored text is permanent
- forgetting that recent message continuity and durable memory retrieval solve different problems
Source of truth
Primary files behind this page:README.mddocs/00-project-overview/OVERVIEW.mdconvex/schema.tsconvex/crystal/messages.tsconvex/crystal/memories.ts