Memory Graph
In a long conversation, early events, relationship changes, and world rules eventually drop out of the context window. Memory Graph collects important facts from the conversation into typed memory nodes in the background and recalls the relevant ones into the prompt, keeping long-term continuity intact hundreds of turns later.
Memory Graph is designed for long-form roleplay, serialized stories, and worlds that rely on stable continuity.
How it works
Memory Graph runs three background tasks.
Extraction. After an AI reply, Memory Graph reviews the turn and records facts worth keeping into nodes. Four default types cover common roleplay: characters (identity, relationships, goals, inventory), locations (controller, danger), events, and plot threads. Types and record items can be customized globally or per character card.
Recall. When you send a message, Memory Graph selects nodes relevant to the current scene and injects them into the prompt. By default an LLM judges relevance; RAG vector recall is also available.
Compression. As events accumulate, older events merge automatically into higher-level summaries. Underlying details remain in the graph and can be expanded or recalled again when relevant.
Extraction can run built in or be delegated to the memory curator agent in Multi-Agent Orchestration.
Getting started
- Open Workbench (wand menu → Workbench, corner pill,
Alt+W, or Extensions → Memory → Open in Workbench) and switch to the Memory graph workspace tab. - Open the Settings view inside Memory graph and turn on Memory Graph.
- Choose the API connection and chat-completion preset used for extraction and recall. Each preset dropdown defaults to Default (Built-in plugin-only), or pick Follow active main preset or a user preset. Click View built-in plugin-only to inspect parameters and entries in read-only mode or copy an editable version, or click Derive from an existing preset to open the preset workspace with Built-in · plugin-only selected as the reference. Extraction is structured bookkeeping, so a smaller model handles it well.
- Chat normally, then open Memory graph in Workbench to inspect the generated graph.
Views in Workbench
The Memory graph workspace inside Workbench provides five views:
- Graph — interactive Relationship web and Chronological layouts with node/relation filters, injected-text inspection, and a node details panel.
- Timeline — chronological story view grouped by summary tiers.
- Data table — tabular view of nodes with inline field editing.
- Memory structure — edit memory types, record items, extraction rules, persistent injection toggles, templates, import/export, and the Tag filter (which strips thinking blocks or status bars before extraction and recall read AI replies).
- Settings — extraction cadence and built-in floor hiding presets with live animated preview, LLM or RAG vector recall, compression thresholds, token usage trace, and iteration AI settings.
Extraction cadence and floor hiding
Under Memory graph → Settings, extraction frequency and old-floor hiding are configured together under Extraction Cadence & Floor Hiding. By default, Memory Graph uses Balanced · Recommended: it extracts every 2 AI replies in one batch and hides chat messages older than the latest 5 floors from the generation model so older history is supplied by the memory graph while the latest 2 turns plus the newest user message remain verbatim.
Pick another preset card to trade between update frequency and raw context length, choose No floor hiding to keep full raw chat history visible, or click Custom… to enter exact numbers and extraction mode in a modal with a live timeline preview and gap warning.



Reviewing and editing with AI
In Data table or Graph, you can edit fields, titles, and links directly; changes are saved to the current chat.
For broader edits, switch to Workbench → AI iteration and choose:
- Memory graph config — describe new memory types, record items, extraction instructions, or injection/compression adjustments globally or for the active character.
- Memory graph content — describe repairs in plain language, such as merging duplicate character nodes, updating outdated location states, or adding missing relationships in the current chat.
Proposed changes appear in the Change list with before/after diffs. Tick what to apply, or undo applied steps in Change history.

Fitting the structure to your world
Under Memory graph → Memory structure, or via AI iteration → Memory graph config, you can add types and record items tailored to your setting—such as magic systems, factions, or investigation clues—or start from a built-in template.

Custom structures can be saved globally or only for the active character card (travelling with the card on export). Each type carries its own extraction instructions and optional extraction cadence.
Persistent injection
World laws, inviolable character traits, and core plot threads belong in the prompt every turn. Enable Always visible to the AI on those memory types so their nodes are injected persistently. Setting a lookback floor limit moves older entries back into the on-demand recall candidate pool.
Common questions
Memories are wrong or duplicated
Describe the issue in Workbench → AI iteration → Memory graph content to merge duplicate nodes, fix fields, or update links.
What happens when I edit or delete a message
Memory Graph follows the chat history. Editing or deleting a message, or switching a swipe, rolls memory back to the state before the affected message.
Moving to another device or sharing memories
Export graph JSON from Memory graph → Settings and import it into the target chat. Import supports keeping original floor numbers, binding nodes to the latest floor, or binding to a chosen floor.
Regenerating on the same floor
Swipes and regenerations on the same floor reuse the previous recall result, keeping context consistent and avoiding duplicate model calls.
RAG vector recall
RAG recall uses vector search. Create an embedding profile under the Embedding tab of the API connection panel, select an embedding model and connection, then select that profile in Memory graph → Settings and build the vector index before switching recall to RAG.
Related pages
- Workbench — unified workspace, Q&A, AI iteration, and change history
- Multi-agent orchestration — hand memory curation to an orchestration agent
- World Info basics — how generated memories coexist with hand-written entries
- Character card basics — custom memory structures travel with the card