Skip to content

Memory & Dreams

DotCraft gives the agent a real memory of your project. As you work, it writes down what's worth keeping in plain Markdown files inside the workspace — so it remembers across sessions and entry points, and you can read, edit, or delete any of it whenever you want.

Three Layers of Memory

LayerWritten byWhat it holds
Session historyThe engine, automaticallyA complete record of every session — every message, action, and result
Long-term memoryThe agent, after successful workProject context, your preferences, recent decisions, recurring issues
DreamsA background loopLow-authority hunches — focus topics, open questions, noise to avoid

Session history is the audit baseline you can always trace back to. Long-term memory is the agent's high-authority notebook. Dreams is a low-authority background scratchpad. The three roles don't overlap. To see exactly how sessions are stored on disk, see Unified Session Core.

MEMORY.md / HISTORY.md — Agent Maintains, You Review

When long-term consolidation is enabled, every few successful conversation rounds DotCraft asks the agent to patch stable information back into .craft/memory/MEMORY.md and append the run to HISTORY.md. The exact schedule and consolidation model are configurable in the Configuration Reference.

Writes are patch-style: the agent does not blindly overwrite the entire MEMORY.md. It performs precise inserts or edits relative to your or its own existing notes. So manual edits to these files are safe — the agent reads your edited version next time.

TIP

Desktop's Settings → Personalization → Reset memory clears MEMORY.md, HISTORY.md, .craft/dreams/, and derived caches in one click. It does not delete sessions, config, skills, or automation tasks.

Dreams — Background Memory Consolidation

Dreams is DotCraft's background thinking loop. Whenever AppServer is running (even when you are not actively chatting), it periodically scans recent workspace activity and generates a low-authority passive memory store — think of it as a draft notebook that only enters future sessions after you review it.

Dreams review flow

DotCraft memory lifecycle topology

StateMeaning
pendingAuto-generated, not yet in context, awaiting review
activeApproved by user, joins future sessions as low-authority context
discarded / archivedHistorical, no longer in context

Desktop's Settings → Personalization → Dreams offers:

  • Run now — Trigger a Dream consolidation immediately
  • Auto-update Dreams — Off: new dreams stay pending. On: future successful runs auto-apply as active
  • Manage Dreams — List of dreams, each opens Dashboard for diff / trace / apply / discard / cancel / archive

Dreams does not replace MEMORY.md; it complements it. Dreams is the right place for "recent focus" and "low-signal noise to avoid" — items too noisy to commit as authoritative memory but too important to lose with the session.

Apache License 2.0