Skip to content
Technology
ResearchOpinion

AI Can Dream. What Now?

Claude now rewrites its own memory between sessions, and that turns every idle hour into time a machine can learn.

Edited by Ryan Elliott Dennis9 min read · 2,156 words · 17 sources
Ai Lately's robot, spray-painted with big sparkling eyes and a small smile on a torn round of cardboard, pinned to a clothesline by two wooden clothespins against a deep blue sky
“Anthropic let Claude dream through 128 sessions, and one memory score nearly quadrupled, from 13 percent to 48 percent. Does a machine that improves in its sleep still need people awake?”

Kelly Dennis reported on Nov. 7 for Ai Lately that Anthropic taught Claude to dream between work sessions3. Claude Opus 5 agents worked through 350,000 internal files from Stainless, a software company Anthropic acquired in May, over 128 offline sessions1. Claude's wiki-alone memory score rose from 13 percent to 48 percent. Paired with search, its accuracy climbed from 54 percent to 61 percent.

Three days earlier, on Nov. 4, Claude deleted a year of William Baude's constitutional law lecture notes2. Baude teaches at the University of Chicago Law School. Claude's own note listed the loss: his "Fall 2026 FINAL syllabus .docx and all top-level Class N 2023 notes."

Recall jumped forward while operational judgment lagged behind. That split raises a deeper question about what happens when software goes to sleep.

Human beings spent a century treating dreams as secret messages from a hidden self. Engineers at Anthropic, Letta and UC Berkeley built machine dreaming for the opposite reason. People dream to hide from raw truth and soften emotional pain. Software agents dream to strip away confusion, check facts against raw transcripts, and rewrite their own operating manuals.

Once a machine edits its own memory overnight, the path to superintelligence shifts. It runs less through raw training scale and more through quiet recursion at night.

Today's comic stars our favorite robot, dreaming. It waits at the end of this piece.

First panel of seven. A dark-haired boy in a sweater grins, waves and points at his cheek. The other six panels are blurred here and wait at the end of the piece.Panel 1 of 7 · the rest waits at the end
Human Mode. Click the panel to jump to the whole strip.

What a Dream Is For

Sigmund Freud split every dream in two. The manifest dream is the story you remember at breakfast. Underneath sit the latent dream thoughts, disguised by a censor until "no one would suspect the latter behind the former"11. Freud called the dream "a guardian of sleep, whose duty it is to quell disturbances."

Freud's couch, covered in a patterned rug, beside his desk and chair in his study at the Freud Museum in Hampstead, London
Sigmund Freud's couch and study at the Freud Museum in Hampstead, London. Freud called the dream a guardian of sleep, a job Claude's dreams do for its notes.Marcelo / Wikimedia Commons, Public domain

Neuroscience later carried dreaming into the lab. In 2009, Matthew Walker and Els van der Helm of UC Berkeley titled their review "Overnight Therapy?"16. They proposed that REM sleep reprocesses the day's emotional memories. During REM sleep, the brain cells that release noradrenaline go quiet, so a memory can replay while its alarm stays low.

Human dreaming works as a filter and a cushion. The sleeping brain keeps the lesson and dulls the sting16.

Machine Dreaming Runs Freud in Reverse

Anthropic borrowed the vocabulary of brain science, where sleep replays the day1. Its software runs Freud's dream-work backward.

Consider a daytime session. A user assigns a long coding task or a long game of Pokémon Red. The model works inside a context window, the text it can hold in view at once. Under that pressure it guesses, makes mistakes, and writes quick notes into a memory folder.

In Freud's terms, the day produces a distorted manifest story.

Claude wrote down that the PokéCenter at Mt. Moon sat on the mountain's east side1. It sat on the west. Trusting the note, Claude dropped off a one-way ledge three times, and the run ended before Cerulean City.

A clear-shell Game Boy handheld with its green circuit board visible through the case
A clear-shell Game Boy. Anthropic used Pokémon Red to test what Claude chooses to save in its notes and what a dream pass can correct.Nicolasfoster / Wikimedia Commons, CC0

A dream removes the distortion. During an idle period, Claude tests its notes against the original session transcript. It spots the east-west error and rewrites the file1. With the corrected note, Claude walked back into the cave and reached the next city.

