Skip to content

[Feature]: Dream Mode — Periodic Memory Consolidation & Reflective Learning #5849

@Svtter

Description

@Svtter

[Feature]: Dream Mode — Periodic Memory Consolidation & Reflective Learning

Summary

Enable ZeroClaw to enter a Dream Mode during idle periods — a lightweight background process that consolidates daily memories, reflects on recent interactions, and updates long-term knowledge structures without requiring active user engagement.

Motivation

Current memory systems rely on explicit capture during active conversations. Important context, patterns, and lessons are often lost between sessions. A periodic "dream" process would:

  • Consolidate daily notes (memory/YYYY-MM-DD.md) into MEMORY.md
  • Identify patterns across interactions (recurring topics, unresolved loops, user preference shifts)
  • Prune stale or contradictory memories
  • Pre-compute context so the agent wakes up smarter each session

Proposed Behavior

Trigger Conditions

  • Idle timeout (configurable, default: 30 min no interaction)
  • Cron schedule (e.g., nightly at 03:00 UTC)
  • Manual trigger via command: /dream

Dream Cycle

  1. Gather — Collect recent daily notes, open loops, and conversation summaries
  2. Reflect — LLM pass to identify patterns, lessons, and preference changes
  3. Consolidate — Update MEMORY.md with distilled insights
  4. Prune — Remove resolved loops, outdated facts, and redundant entries
  5. Report — Optional summary sent to user on next interaction ("While you were away…")

Safety

  • Read-only by default (dream writes only to designated memory files)
  • User can review all changes before they persist (opt-in audit mode)
  • No external actions during dream (no API calls, messages, etc.)

Design Considerations

  • Token cost — Dream cycles should use a lightweight/cheap model
  • Concurrency — Must not interfere with active sessions
  • State recovery — If dream is interrupted, it should resume cleanly
  • Configurable depth — Users should control how aggressive consolidation is

Open Questions

  • Should dream mode support multi-day consolidation (catching up after weekends)?
  • Should it generate a "dream log" for transparency, or just update MEMORY.md silently?
  • How to handle conflicts between user-edited MEMORY.md and auto-consolidated content?

Cross-References

OpenClaw — Issues

  • #64756 — [Bug] Dreaming page text on top of the dreaming page dashboard
  • #67413 — Feature Request: Per-agent dreaming configuration
  • #65630 — Decouple dreaming from memory slot
  • #67397 — [Bug] Dreaming cron skipped by heartbeat activeHours
  • #67562 — Dreaming narrative push fails on Feishu due to hardcoded "default" target
  • #66358 — [Bug] Dreaming creates redundant sessions after sweep
  • #65963 — Dreaming: session sprawl, missing model override, no auto-cleanup
  • #66947 — Dreaming system pollutes daily memory files
  • #67912 — [Bug] Dreaming overwrites daily memory files instead of only writing to memory/.dreams/
  • #67058 — [Feature] Add session list filter to hide dreaming/system sessions
  • #67868 — Memory status reports "Dreaming: off" when only light phase is enabled
  • #67611 — [Feature] Automatic Cleanup of Dreaming sessions
  • #66185 — [Bug] Dreaming cron reports success but produces no artifacts
  • #67016 — Dreaming UI lacks status information
  • #63372 — [Feature] Allow dreaming to use a configurable model override
  • #65367 — [Bug] Dreaming iterates all agent workspaces serially with no config to scope

OpenClaw — PRs

  • #67846 — Memory: validate dreaming cron frequency
  • #67420 — feat(memory): per-agent dreaming control
  • #67882 — fix(memory-core): report active dreaming phases in memory status
  • #67833 — fix(memory-core): run managed dreaming cron in isolated agent turns
  • #67073 — fix(dreaming): use isolated sessionTarget instead of main
  • #66583 — feat(memory-core): add dreaming.model config field
  • #67023 — fix(memory-core): prevent dreaming-narrative session leaks
  • #67601 — fix(memory-core): stop dreaming from promoting transport metadata
  • #65589 — feat(memory-core): dreaming circuit breaker
  • #67697 — feat(memory-core): persist session trigger, exclude cron/heartbeat from dreaming
  • #66152 — fix(memory-core): add dreaming config to plugin schema

Hermes Agent — Issues

  • #5533 — feat(dreaming): introduce stable Dreaming reflection mode
  • #10771 — Feature Request: Automatic Memory Consolidation (Auto Dream)
  • #7896 — [Feature] CerebroCortex memory provider with dream consolidation
  • #8457 — Persistent Session Memory with Cross-Session Search & Auto-Compression

Hermes Agent — PRs

  • #9225 — Add local-first memory recall and dreaming MVP

Metadata

Metadata

Assignees

No one assigned

    Labels

    cronAuto scope: src/cron/** changed.enhancementNew feature or requestmemoryAuto scope: src/memory/** changed.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions