memory CLI handles the full lifecycle: create spaces, inspect notes/nodes/edges, manage scoped sessions, and interact with diagnostic (learned failure) memory.
Four space paradigms (see Memory spaces):
- wiki — human-authored notes.
- index — vector-indexed nodes with optional graph edges.
- session — per-conversation short-term memory.
- evolution — diagnostic memory, auto-populated.
notes for wiki, nodes/edges for index, sessions for session, diagnostic for evolution.
Command groups
- Spaces:
spaces list/get/create/update/delete - Wiki notes:
notes list/upsert/grep/exclude - Index nodes:
nodes list/insert/update/set-position/exclude - Index edges:
edges list/insert/update/exclude - Diagnostic:
diagnostic list/recall/peek/exclude/restore - Sessions:
sessions scopes/turns/summary/count - Meta:
log,scopes,connected-flows
Spaces
List / get
Create
--slug(required) — stable identifier.--name(required) — display name.--paradigm wiki|index|session|evolution(required).--index-form vector|graph— forindexparadigm, whether to enable graph edges.--kg-reference— mark as a knowledge-graph reference space.--access-scope-key <key>— the scope key used to isolate reads/writes.--config <json>— additional paradigm-specific config.
Update
Delete
Wiki notes
Forparadigm=wiki spaces.
List
Upsert
--body accepts inline text, @file for a path, or - for stdin.
Grep
Exclude (soft-prune)
Index nodes & edges
Forparadigm=index (with index-form=graph) spaces — the entity-relationship data model.
Nodes
Edges
Diagnostic memory
The evolution paradigm accumulates known failure patterns.Sessions
Forparadigm=session spaces.
Meta
Recipes
Bulk-insert notes from markdown files
Migrate scope key on a space
Changeaccess-scope-key — old items retain old scope; new items use new. Migration is manual: