Skip to main content

Module memory

Module memory 

Source
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 SessionStart hook (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 under blockcontroller record 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_delivery composes 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 .md files directly to ~/.claude/projects/<hash>/memory/*.md, with no obligation to go through agent: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 in native_memory_handlers.rs or app_api::mod ever 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. See agent_native_memory_versions.rs::agent_native_memory_version_prune for 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).