Skip to main content
As Memory Stores accumulate entries over time, they may contain duplicates, outdated information, or gaps. Dreams provide asynchronous memory consolidation — the system spins up a dedicated Agent to review recent sessions and reorganize the Memory Store by merging, pruning, and supplementing entries.

Core Concepts

Workflow

API Endpoints

Quick Start

1. Trigger memory consolidation

2. Check progress

3. View results

Once completed, the outputs field contains the consolidated Memory Store ID:

Optional Parameters

Safety Design

  • Copy-on-Write: The input Memory Store is never modified; all writes target the cloned output
  • Least Privilege: The Dreaming Agent can only use memory, session_list, and session_read tools — no code execution or network access
  • Single-flight: Only one active Dream per user (pending or running); duplicate creation returns 409

FAQ

Q: Will a Dream modify my original Memory Store? A: No. Dreams always operate on a cloned copy. The original Memory Store is completely unaffected. Q: How long does a Dream take? A: Typically 1-5 minutes, depending on Memory Store size and the number of sessions to review.