memory — inspect and manage durable cone memory
Durable memory is one markdown file per cone — /workspace/CLAUDE.md for the primary cone, /cones/<folder>/CLAUDE.md for extra cones. Agents write these files only through the memory_write tool, which enforces the budget (over budget, a write must shrink the file) and reports the remaining room; other writers are refused. After a chat freezes, a memory-curator scoop rewrites that file from the archived session. A pass reads only its visiblePaths from /etc/MEMORY.md; a path outside them is unknown to it, never absent — the runtime notes such blind reads on the pass's command results and memory_write refuses a line that records one as missing (slicc#3459). A live archive (/sessions/live-*.md) is also mined a slice at a time while the chat is still open (curatedThrough); "New chat" then mines only the remainder. /sessions/index.json is the per-archive ledger of whether that pass succeeded (memoryCuratedAt), failed (memoryFailed), is still owed (memoryPending), or was skipped by the user (memorySkipped).
Usage
memory show [--cone <folder>] # the cone's memory file, verbatim
memory status [--json] [--check] # files, budget, curation tally, health
memory log [--limit N] # per-archive ledger, newest first
memory curate [--archive <file>] [--cone <folder>] # run a curator pass now
memory dream [--cone <folder>] [--all] [--wait] # consolidate memory (dreamer pass)
When to reach for it
- "What do you remember about me / this project?" →
memory show. - A fact you expected to be remembered is missing →
memory logto see whether the session that established it was ever curated;memory status --checkfor systemic failures. - After a failed curation (
memoryFailedin the log) → fix the cause if visible (usually a missing provider or a timeout), thenmemory curate --archive <that-file>. - The memory file has grown duplicated, contradictory, or over budget →
memory dream(add--waitto see the dreamer's report;--allfor every cone with a memory file). The gelatiere's nightly already runsmemory dream --all, so reach for this manually only when it cannot wait. - Extra cones keep separate memory: pass
--cone <folder>toshow,curate, anddream. The folder must exist (cone, or a/cones/<folder>);curatewithout it targets the cone the archive was frozen from.
Reading `memory status`
- Budget grows logarithmically with the archived-session count; the curator is told to stay under it.
- Curation tally counts index entries by ledger state: curated / failed / pending / skipped / unmarked (pre-ledger or freshly frozen).
--checkexits non-zero on the two lying-memory shapes: any archive whose last curation attempt failed, or archives reporting success while the primary memory file is missing or empty. A clean run exits 0.Scheduled:shows the runtime's own health check — the kernel runs the same checks ~90s after boot and daily without being asked, persisting the numbers to/sessions/.curation/health.json. If that line saysnever ranlong after boot, or names failures, the memory system needs attention even if nobody asked about it.
Notes
memory curateruns the exact pass the session freezer runs (snapshot → curator scoop → three-way merge), so concurrent edits to the memory file merge instead of being clobbered. It can take several minutes; the curator's closing report is printed when it lands.memory dreamconsolidates the memory file itself under the same/etc/MEMORY.mdinstructions as curation (its owndreamTimeoutSecondsbound), through the same staged draft and merge. When agentic memory is also on, it first mines one uncurated slice of that cone's live transcript (thecuratedThroughcursor on/sessions/live-*.md) so a never-finalized chat still reaches memory. Detached by default; the outcome lands in/sessions/.curation/dream-<date>-<cone>.md/status.json.- When consolidation cannot fit everything, the dreamer moves reference knowledge into the shared wiki at
/shared/wiki/(schema:/shared/wiki/WIKI.md; browse it with thewikiskill) and leaves a pointer line in the memory file. - The command does not edit the ledger itself; a manual pass on a still-pending archive is reconciled by the boot catch-up through the bridge's receipt.
- Everything except
statusrequires the Memory v2 flag (Settings → Experimental).