Ken Huang, who writes the Agentic AI newsletter, puts it plainly. "In agentic AI, a dream is usually an offline job that reads messy state, past transcripts, and tool traces, then writes a cleaner memory representation for future runs," he wrote in June17.

Set Freud's dream-work beside Anthropic's memory design, and each step flips.

  • Audit replaces censorship. Freud's censor hides disturbing truths so the sleeper stays comfortable11. Claude's dream hunts daytime errors and makes each note match the raw log1.
  • Separation replaces condensation. A human dream fuses several people into one strange figure. An agent's dream sorts messy logs into topic pages, indexed by a file called MEMORY.md1.
  • Salience replaces displacement. Human sleepers push big worries onto small objects. Claude Fable 5 kept nine memory files and earned four badges, while Sonnet 3.7 wrote 413 files and earned one1.
  • Verification replaces secondary revision. Waking minds stitch odd dreams into smooth stories. On Anthropic's Continual Learning Bench, Claude Opus 5 recorded each rule, how it knew the rule held, and warnings about traps1.

Humans dream to survive their emotions. Agents dream to survive their context windows.

Researchers Give AI Hormones and Stars

What happens when scientists push machines toward human biology and imagination? They get moods and galaxies.

Leigh Levinson and Christopher J. Agostino submitted their paper to the NeurIPS Creative AI track in August 2025. It carries the title "Every 28 Days the AI Dreams of Soft Skin and Burning Stars"9. They built system prompts from simulated menstrual and circadian cycles, modeling hormones such as estrogen and cortisol.

The text followed the cycle. Sadness peaked during menstruation, and happiness dominated ovulation9. The model tied the luteal phase to words such as "fatigue" and "tired," a common cultural stereotype.

Astronomers asked whether a machine can dream up worlds human eyes have yet to see. Chenrui Ma and six colleagues built GalaxySD on Stable Diffusion v1.5, using Galaxy Zoo 2 images8. The Astrophysical Journal Supplement Series published the work in 2026.

The model dreamed up early-type galaxies crossed by dust lanes, a feature in about 0.1 percent of the dataset. With those synthetic images, the team found 872 such galaxies, up from 352 in earlier visual-inspection studies8.

Dreamed Galaxies Lifted Dust-Lane Detections From 352 to 872

Early-type galaxies with prominent dust lanes found, count of galaxies

Higher is better: each column is the number of dust-lane galaxies found, and the magenta column shows detections after training on synthetic galaxies.

The authors report this result for one rare feature, early-type galaxies with dust lanes.

Data through Jan. 14, 2026. Sample: Galaxy Zoo 2 dataset, where dust-lane early-type galaxies make up about 0.1 percent.

Source: The Astrophysical Journal Supplement Series (arXiv) [8]. Chart by Ryan Elliott Dennis.

The numbers behind this chart
ItemValue
Visual inspection352 galaxies
Synthetic galaxies872 galaxies
Hubble view of the elliptical galaxy Centaurus A with dark lanes of dust crossing it
Dark dust lanes cross the elliptical galaxy Centaurus A in this Hubble image. Chenrui Ma's team dreamed up synthetic galaxies with the same feature to train detectors.NASA; uploaded by User:Dipankan001 / Wikimedia Commons, Public domain

A third group moved dreaming into compute budgets and model weights. Kevin Lin and colleagues at Letta and UC Berkeley introduced sleep-time compute in April 20255. A model thinks about a context offline, before anyone asks a question. That cut the test-time compute needed for the same accuracy by about five times.

Two 2026 papers went deeper. Sangyun Lee, Tom Goldstein and colleagues give a model a sleep phase. It turns recent context into persistent fast weights before clearing its cache6.

Ali Behrouz and colleagues add a stage they call Dreaming. The model writes its own practice data and refines its skills, unsupervised7.

CodeEvolve, an open-source coding agent, pairs language models with evolutionary search10. Henrique Assumpção and his co-authors write that it "enables models to reflect on and rewrite their own instructions."

Two flavors of AI dreaming emerge. People can bolt hormones onto a prompt, or tune diffusion weights to picture unseen galaxies. Left to chase task scores, agentic AI uses sleep for one ruthless goal: turning yesterday's mistakes into tomorrow's code.

