AutoDream is a plugin that depends on the builtin _memory plugin of Agent Zero.
Agent Zero's _memory plugin stores everything: every fragment, every session, but never forgets, never prioritises. Over time the vector database fills with duplicate fragments, stale context, and noise that dilutes semantic recall.
AutoDream gives the agent a sleep cycle. It periodically reviews recent sessions, merges what overlaps, promotes what matters, and lets the rest fade, exactly the way memory consolidation works during REM sleep. The result is a leaner, higher-signal long-term memory that actually improves with use instead of degrading under its own weight.
_memoryremains the source of vector storage, similarity search, and memory-subdirectory resolution.AutoDreamowns the reflective pass, prompt contract, durable markdown files,MEMORY.mdgeneration, and dream changelog.- AutoDream keeps its code and settings under
usr/plugins/AutoDream/, but stores durable memory inside each_memoryscope so project-isolated memory continues to work as expected.
For each memory scope, AutoDream writes:
autodream/MEMORY.mdas a compact indexautodream/memories/*.mdas durable memory filesautodream/.dream-log.mdas a short changelog of each dream runautodream/state.jsonandautodream/vector_state.jsonas plugin bookkeeping
AutoDream follows the same broad pattern as Claude Code's MEMORY.md, but per memory scope instead of assuming one global repository file.
MEMORY.mdis an index, not the memory itself.- The real durable content lives in the sibling markdown files under
autodream/memories/. - Those durable files are synced into the
_memoryvector database so symbolic browsing and semantic recall stay aligned.
AutoDream is on by default. Tune its settings:
min_hoursmin_sessionsline_limitconsolidate_every_n_dreams