
Claude agents have a new way to tidy their accumulated memories: Anthropic’s Dreaming process creates a reorganized store while leaving the original intact. OpenClaw released a similarly named feature last month, using a different approach built around workspace files. Anthropic’s version is a research preview with limited implementation details, while OpenClaw’s code can be examined directly. The AI Automators explore both approaches and the problem of agents retaining the wrong context. Discover how each system handles memory and when consolidation may be useful.
Anthropic Creates A Separate Memory Store
TL;DR Key Takeaways :
- Anthropic’s Dreaming preview produces a separate memory store without altering the original.
- OpenClaw saves durable memories and daily notes as markdown in the agent’s workspace.
- Light, REM and deep phases stage observations, identify patterns and rank durable candidates.
Anthropic’s Dreaming runs on a schedule between active sessions, reviewing agent sessions and memory stores for patterns. Claude writes to those stores as it interacts with agents on Anthropic’s managed platform. Over many sessions, duplicate entries, contradictions and stale information can accumulate, making those stores harder to rely on.
A consolidation job can remove duplication, order information and reconcile conflicting entries into concise memories. The process reads the existing store alongside past session transcripts and produces a separate reorganized store, without changing the original. The new store can be discarded if it is not wanted.
The release looks like a managed harness around a pattern the open-source ecosystem has been developing for some time: reducing the need for users to repeat information an agent has forgotten. Managed platforms can involve cost, vendor lock-in and reduced control, particularly when memory is difficult to move to another provider. What an agent should retain between sessions is also a relevant question for tools such as Claude Cowork.
OpenClaw Keeps Memory In Workspace Files
OpenClaw’s Dreaming feature builds on an open-source system that stores memories as plain markdown files in the agent’s workspace. The model remembers only what is saved to disk. Its long-term file, MEMORY.md, holds durable facts, preferences and decisions and is loaded at the start of every direct-message session.
Daily notes hold running context and observations, with today’s and yesterday’s notes loaded automatically. When Dreaming is enabled, OpenClaw keeps machine state in a folder and human-readable output in a dreams markdown file. A dreaming sweep may promote an item to MEMORY.md, making it available when that file is loaded for a direct-message session.
Light, REM And Deep Phases Rank Memories
The dreaming sweep sorts recent material before deciding what deserves a place in durable memory. Its phases have distinct jobs:
- The light phase sorts and stages recent short-term material.
- The REM phase reflects on themes and recurring ideas, recording reinforcement signals for deep ranking.
- The deep phase scores durable memory candidates and promotes worthwhile items to MEMORY.md when necessary. It may also add information to the dreams markdown file.
Deep ranking uses frequency and relevance as signals. Frequency describes how many short-term signals an entry has accumulated, while relevance is the entry’s average retrieval quantity. These signals inform which candidates are worth keeping as durable memories rather than leaving every observation in short-term material.
Repeated Work Gives Dreaming Useful Patterns
The sweep has more useful material to consolidate when an agent repeatedly handles the same kind of work, such as legal drafting or support ticket triage. Recurring mistakes or repeatedly missed context can also provide patterns to identify. Consolidation can work across multiple users, although doing so introduces further challenges.
It may help when an agent spends the first 20 minutes of each run rediscovering tasks or conventions, no Skills have been created for those tasks, and the aim is for the agent to pick up that information gradually and continuously. Widely varied work, one-off tasks and short-lived agents are poorer fits because there is less repeated material to consolidate. If you need to know exactly what an agent knows, examining consolidated memories can take more time than it saves.
Stored Mistakes And Instructions Can Persist
Even with consolidation, memory can bloat, contradict itself or preserve the wrong lessons. A bad memory can leave an agent confidently wrong over the long term, while stale information can be treated as current. Those risks matter when a stored entry is carried into future sessions rather than checked against the work at hand.
Memory poisoning adds a security concern: injected instructions can survive across sessions and might execute days or weeks later. A memory system needs deliberate design for its agent and domain, rather than relying on consolidation alone. A generalized Dreaming layer rarely beats one designed for a specific agent and domain.
Adapt The Design Beyond Markdown
OpenClaw’s implementation offers a starting point for building a system suited to a particular domain. Clone the repository and open its memory core folder to examine the files related to Dreaming. You can then point a coding agent such as Claude Code or Codex at those files and ask it to analyze the implementation and build a similar memory system into your own AI system.
The architecture can be adapted to write and retrieve memories from vector, SQL or graph databases instead of markdown. A standard relational database is another storage option, although markdown files can scale further than many people realize. The storage choice can therefore follow the agent’s needs rather than being dictated by the Dreaming pattern.
Other memory systems offer different starting points. M0 provides a hybrid vector and graph memory layer, while Zep uses the Graphiti library, which can also be used separately. Hermes, an OpenClaw alternative, has a built-in persistent memory layer that can be examined in its GitHub repository and integrates out of the box with external providers including Honcho and M0.
We think the choice between OpenClaw’s inspectable markdown and Anthropic’s managed approach should begin with how much control you need over stored context. The separate reorganized store is a useful safeguard because it preserves the original, while OpenClaw’s files offer a design developers can examine and adapt. Neither approach removes the need to consider stale entries and injected instructions, so recurring work alone is not a reason to add consolidation without designing memory for the agent’s domain.
Dreaming is best suited to agents that encounter recurring tasks and context often enough to build useful patterns. For short-lived agents or varied one-off work, examining consolidated memories may take more time than it saves. A domain-specific memory design remains more useful than adding a general consolidation layer for its own sake.
More on Claude:
- Why Hermes Agent Is Becoming the Go-to Open-Source Alternative to OpenClaw
- NVIDIA NemoClaw Adds Enterprise Security Tools to OpenClaw Agents
- OpenClaw Just Got Banned by Anthropic Heres Why
- Claude Dispatch Runs Desktop Agents From Your Phone
Media Credit: The AI Automators
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.