altk-evolve icon indicating copy to clipboard operation
altk-evolve copied to clipboard

feat(memory): add dreaming for offline memory extraction and consolidation

Open vinodmut opened this issue 6 months ago • 1 comments

Summary

Add support for "dreaming": an offline/background memory process that reviews saved trajectories and existing entities, then extracts, consolidates, deduplicates, and curates memory outside the main task loop.

This relates to #181, but should be a separate issue. #181 is about entity quality and retrieval; dreaming is the background process that can improve quality over time.

Motivation

Current Evolve memory is mostly produced at trajectory save/sync time. That is useful, but it biases toward immediate extraction. Some useful memories only become obvious after reviewing multiple trajectories, repeated failures, recurring tool patterns, stale entities, or conflicting guidance.

Dreaming should help Evolve:

  • extract useful memories from raw trajectories after the fact
  • consolidate duplicate or overlapping facts/guidelines
  • promote repeated observations into more durable memory
  • detect stale, weak, redundant, or contradictory entities
  • surface candidates for human or agent review
  • produce an auditable summary of what changed and why

Related Systems

  • Claude Managed Agents dreams: scheduled background memory curation for managed agents. https://platform.claude.com/docs/en/managed-agents/dreams

  • Letta sleep-time agents: background agents that share memory with a primary agent and asynchronously manage memory blocks from conversation history or data sources. https://docs.letta.com/guides/agents/architectures/sleeptime

  • Letta Code memory: periodic sleep-time / dream subagents that reflect on recent conversations and interactions to improve proactive memory creation and consolidation. https://docs.letta.com/letta-code/memory

  • OpenClaw dreaming: opt-in background memory consolidation that moves strong short-term signals into durable memory while keeping the process explainable and reviewable. https://docs.openclaw.ai/concepts/dreaming

Scope

This issue is for exploring and adding the background memory-curation capability, not for changing the core retrieval API immediately.

Initial scope should focus on:

  • offline processing of existing trajectories
  • candidate memory extraction
  • deduplication and consolidation
  • quality review / curation
  • provenance and auditability
  • integration with existing entity quality work

Related

  • #181: Entity Quality & Retrieval
  • #183: discussion: three kinds of entities — fact, guideline, observation
  • #180: Explainability & Provenance
  • #99: Processing Layer - Pluggable Workers

vinodmut avatar May 13 '26 16:05 vinodmut

I came across this https://github.com/NevaMind-AI/memU, and they have a side car bot could even update agent's memory in the middle of running

gaodan-fang avatar May 14 '26 16:05 gaodan-fang