Skip to main content
Memory spaces hold what Agents remember. The 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.
Commands adapt to the paradigm — 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

Flags:
  • --slug (required) — stable identifier.
  • --name (required) — display name.
  • --paradigm wiki|index|session|evolution (required).
  • --index-form vector|graph — for index paradigm, 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

Only flags passed change.

Delete

Notes, nodes, and edges cascade.

Wiki notes

For paradigm=wiki spaces.

List

Upsert

--body accepts inline text, @file for a path, or - for stdin.

Grep

Full-text search across notes.

Exclude (soft-prune)

Excluded notes don’t appear in retrieval but remain in the audit log.

Index nodes & edges

For paradigm=index (with index-form=graph) spaces — the entity-relationship data model.

Nodes

Edges

Diagnostic memory

The evolution paradigm accumulates known failure patterns.

Sessions

For paradigm=session spaces.

Meta

Recipes

Bulk-insert notes from markdown files

Migrate scope key on a space

Change access-scope-key — old items retain old scope; new items use new. Migration is manual:

Find unattached spaces (candidates to delete)

Snapshot a wiki to git