Expand description
Agent memory, grouped by concept (architecture cleanup stage 2, task #1350). Every memory module of the backend lives here; the tower’s memory ledger stays with the tower.
Modules§
- adopt
- Adopting an agent’s memory from its earlier accounts (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.4, phase M3c).
- delivery
- An agent’s memory, delivered through Claude Code’s
SessionStarthook (docs/specs/SPEC_GLOBAL_MEMORY_DELIVERY_2026_09_27.md §7 P2). - delivery_
state - The memory delivery’s shared state: the deliveries being composed and cached, the
frontend fallback’s claims, the compaction boundaries a block’s CLI wrote and the
notices parked behind them. The handlers (
server/memory_delivery_handlers.rs) drive it; the stdout readers underblockcontrollerrecord the boundaries and take the parked notices, so it sits below both. - dir_
claims - Is a memory directory this agent’s alone? (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.2, phase M3b.)
- dream_
apply - What applying a dream’s proposal, or reverting it, would do to a memory’s files (SPEC_DREAMS §2.6, §9).
- dream_
model - The model call of a Dreams pass (docs/specs/SPEC_DREAMS_BACKGROUND_MEMORY_ORGANIZING_2026_11_27.md §2.3, §8): the
provider’s CLI run once, with no tools, on Dreams’ own system prompt, on the account the dreamed agent is assigned
to. It is not the ambient call of
ambient::cli, which is Haiku-only, answers within 45 seconds and takes its sign-in from an open pane: a pass reads up to 100k tokens and takes about a minute, and the agent is usually stopped. - dream_
prompt - What a Dreams pass asks the model (SPEC_DREAMS §2.3, §4, §6.1, §8).
- dream_
proposal - What a Dreams pass’s model answer becomes: a checked list of file operations (SPEC_DREAMS §2.5, §4, §6).
- dream_
runner - One Dreams pass, from a queued dream to a proposal waiting for review (SPEC_DREAMS §2, §8).
- dream_
schedule - Which queued dream runs next, and why a dream waits (SPEC_DREAMS §3, §5).
- fit
- What of an agent’s Personal Memory fits in a delivery, and what the agent is told about the rest
(the re-send after a compaction;
memory_deliverycomposes and splits what this keeps). - fleet
- One Global Memory for the fleet (task #12439, “agents operate other machines”, section 4.6).
- global_
record - AgentMux’s own record of Global Memory (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.6, phase M4).
- history_
import - The one-time import of an agent’s earlier memory history into its record (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.1, phase M3b).
- index
- Personal Memory as an index: one line per file, so the agent knows what it has and opens a file when it applies (docs/specs/SPEC_MEMORY_DELIVERY_INDEX_NOT_FULL_TEXT_2026_11_17.md §3.2, §3.3).
- native_
drift - Out-of-band write detection for native memory files — §4.5 of
docs/specs/SPEC_MEMORY_VERSION_CONTROL_AND_ARMORY_AUDIT_2026_08_19.md.
Claude Code’s CLI writes memory
.mdfiles directly to~/.claude/projects/<hash>/memory/*.md, with no obligation to go throughagent:memory:write_file/memory.write— an agent’s own general-purpose filesystem tools can (and, per this spec’s own motivating incident, did) write there directly. When that happens, no RPC fires, so nothing innative_memory_handlers.rsorapp_api::modever sees it. - native_
files - Where an agent’s native memory files live on disk, and the rules for reading
and writing them: the folder for a working directory, an agent or a spawn, the
filename and frontmatter checks, and the mirror refresh into
db_agent_native_memory. - native_
retention - Retention/GC for
db_agent_native_memory_versions— closes §7.1 of docs/specs/SPEC_MEMORY_VERSION_CONTROL_AND_ARMORY_AUDIT_2026_08_19.md, left open in v1 (“no pruning is proposed… flag if unbounded growth is a concern”). Operator-confirmed policy (2026-08-22): hybrid age + min-count floor — a version is pruned only once it is BOTH older than [MAX_AGE_MS] AND ranked beyond the [MIN_KEEP] most-recent versions for its(agent_id, filename). The floor exists so an agent that rarely touches a given memory file never loses its entire history just because every version happens to be old; the age bound exists so a hyperactive agent’s frequently-rewritten file doesn’t grow unbounded just because every version happens to be recent. Seeagent_native_memory_versions.rs::agent_native_memory_version_prunefor the actual query. - reconcile
- Reconcile an agent’s memory record with the provider folder its spawn is about to use (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.3, M3b).
- record
- AgentMux’s own record of an agent’s memory (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.1, phase M3).
- release
- The human “release this folder” action (SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md §2.1.2, phase M3c).