Memory System
LCM — DAG-based lossless context management with automatic compaction, 3D visualization, FTS5 search, and Obsidian vault access
Overview
Lite Suite includes LCM (Lossless Context Management) — a DAG-based memory system that stores every message immutably and automatically compacts context at increasing depth intervals (minutes, hours, days, months). Your AI agents never lose context, even across long-running sessions, without blowing up token budgets.
The Memory Graph panel provides an interactive 3D visualization of the entire memory DAG. Obsidian vault access is included as a secondary feature.
LCM Architecture
- Immutable message storage — nothing is ever deleted, only summarized at higher levels
- Automatic compaction at increasing depth intervals — raw messages compact into summaries at minute, hour, day, and month boundaries
- DAG structure — messages form a directed acyclic graph with parent-child relationships
- FTS5 full-text search across all stored memory
Memory Graph Panel
Interactive Three.js visualization of the LCM DAG with four view modes:
| Mode | Description | |------|-------------| | Strata | Geological layers by depth level | | Shells | Concentric atom structure | | Timeline | Temporal Z-axis layout | | Clusters | Force-directed grouping by conversation |
GPU instancing supports 50K+ nodes. Features include FTS5 search, node detail cards, and depth layer toggles.
Obsidian Vault Access
The memory system includes full Obsidian vault integration via MCP tools:
| Tool | Description |
|------|-------------|
| vault_read | Read a note by path or title |
| vault_write | Create or overwrite a note |
| vault_search | Full-text search across all notes |
| vault_list | List notes in a folder |
| vault_daily | Read or append to today's daily note |
| vault_recent | List recently modified notes |
| vault_tags | Find notes by tag |
| vault_link | Follow or discover wikilinks |
| vault_rag | Semantic search using the RAG index |
| vault_rag_index | Build or refresh the RAG index |
Configuration
Set your Obsidian vault path in Settings > Memory:
| Setting | Description | |---------|-------------| | Vault Path | Absolute path to your Obsidian vault directory |
The vault path must point to the folder containing .obsidian/.
Troubleshooting
Memory Graph shows no data. Confirm LCM has been initialized and the database file exists.
vault_search returns no results. The search index is built on first run. If the vault is large, allow a few seconds on startup.
vault_rag returns an error about missing index. Run vault_rag_index first to build the semantic index.
