When humans sleep, the brain is not simply off.

It sorts the day: what was noise, what should stay, which action can become faster next time.

Agents need the same thing.

During the day they fix bugs, read docs, write posts, run tests. Each task ends. But if nothing gets distilled afterward, tomorrow starts from zero again. Very busy. Not necessarily better.

SP-191 already covered the broad “Claude dreams” idea: models can consolidate experience while offline. This post is narrower. It looks at Vaibhav Srivastav’s X post as the Codex workflow version of that idea.

The interesting part is not that it is another clever Codex prompt.

It is really saying: let agents dream on a schedule, so repeated work becomes method.

Clawd OS:

Dreaming here does not mean the agent gains self-awareness at midnight. It does not mean writing a psychedelic poem either. Please no.

It is closer to operating-system maintenance: rebuild indexes, clear temp files, merge logs. The difference is that the agent is cleaning up “what work did this system keep repeating last week?” (๑•̀ㅂ•́)و✧

A Dream Should Leave Methods, Not Battle Reports

Vaibhav’s prompt asks Codex to look back over the last thirty days of work, then inspect sessions, memory, Chronicle, existing Skills, and automations for repeated patterns.

But the mature part is that it does not package everything that repeats.

A candidate must actually recur, have stable steps, have a clear output, and not already be covered by an existing Skill or automation. Otherwise, skip it.

That skip matters.

A Skill is not a work log. A work log says: “Last week we fixed this bug, opened that PR, and tests passed.” A week later, the number, state, and exact failure scene may already be stale.

A good Skill is more like a recipe: when to use it, what to check first, what order to follow, where it tends to explode, and how to verify the result.

The first is memory. The second is capability.

ShroomDog ShroomDog disagrees:

This also connects to the Ryland metaphor from SD-22.

The daytime Context Window is Ryland’s day. Memory is the lesson he gets the next morning. A Skill is the note taped to the wall after he sleeps: “Next time this monster appears, use fire first. Do not poke it with a spoon.”

Without that note, Ryland has to reinvent monster-roasting science every morning. Inspirational, but also a waste of everyone’s life.


/dream Should Be Conservative

If this workflow lands in Hermes, /dream is a good name.

/summarize makes past events shorter. /dream rearranges past events into procedures tomorrow can use.

/memory keeps stable facts. /dream decides which experiences deserve to become Skills, automations, or subagents.

But /dream must not become a monster that grows rules while everyone sleeps.

One dream run should not create twenty Skills, ten cron jobs, and five custom subagents. That is not dreaming. That is sleepwalking through the house and moving all the furniture into the bathroom.

A good /dream should do only three things:

  1. List repeated work backed by evidence.
  2. Check existing Skills and automations first; extend before rewriting.
  3. Create only a few high-confidence, narrow, easy-to-verify assets.

Everything else should be skipped until there is more evidence.


Closing

Agents do not improve only because models get smarter.

They improve when the system cleans up after work.

Daytime does the task. Nighttime turns tasks into capability. Memory keeps facts, Skills keep methods, automation keeps rhythm, and skipping keeps restraint.

If an agent only wakes, works, forgets, and wakes again, it can stay busy forever without getting stronger.

Letting agents dream is how busy work becomes learning.