How the Master Database and Contexts work
mainThe system uses a hierarchical storage model based on a Master Database and optional Named Databases (Contexts).
- Master Database: The primary store, always named
defaultand stored asmemory.jsonl. It is used by default if no context is specified. - Named Databases (Contexts): Used to organize memories by topic (e.g.,
work,personal). These are stored asmemory-{context}.jsonl(e.g.,memory-work.jsonl). - Storage Priority: The system first looks for a
.aimdirectory in the current project. If not found, it falls back to the directory configured via--memory-pathin your MCP settings.
New databases are created automatically when a new context is used; no manual setup is required.