Skip to main content

Module memory

Module memory 

Source
Expand description

Persistent memory tools: remember, recall, forget.

Notes are stored in <workspace>/.recursive/memory.json (or ~/.recursive/memory.json if RECURSIVE_MEMORY_GLOBAL=1). Schema:

{ "notes": [ { "id": "N1", "tags": ["rust"], "text": "...", "ts": "..." } ] }

Structs§

Forget
MemoryStore
The on-disk store.
Note
A single memory note.
Recall
Remember

Functions§

load_memory
Load the memory store from the workspace-relative path.
memory_path
Determine the memory file path based on workspace and env var.
memory_summary
Build a memory summary string for injection into the system prompt. Returns the top N most recent notes as a formatted block, or empty string if no notes exist.