💭 Dreaming: Background Memory Consolidation (Light → Deep → REM) #6

Open
opened 2026-05-16 13:40:06 +02:00 by FTMahringer · 0 comments
FTMahringer commented 2026-05-16 13:40:06 +02:00 (Migrated from github.com)

Summary

Implement a background memory consolidation system for Synapse agents, inspired by OpenClaws "Dreaming" feature. Agents should automatically sort, evaluate, and promote important short-term signals into durable long-term memory.

Phases

Light Phase (Sorting)

  • Ingest recent session logs, tool calls, and daily notes
  • Deduplicate similar signals
  • Stage candidate lines for evaluation
  • No permanent writes

Deep Phase (Promotion)

  • Score candidates using weighted signals:
    • Frequency (how often mentioned)
    • Relevance (retrieval quality)
    • Query diversity (mentioned in different contexts)
    • Recency (freshness)
    • Consolidation (multi-day recurrence)
  • Apply threshold gates (minScore, minRecallCount, minUniqueQueries)
  • Promote high-scoring entries to long-term memory
  • Writes to MEMORY.md

REM Phase (Reflection)

  • Extract patterns and recurring themes from recent sessions
  • Generate a readable "Dream Diary" summary
  • Identify meta-patterns
  • No permanent writes

Scheduling

  • Default: nightly sweep (e.g., 03:00)
  • Configurable via cron expression

Why This Matters

  • No manual memory curation
  • Scalable across agents
  • Explainable (Dream Diary)
  • Cost-aware (can use cheap/free models)
## Summary Implement a background memory consolidation system for Synapse agents, inspired by OpenClaws "Dreaming" feature. Agents should automatically sort, evaluate, and promote important short-term signals into durable long-term memory. ## Phases ### Light Phase (Sorting) - Ingest recent session logs, tool calls, and daily notes - Deduplicate similar signals - Stage candidate lines for evaluation - **No permanent writes** ### Deep Phase (Promotion) - Score candidates using weighted signals: - Frequency (how often mentioned) - Relevance (retrieval quality) - Query diversity (mentioned in different contexts) - Recency (freshness) - Consolidation (multi-day recurrence) - Apply threshold gates (minScore, minRecallCount, minUniqueQueries) - Promote high-scoring entries to long-term memory - **Writes to MEMORY.md** ### REM Phase (Reflection) - Extract patterns and recurring themes from recent sessions - Generate a readable "Dream Diary" summary - Identify meta-patterns - **No permanent writes** ## Scheduling - Default: nightly sweep (e.g., 03:00) - Configurable via cron expression ## Why This Matters - No manual memory curation - Scalable across agents - Explainable (Dream Diary) - Cost-aware (can use cheap/free models)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
FTMahringer/Synapse#6
No description provided.