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.
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."

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 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.
Source: The Astrophysical Journal Supplement Series (arXiv) [8]. Chart by Ryan Elliott Dennis.
The numbers behind this chart
| Item | Value |
|---|---|
| Visual inspection | 352 galaxies |
| Synthetic galaxies | 872 galaxies |

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.
Source: Sonar [4]. Chart by Ryan Elliott Dennis.
The numbers behind this chart
| Item | Value |
|---|---|
| AI-made code | 42% |
| Always verify | 48% |
| Review harder | 38% |
| Trust only partly | 96% |
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.
Source: Anthropic [1]. Chart by Ryan Elliott Dennis.
The numbers behind this chart
| Item | Value |
|---|---|
| Shared page | 41 facts |
| Page per contract | 57 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.

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.

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@WilliamBaudeYesterday while I was at lunch, Claude deleted a year of con law lecture notes and my current syllabus. pic.twitter.com/o3XB8Uiugk
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
- Lance Martin, "The components of agent memory," Anthropic, Nov. 6, 2026, https://www.anthropic.com/research/components-of-agent-memory
- 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
- Kelly Dennis, "Claude Learns to Dream and Fix Its Own Memory," Ai Lately, Nov. 7, 2026, https://ailately.com/articles/claude-dreaming-memory-fix
- 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/
- 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
- 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
- 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
- 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
- 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
- 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
- Sigmund Freud, "A General Introduction to Psychoanalysis," translated by G. Stanley Hall, Project Gutenberg, Dec. 4, 2011, https://www.gutenberg.org/ebooks/38219
- James Cameron and William Wisher, "Terminator 2: Judgment Day," Wikiquote, Jul. 3, 1991, https://en.wikiquote.org/wiki/Terminator_2:_Judgment_Day
- Lana and Lilly Wachowski, "The Matrix," Internet Movie Script Database, Mar. 31, 1999, https://imsdb.com/scripts/Matrix,-The.html
- SuperIntelligence Infrastructure, "How close are we to superintelligence?," si-infra.com, Oct. 29, 2026, https://si-infra.com
- 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
- 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/
- 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