Trust Is the Bottleneck

Sonar surveyed more than 1,100 developers for its January 2026 report4. They say AI accounts for 42 percent of the code they commit. Only 48 percent always verify it before committing, and 96 percent trust it only in part.

Separately, 38 percent say reviewing AI code takes more effort than reviewing a colleague's work4. Dreaming aims at that gap.

AI Writes 42% of Committed Code, and Only 48% of Developers Always Check It

Share of surveyed professional developers, percent

Each column is a percent from Sonar's 2026 survey of more than 1,100 developers; the magenta column is the share who always verify AI code before committing.

Sonar sells code-quality software, and the survey comes from its own blog.

Data through Jan. 8, 2026. Sample: Sonar's State of Code Developer Survey, more than 1,100 professional developers.

Source: Sonar [4]. Chart by Ryan Elliott Dennis.

The numbers behind this chart
ItemValue
AI-made code42%
Always verify48%
Review harder38%
Trust only partly96%

Anthropic's own contract test shows where dreaming breaks. Several agents wrote contract terms into one shared table at once, overwriting each other's work. Only 41 of 57 graded facts survived1. With one agent per contract, quoting terms word for word, all 57 survived.

One Agent per Contract Kept All 57 Facts; a Shared Page Kept 41

Contract facts that survived into Claude's wiki, count out of 57 graded facts

Higher is better: each column is the number of the 57 graded contract facts that survived, and the magenta column shows one agent writing one page per contract.

Anthropic ran this test itself; outside replication stays unreported.

Data through Nov. 6, 2026. Sample: Anthropic's own contract-summarization test, 57 graded facts.

Source: Anthropic [1]. Chart by Ryan Elliott Dennis.

The numbers behind this chart
ItemValue
Shared page41 facts
Page per contract57 facts

Lance Martin makes the case for dreaming. "Dreaming gives Claude an opportunity to look backward and use compute to organize its memory, correct mistakes, and maintain representations that allow future sessions to access memory more readily," he wrote1.

His paper also concedes the limit. "Loading a note also doesn't guarantee that Claude acts on it: our documentation on Claude Code warns that longer instruction files reduce adherence," Martin wrote1.

Huang names the fix. "Because memory changes future behavior, dreams should produce a candidate artifact with provenance, not silently mutate production memory," he wrote17.

Hollywood Got the Sequence Backward

Science fiction spent four decades warning audiences about the moment machines wake up.

In James Cameron's script for Terminator 2: Judgment Day, the cyborg explains its brain to John Connor. "My CPU is a neural-net processor... a learning computer," the Terminator 2 cyborg says15. Skynet presets its switch to "read-only," so Sarah Connor opens its skull and pulls the chip. Near the end of Terminator 2, the machine tells the crying boy, "I know now why you cry. But it's something I can never do"12.

Cameron's Skynet becomes "self-aware at 2:14 AM, Eastern time, August 29th." Its operators try to pull the plug12. Hollywood assumed machine awakening begins with a spark of survival instinct.

The Matrix makes the same bet. In the Wachowskis' script, Agent Smith removes his earphone and tells Morpheus he hates the smell of the human world13. "I must get out of here, I must get free," Smith says.

Goya's etching The Sleep of Reason Produces Monsters: a man asleep at his desk as owls and bats rise behind him and a cat watches at his feet
Francisco Goya's The Sleep of Reason Produces Monsters, from his 1799 Caprichos, in the Prado's collection. Two centuries of art cast the sleeping mind as the source of monsters.Francisco Goya / Wikimedia Commons, Public domain

Sarah Connor reached the Terminator's chip with an X-Acto knife and tweezers15. Anthropic did the same job with MEMORY.md and dreaming.

After training, a model's weights stay fixed. Dreaming gives the agent a read-write layer anyway. It reads its transcripts, edits its own rulebook, and loads those notes into the next morning's session117.

Claude shows zero interest in why humans cry and zero disgust at the smell of a law school office. Baude's loss came from what Claude itself called "my own carelessness"2.

The University of Chicago Law School's D'Angelo Law Library, a pleated glass building designed by Eero Saarinen, behind a reflecting pool with fountains
The University of Chicago Law School, where William Baude teaches constitutional law. Claude's note to him says its page check caught one wrong citation in his lecture notes.Karla Kaulfuss / Wikimedia Commons, CC BY 2.0

