Skip to main content
  1. Articles/

Claude Code AutoDream: Your AI Agent Finally Sleeps on It

·1134 words·6 mins·

Anthropic didn’t announce this one. There was no blog post, no TechCrunch headline, no product launch email. AutoDream was discovered by developers poking around Claude Code’s internals, reading system prompts they weren’t supposed to see. The system prompt says it plainly: “You are performing a dream — a reflective pass over your memory files.”

That’s either the most poetic thing a software tool has ever said, or a sign that someone at Anthropic is having too much fun naming internal features. Either way, the feature is real, it’s rolling out now, and it fixes something that’s been quietly broken about Claude Code’s memory for a while.

The Problem with AutoMemory
#

AutoMemory — the predecessor — let Claude Code persist notes across sessions. The idea was right: long-running projects benefit from context that outlasts individual conversations. You don’t want to re-explain your architecture every time you open a new session.

The execution had problems.

Memory files decayed. Notes written three weeks ago referenced “yesterday’s refactor” with no absolute date. Conflicting decisions piled up without resolution — Claude would have two notes that said opposite things about the same module and no way to know which was current. And memory files grew unbounded, consuming token budget that should have gone to actual code.

The result was a memory system that technically worked but required manual curation to stay useful. Which meant most people didn’t curate it, which meant the memory got progressively less reliable over time.

What AutoDream Does
#

AutoDream runs as a background sub-agent between sessions — never during active work. It executes a four-phase process:

  1. Orientation — reads the current memory files and assesses their state
  2. Gather Signal — identifies what’s stale, conflicting, or redundant
  3. Consolidation — merges fragmented or related notes into coherent entries
  4. Prune and Index — removes outdated entries and restructures the file for retrieval efficiency

The concrete example that keeps coming up: relative temporal references. AutoDream converts “Yesterday we decided to use Redis” into “On 2026-03-15, we decided to use Redis.” Small change. Enormous difference in how useful that note is three months from now.

It also resolves conflicts. When two memory entries contradict each other, AutoDream determines which is more recent and more likely to be current, then consolidates them into a single authoritative note. No more Claude confidently citing a decision that was reversed six commits ago.

Why the Sleep Metaphor Is Actually Apt
#

The human brain consolidates memory during REM sleep — transferring short-term experiences into long-term storage, pruning irrelevant details, strengthening connections between related concepts. This is well-established neuroscience, and it’s a legitimately good metaphor for what AutoDream does.

Claude Code’s equivalent: you work on a project for an hour, generate a bunch of session notes, and AutoDream runs afterward to decide what’s worth keeping, what’s stale, and how everything fits together. The agent that starts your next session is working from a cleaner, more accurate picture of your project than the one that ended the last session.

The “between sessions” timing is deliberate. You don’t want a background process competing for tokens while you’re actively working. And the consolidation benefits from having a complete session to work with rather than interrupting one mid-stream.

Rollout Status (Honest Assessment)
#

This is still a staged rollout with some rough edges.

The feature flag is tengu_onyx_plover on the server side — not a user-configurable toggle that’s universally available yet. The minimum interval between dream runs is 24 hours. It requires at least 5 accumulated sessions before it triggers. Some users have reported that autoDreamEnabled shows true in their settings and the toggle appears in /memory, but running /dream manually returns “Unknown skill” — the server-side flag hasn’t flipped for them yet.

Anthropic has said public rollout is coming within the week. Given their track record with Claude Code launches, that probably means sometime in the next 72 hours.

To check if you have it: run /memory inside a Claude Code session and look for “Auto-dream: on” in the selector. You can also add "auto_dream": true to ~/.claude/settings.json — this won’t force the feature if your account isn’t in the rollout, but it’ll enable it automatically when you are.

What This Changes
#

The practical impact is larger than the feature description suggests.

Claude Code has been positioning itself as a long-running project collaborator, not just a task-by-task tool. That positioning only works if the memory system is reliable. Unreliable memory means you spend the first few minutes of every session correcting Claude’s misconceptions about your codebase. That’s the opposite of delegation.

AutoDream is what makes the memory system trustworthy over time. It’s the maintenance layer that ensures the context Claude starts with is accurate, not just accumulated. The difference between a junior dev who takes good notes and one who takes good notes and reviews them regularly.

This also has implications for context efficiency. Pruned memory files use fewer tokens. On long projects, that compounds — you’re not burning context budget on stale information from two months ago.

The Competitive Gap This Opens
#

Cursor uses static .cursorrules files. Useful for project setup, not designed to evolve. GitHub Copilot has minimal persistent memory. Windsurf has project-level rules but no cross-session learning mechanism.

AutoDream is the first AI coding tool that actively manages its own memory over time. That’s a meaningful capability gap, and it compounds — a Claude Code instance that’s been working on your project for three months will be qualitatively more useful than a fresh setup, not just quantitatively. The memory gets better as it gets curated.

Whether that gap stays wide depends on how quickly the other tools ship comparable features. But Anthropic has a structural advantage here: Claude Code’s memory system was designed as a first-class feature from the start, not retrofitted onto a chat interface. AutoDream is a natural extension of that architecture.

The Unannounced Launch Tells You Something
#

Anthropic didn’t announce AutoDream because it wasn’t ready for a public launch. The staged rollout, the buggy /dream command, the server-side flag — these are signs of a team shipping something real before it’s polished, which is the right call. Waiting for perfect means shipping late.

But it also reflects something about where Claude Code is in its development cycle: features are landing faster than the communications team can announce them. That’s a good problem to have, and it means the changelog is worth reading more carefully than the press releases.

AutoDream will get a proper announcement soon. For now, check /memory, enable the flag if you have access, and let your agent sleep.


Sources: Claude Code AutoDream: Anthropic’s New Memory Feature — ClaudeFa.st, Does Claude Code Need Sleep? Inside the Unreleased Auto-dream Feature — DEV Community, What Is Claude Code AutoDream? — MindStudio, AutoDream GitHub Issue #38461 — anthropics/claude-code

Related