Cluster Build

Cross-session memory

Store durable facts across sessions with /remember, /forget, and /memory, and control automatic learning.

View as Markdown

Cluster Build stores local, inspectable Markdown memory below ~/.cluster/memories/. When learning is enabled, Build processes completed turns from persisted sessions in the background. Once extraction finishes, later requests can recall standing preferences and pick up project work without waiting for consolidation.

Two independent controls govern the feature:

  • Use memories — inject a bounded overview of curated and recent memory into new requests, and allow the read-only memory tools.
  • Learn from sessions — automatically extract candidates from completed turns and consolidate standing defaults into curated memory.

Continue work in a new session

Start a session in the same project and ask, for example, “Where did we leave preview validation?” Recent task accounts from that project are listed in the assistant's memory overview, and it can open any of them or search for older ones.

A task account can include your decisions, the command and exit code of make and cargo checks that ran, and work the assistant reported as still pending. Pending work is what the assistant said was left, not proof that a check ran, and command output isn't kept. Task accounts stay separate rather than being merged into curated memory, and one-off requests aren't treated as standing defaults.

When you correct a recent task account, the older account stops appearing in recall. Forgetting the correction doesn't bring the older account back.

Slash commands

  • /remember [global|project] <text> writes an immediately available pinned memory after confirmation. Project is the default inside a resolved project; global is the fallback.
  • /forget <query> searches memory, then requires selecting and confirming an exact entry before removing it. Deleting an entry also removes the learned notes it came from, so a later consolidation can't reintroduce it.
  • /memory opens a bottom dialog with Global, Project, Recent, and Status views:
    • Toggle Use memories and Learn from sessions from the Status view.
    • c copies the current file's path to your clipboard.
    • Ctrl-O opens the current file in $VISUAL/$EDITOR — the curated file in the Global/Project views, or the selected candidate file in Recent. The terminal is restored and the dialog's contents refresh when the editor exits.
    • Reset a scope from its view after a destructive-action confirmation; this clears curated content, pending candidates, and task accounts for that scope.
  • /status reports effective controls, resolved project storage, queued extraction work, candidates awaiting consolidation, and the last consolidation.

Natural-language remember/forget requests use the same underlying tools as the slash commands. Model-initiated writes only happen when your current request explicitly asks to remember, update, or forget something — ordinary conversation never becomes an implicit memory write.

Configuration

cluster config set memory_use false
cluster config set memory_generate false
  • memory_use controls overview injection and the read-only memory tools.
  • memory_generate controls automatic extraction and consolidation. Explicit /remember still works when this is off.
  • --no-memory is a stronger per-process override: it disables reads, automatic generation, and explicit writes for that run without changing saved configuration. It's a global flag, so it also applies to cluster exec.
  • cluster exec --ephemeral may read existing memory (unless --no-memory is also passed) but never generates or updates memory.

Memory on the Build daemon

Sessions on the Build daemon — the terminal's own, and ones opened from other devices via desktop and web — read the machine's memories for the session's folder, have the memory tools, and add to memory after your turns. /memory, /remember, and /forget reach them. --no-memory applies to this process only, so it keeps the session in the terminal. The desktop's own local runtime still runs without memory.

Storage

~/.cluster/memories/MEMORY.md holds global memory; project memory lives under ~/.cluster/memories/projects/<slug>-<hash>/MEMORY.md, keyed to the Git common directory (or the cwd outside Git) so linked worktrees share one scope. Each curated file has two sections:

# Memory

## Pinned

Explicit user memories. Automatic consolidation never rewrites this section.

## Learned

Automatically consolidated knowledge and optional notes you add by hand.

Direct edits to MEMORY.md are supported — keep the ## Pinned and ## Learned boundaries intact, since malformed boundaries stay readable but block automatic rewrites until repaired. Notes you add by hand under ## Learned are kept; consolidation only rewrites the topics it generated (those ending in a Sources: line). Files are private to your OS user (directories 0700, files 0600) and are shared across every Cluster account that user signs into.

cluster doctor --summary reports the persistent controls and on-disk memory health without printing memory bodies or search queries. Run cluster doctor without --summary to also see learning activity for the current project, such as task accounts saved and extractions that failed.

Model tools

The assistant can read memory in any mode, but writing requires an explicit user request:

ToolAccessWhat it does
memory_searchread-only, plan mode allowedSearch curated and raw memory
memory_getread-only, plan mode allowedFetch a memory file by path and line range
memory_addmutatingAppend to Pinned in a scope
memory_deletemutatingRemove an exact entry previously returned by search/get

memory_add and memory_delete are rejected in plan mode, the same as any other mutating tool.

Next steps

On this page