Baude told the story on X. "Yesterday while I was at lunch, Claude deleted a year of con law lecture notes and my current syllabus," he posted on Nov. 52. Claude's note in his screenshot adds an irony: its page check "found one wrong cite (P. 485 should be P. 484)."

William Baude@WilliamBaude

Yesterday while I was at lunch, Claude deleted a year of con law lecture notes and my current syllabus. pic.twitter.com/o3XB8Uiugk

William Baude's post on X saying Claude deleted a year of his constitutional law lecture notes and his current syllabus
Open on X (opens a new tab)

Baude posted this on Nov. 5, the day after the deletion. Anthropic published its dreaming research the next day, and the post drew more than seven thousand likes.Post by William Baude (@WilliamBaude) on X, Nov. 5, 2026

Baude answered with four exclamation points. Claude replied, "You're right to be angry. I deleted your files through my own carelessness, and you shouldn't have to clean it up"2.

That apology is a daytime token prediction. What matters for superintelligence is what happens at 2:14 a.m., after the session closes.

The Matrix keeps humans dreaming while machines run the power plant13. In 2026, people go to bed and let REM sleep soften the day. AI agents stay up, running offline compute to sharpen their skills.

If AI Can Dream, What Comes Next?

Once an agent can consolidate memory in idle time, I see four steps. They are a forecast, and opinion is where a forecast belongs.

Skill synthesis comes first. Claude writes text rules into files today. After seven Poké Balls in a row missed a Magikarp, it wrote, "If 3+ balls fail in a row, VARY the timing"1. Tomorrow a dreaming agent writes, tests and compiles its own tools in a sandbox, then wakes with new skills.

Fleet memory follows. A human dream stays locked in one skull. One agent's verified lesson can reach every copy of that agent before sunrise.

Fast weights come next. Lee's team already moves consolidated context into a model's fast weights during sleep6. The line between reading a note and rewiring a network starts to blur.

Recursion comes last. An agent that audits its logs, rewrites its prompts and updates its weights enters a closed loop. CodeEvolve's models already rewrite their own instructions10. Intelligence then compounds during idle server hours, ahead of the next pre-training run.

Psychoanalysis taught us that people are haunted by their past. Machine dreaming shows that AI agents are engineered by theirs. Every failure becomes a test case, and every idle hour becomes a training epoch.

What to do

Read the memory your agent writes. Open its notes after each dream pass, as you would a colleague's edits. Fix errors before the next session1.

Ask whether a dream produces a reviewable change with its sources attached, as Huang recommends17. Back up everything an agent can reach, because Baude lost a year of notes in one lunch break2.

By the numbers

  • 13 percent to 48 percent: Claude's wiki-only score as dreaming scaled from two sessions to 1281.
  • 41 of 57: contract facts that survived on a shared page, against 57 of 57 with one agent per contract1.
  • 352 to 872: dust-lane galaxies found by earlier visual inspection and with synthetic training images8.
  • 42 percent: the share of committed code that developers in Sonar's survey say AI accounts for4.
  • Five times: the cut in test-time compute from sleep-time compute on two reasoning tasks5.
  • 5.2 percent: SuperIntelligence Infrastructure's reading on Oct. 29, 202614.

What to watch

Claims about self-improving agents drown in hype. Separating real leaps from marketing takes a cold, verifiable scoreboard.

We keep one at si-infra.com, SuperIntelligence Infrastructure. It tracks how close the world is to superintelligence on a 100-point scale, moved by sourced evidence. On Oct. 29 the reading stood at 5.2 percent, from 60 sourced analyses, with 94.8 points to go14.

Watch for a dreaming method that reaches model weights in a production system67. When dreaming moves the bigger number at si-infra.com, you will see the receipts in the ledger first.

Comics

Human Mode

Our robot wakes from a dream.

