memory_dream
Manage long-term memory by consolidating recent memories into canonical facts and graph structure; track backlog, run dream passes, and roll back committed changes.
Instructions
Drive the dream — consolidation of recent memories into canonical facts and graph structure.
Actions:
status: backlog + whether a sweep would fire. Read-only.
pull: unconsolidated memories, oldest first; write facts via
memory_fact_set, then commit.
run: a server-side dream with the configured extractor
(loop to drain).
deep: full-corpus graph consolidation; dry run unless
apply. Settle candidates via
memory_graph_review; duplicate lesson/world slots are
listed for hand curation. Lists are capped; truncated
holds their full counts.
runs: recent dream passes (tallies, status).
rollback: revert a committed pass from its journal (facts +
events; traces/cursor kept).
Returns: per-action dict; {error} on bad input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | deep: True writes the consolidation (graph tables are snapshotted first); the default is a dry run. | |
| limit | No | pull/run: how many memories to process (pull defaults to 40). runs: how many passes to list (defaults to 10). | |
| action | Yes | ||
| cursor | No | Deprecated; use commit_token. | |
| run_id | No | rollback: which pass to revert; defaults to the newest committed pass. | |
| snippets | No | deep: False omits the evidence snippets. | |
| commit_token | No | commit: token returned by pull. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||