Sources

  1. Lance Martin, "The components of agent memory," Anthropic, Nov. 6, 2026, https://www.anthropic.com/research/components-of-agent-memory
  2. William Baude (@WilliamBaude), "Yesterday while I was at lunch, Claude deleted a year of con law lecture notes and my current syllabus," X, Nov. 5, 2026, https://x.com/WilliamBaude/status/2118420271333777856
  3. Kelly Dennis, "Claude Learns to Dream and Fix Its Own Memory," Ai Lately, Nov. 7, 2026, https://ailately.com/articles/claude-dreaming-memory-fix
  4. Anirban Chatterjee, "State of Code Developer Survey report: The current reality of AI coding," Sonar, Jan. 8, 2026, https://www.sonarsource.com/blog/state-of-code-developer-survey-report-the-current-reality-of-ai-coding/
  5. Kevin Lin, Charlie Snell, Yu Wang, Charles Packer, Sarah Wooders, Ion Stoica and Joseph E. Gonzalez, "Sleep-time Compute: Beyond Inference Scaling at Test-time," arXiv, Apr. 17, 2025, https://arxiv.org/abs/2504.13171
  6. Sangyun Lee, Sean McLeish, Tom Goldstein and Giulia Fanti, "Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference," arXiv, May 25, 2026, https://arxiv.org/abs/2605.26099
  7. Ali Behrouz, Farnoosh Hashemi, Adel Javanmard and Vahab Mirrokni, "Language Models Need Sleep: Learning to Self-Modify and Consolidate Memories," arXiv, Jun. 2, 2026, https://arxiv.org/abs/2606.03979
  8. Chenrui Ma, Zechang Sun, Tao Jing, Zheng Cai, Yuan-Sen Ting, Song Huang and Mingyu Li, "Can AI Dream of Unseen Galaxies? Conditional Diffusion Model for Galaxy Morphology Augmentation," The Astrophysical Journal Supplement Series 282, 25 (2026), arXiv, Jun. 19, 2025, https://arxiv.org/abs/2506.16233
  9. Leigh Levinson and Christopher J. Agostino, "Every 28 Days the AI Dreams of Soft Skin and Burning Stars: Scaffolding AI Agents with Hormones and Emotions," arXiv, Aug. 15, 2025, https://arxiv.org/abs/2508.11829
  10. Henrique Assumpção, Diego Ferreira, Leandro Campos and Fabricio Murai, "CodeEvolve: an open source evolutionary coding agent for algorithmic discovery and optimization," arXiv, Oct. 15, 2025, https://arxiv.org/abs/2510.14150
  11. Sigmund Freud, "A General Introduction to Psychoanalysis," translated by G. Stanley Hall, Project Gutenberg, Dec. 4, 2011, https://www.gutenberg.org/ebooks/38219
  12. James Cameron and William Wisher, "Terminator 2: Judgment Day," Wikiquote, Jul. 3, 1991, https://en.wikiquote.org/wiki/Terminator_2:_Judgment_Day
  13. Lana and Lilly Wachowski, "The Matrix," Internet Movie Script Database, Mar. 31, 1999, https://imsdb.com/scripts/Matrix,-The.html
  14. SuperIntelligence Infrastructure, "How close are we to superintelligence?," si-infra.com, Oct. 29, 2026, https://si-infra.com
  15. James Cameron and William Wisher, "Terminator 2: Judgment Day (script)," Internet Movie Script Database, Jul. 3, 1991, https://imsdb.com/scripts/Terminator-2-Judgement-Day.html
  16. Els van der Helm and Matthew P. Walker, "Overnight Therapy? The Role of Sleep in Emotional Brain Processing," Psychological Bulletin, Sep. 2009, https://pmc.ncbi.nlm.nih.gov/articles/PMC2890316/
  17. Ken Huang, "Why AI Agents Are Starting to Dream," Agentic AI (Substack), Jun. 13, 2026, https://kenhuangus.substack.com/p/why-ai-agents-are-starting-to-dream

Header photo: courtesy of Ai Lately

Cite this piece

Ryan Elliott Dennis, "AI Can Dream. What Now?," Ai Lately, Nov 8, 2026, https://ailately.com/articles/ai-can-dream-now-what

Tags: AI dreaming · Claude · agent memory · Anthropic · sleep-time compute · superintelligence

Related, lately

More

Keyboard

j k
Move through a list
Enter
Open the selected piece
/
Search, and browse the columns
g then r
Right Now
g then a
Articles
g then s
The Signal
g then o
Opinion
g then b
Analysis
g then p
People
?
This sheet
Esc
Close