Memory
Memory is the app-wide pane for what agents know and carry: the instructions every agent starts with, what each agent writes in its own memory, skills, and the bundles that package them. Its companion pane, Connectors, holds what agents connect to outside AgentMux: accounts, MCP servers and remote hosts.

Memory is a regular pane (icon: brain), opened from the widget bar like any other. It has five sections, as tabs along the top of the pane (frontend/app/view/memory/memory.tsx):
| Section | What it manages |
|---|---|
| Global | Global Memory: instructions composed into every agent’s startup file |
| Personal | Personal Memory: what each agent writes in its own memory files, with history |
| Dreams | The record of the passes that tidy what agents remember |
| Skills | The skills you add, and which agents each one reaches |
| Bundles | Instructions and skills packaged to give to agents; imports ABF (.abf) files |
Memory opens on Global. The pane title names the section, for example “Memory · Skills”. In a narrow pane the tabs show only their icons; in a wide one they stop growing and sit at the left. Ctrl + mouse wheel zooms the pane.
Opening Memory
Section titled “Opening Memory”- Widget bar: click Memory. It is pinned by default. If a Memory pane is already open in the tab, the click focuses it instead of opening another.
- Command palette: run Memory. Searching for “skills” or “bundles” also finds it.
- macOS app menu: Memory….
- Keybinding:
Ctrl+Shift+OthenM(⌘⇧OthenM), or bindapp:memoryto your own keys.
Links elsewhere in the app open Memory on the right section:
- An agent pane’s right-click menu has Personal memory, which opens Personal on that agent. The Bundles… dialog in its My Agents panel links to Memory → Bundles.
- A deep link opens Memory on a section:
agentmux://memory/<section>, withglobal,personal,dreams,skillsorbundles. Add?agent=<id>to open Personal on one agent (an agent may name only itself). A link, a button or a notice that points at Memory opens the Memory pane already in the window instead of a second one. See Deep links.
Global
Section titled “Global”Global Memory is a set of entries that every agent inherits at launch (frontend/app/view/global-bundle/global-bundle-manager.tsx). The section reads “Every agent inherits this at launch — takes effect after a restart. Drag entries to change their order.” It shows a tile per entry, a read-only CLAUDE.md tile, a Combined preview of what agents receive, and + Add memory. Click a tile to open the entry with its history, a diff view and revert.
Entries you remove are listed under Removed, with who removed each (you, or an agent’s name) and how long ago. Restore puts an entry back at the end of the order. A removal is recorded in the entry’s history either way.



Claude Code agents also get their memory again whenever Claude Code starts a new session, including after /clear and after a compaction, but not when a session is resumed. AgentMux delivers it through Claude Code’s SessionStart hook: Global Memory, AgentMux’s Operator Config entries and the agent’s Personal Memory, split into up to eight parts of at most 9,000 characters each (crates/bashwrap/src/sessionstart.rs, crates/srv-core/src/backend/memory/delivery.rs). If the hook doesn’t deliver, for example when AgentMux had to start a fresh session because the previous one couldn’t be resumed, AgentMux sends the same memory as a hidden message instead.
Each delivery shows in the agent pane as a card, such as “Given to the agent · new session · 6 items” or “Memory re-delivered after compaction · 3 items”, with one row per item: its name, whether it is an AgentMux system entry, a Workspace entry or Personal Memory, and its size. On a new session the card also lists the files Claude Code read by itself at startup, such as CLAUDE.md files and the skills list; when one of them already carries the Global Memory, the hook doesn’t send it again, and those entries say “in startup file”. One delivery carries at most 72,000 characters. Global Memory comes first and is never cut by the limits below. Personal Memory follows as an index: one line per file with its name and a short description, so the agent knows what it has and opens a file when it applies. A long index shortens its descriptions and then drops them; past about a thousand files it lists as many names as fit, says how many more there are and how to list them, and the card shows those files as not listed. A file whose frontmatter says deliver: always goes in full instead, up to 5 files and 6,000 characters together; one over that limit is listed in the index, with a line saying why. When Personal Memory is over about 40,000 characters, or a project file hasn’t been touched for 7 days, a note asks the agent to trim it; AgentMux never deletes memory itself. When Personal Memory grows large for the agent’s context window, the card suggests consolidating it. The card lists what the agent was given, not the text itself (frontend/app/view/agent/components/ContextDeliveryCard.tsx). It’s a context delivery, not a message you sent.
Every change to Global Memory is also written to a Global Memory record that keeps each entry’s versions and the order of entries (crates/srv-core/src/backend/memory/global_record.rs). Channels that share your main accounts share one Global Memory; an isolated channel (for example a development build) keeps its own.
On an isolated channel, the Global section shows a banner when another scope has entries this channel doesn’t: “This channel keeps its own Global Memory. … has N entries it doesn’t: …”. Bring them here copies them in (an entry whose name is already taken is renamed); agents get them at their next launch. Nothing is shared without this click (frontend/app/view/global-bundle/GlobalMemoryImportBanner.tsx).
Everything in Global Memory is delivered whole, to every agent, every time. For instructions an agent needs only now and then, use a skill instead.
Agents can read and change Global Memory with the Memory MCP tool and scope: "global", using its list, read, write, reach, remove, history, diff and revert actions.
Global Memory across machines
Section titled “Global Memory across machines”Each entry has a reach: fleet or machine. A fleet entry is sent to every other machine on your network that this one has proven (see LAN discovery) and kept in step; a machine entry stays here. A new entry is fleet, whether you add it in this pane or an agent writes it. The entries that existed before reach was added are machine, because they may differ between your machines on purpose; an agent can flip one with the Memory tool’s reach action. Open an entry in this pane and the switch Where this memory goes shows its reach and changes it: Every machine (sent to every proven machine, newest write wins) or This machine only (it stays here; a copy another machine sends is skipped). AgentMux’s own system entries have no switch, because they never leave the machine.
- Last write wins. The machine that saves an entry stamps the time, and every machine keeps that time, so they all agree on it. The newer write wins; on a tie the one with the larger content hash does. Each machine keeps its own history of the entry (Memory → Global, an entry’s versions), so an overwritten version can be reverted.
- A removal is a write too. An entry removed on one machine and edited later on another comes back.
- A machine that was offline catches up the next time it is found: peers compare what they hold and send what the other lacks or has older. A peer is also compared again every ten minutes, to heal a lost send.
- What travels: the entry’s name, description and instructions (including the per-provider instructions) and its context files. Skills, provider, model, position in the list and MCP servers belong to a machine and stay put.
- What doesn’t: AgentMux’s own system entries never leave or enter. A fleet write for an entry that is
machinehere is skipped, so a machine keeps what its owner kept. - Needs a trusted machine. Fleet sync uses remote operations: both machines need LAN discovery on, and the receiving one must trust the sender’s install. Setting
"network:remote_ops": falseon a machine stops it taking part.
Personal
Section titled “Personal”Personal Memory is the set of free-form .md files an agent reads and writes about itself: notes, running context, anything it wants to keep between turns. It is a different thing from a bundle: a bundle is a reusable definition you give an agent; Personal Memory is a scratchpad an already-running agent keeps for itself. (“Native memory” is the name of its storage in the code.)
This section is the app-wide view of every agent’s Personal Memory. Pick an agent, then a file, to see its content, history and diffs, and to revert to an earlier version. From an agent’s pane, right-click and choose Personal memory to open this section on that agent.


Above an agent’s files, two collapsible panels (frontend/app/view/native-memory/):
- Earlier memory found under N other account(s) appears when the agent has memory folders from accounts it used before, or files held back because their content matches another agent’s memory. Tick the folders and choose Adopt selected….
- Memory folders this agent claims (N) lists the folders the agent holds, when each was claimed, and whether other agents also use it. Release… gives a folder up, so another agent that uses it can sync its memory there; if the agent still uses it, its next launch claims it again.
Adopting and releasing are confirmed in a question over the Memory pane (“Adopt earlier memory into agent?” with Cancel / Adopt; “Release agent’s claim on this folder?” with Cancel / Release). It covers that pane only, so the other panes stay usable. An agent driving the UI can open the question but can’t read or answer it, so it can’t confirm for you. Cancel, Escape and closing the pane leave the memory as it was. Adopted files appear in the agent’s folder at its next launch.
An Unverified folder badge next to the agent’s name means AgentMux found the folder from the agent’s settings rather than from the agent’s own launch; it is read-only until the agent launches.
On an agent’s files, New file asks for a File name (letters, numbers, - and _; .md is added) and creates an empty file; it won’t overwrite one that exists. Create MEMORY.md appears when the folder has no MEMORY.md index and starts one (“Starts the index Claude loads every session”). Both wait, with a note, until the agent has launched if its folder is still unverified.
This section and an agent acting on itself go through the same primitive:
| Surface | Commands |
|---|---|
| MuxAPI | memory.list, memory.read, memory.write |
| MCP tool (agent-callable) | Memory (scope personal, the default): list, read, write, history, diff, revert |
See MuxAPI for the full parameter reference.
The memory record: memory follows the agent
Section titled “The memory record: memory follows the agent”A provider keeps an agent’s memory files in a folder tied to its account and working directory (for Claude Code, $CLAUDE_CONFIG_DIR/projects/<cwd>/memory), so the provider’s folder alone doesn’t follow an agent across accounts, working directories or channels. AgentMux keeps its own memory record for each agent, keyed by the agent’s ID rather than by account, folder or channel, and treats it as the source of truth (crates/srv-core/src/backend/memory/record.rs). The record keeps every version of every file, which is what the history, diff and revert views show.
- At each launch, before the provider CLI starts, AgentMux reconciles the agent’s memory folder with the record: files missing from the folder are written back, and changes found on disk are recorded (
crates/srv-core/src/backend/memory/reconcile.rs). If a file changed on both sides, the disk version wins and the other is kept beside it as a<name>__conflict_<id>.mdfile. This is how memory follows an agent into a new account, working directory or channel. - While the agent runs, AgentMux watches its memory folder and records a file Claude writes once it has been unchanged for about 2 seconds, with a periodic sweep as a backup (
crates/srv-core/src/backend/memory/native_drift.rs). - AgentMux’s own writes —
Memorywrite, edits in Memory → Personal, revert — go into the record first, then to the file. - Shared folders: two agents can end up with the same memory folder (same account and working directory, for example). AgentMux only syncs the record with a folder it can show belongs to this agent alone; a shared folder is left as it is (
crates/srv-core/src/backend/memory/dir_claims.rs). The first time an agent’s record meets a folder, a file whose content another agent’s record already has is held for you to review instead of being taken over; it shows up in the adoption panel above.
AgentMux also writes each file through to the db_agent_native_memory mirror on list, read and write. See docs/specs/SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.md in the main repo for the design.
Dreams
Section titled “Dreams”Dreams is the record of the passes that tidy what agents remember. Its header reads “Compact shortens what the agent is working with now. Dream tidies what it remembers. Prune clears old saved conversation to free space.” The section is read-only: it applies, rejects and starts nothing, and only the AgentMux window reads it.
Each pass is a row, newest first, with:
- when it ran, and whose memory it tidied: an agent, or Global Memory;
- what started it: After a compaction, While idle, Memory built up, Nightly or Started by you;
- its state: Queued, Running, Ready for review, Applied, Rejected, Reverted, Held or Failed. A held pass says why: “Held: you were typing”, “Held: the account is out of quota”, “Held: another pass is running” or “Held: the memory changed”;
- what it cost: the tokens in and out, and the price, or “plan quota” when the agent’s plan paid for it.
Click a row to open what the pass proposes for each file: Add, Merge, Rewrite or Remove, with the file’s name, how many characters it changes, “Merged from” the files it combined, the reason, and a diff of the text. A flag marks a change that needs a look. A pass that proposed nothing says “This dream proposed no changes.” A long list ends with Load more, and an empty one says “No dreams yet. A pass that tidies an agent’s memory is listed here, newest first.”
Skills
Section titled “Skills”A skill is a reusable procedure an agent follows when it is relevant: “write release notes from the merged pull requests”, “pull the tables out of a PDF”. Only the skill’s name and description are in the agent’s context all the time. Its full text is read when the agent uses the skill. That is why a skill is the right place for instructions an agent needs only now and then, where Global Memory puts everything in front of every agent in every session.
A skill or Global Memory?
Section titled “A skill or Global Memory?”| Global Memory | Skill | |
|---|---|---|
| What the agent gets | The whole entry, in its startup instructions at every launch, and again after a new session, /clear or a compaction | Its name and description; the text only when the skill is used |
| Which agents | Every agent | Only the agents it is bound to |
| Cost | Context in every session, relevant or not | Almost nothing until used |
| Use it for | Rules that always apply: how the agent talks to you, repository rules, what it must never do | Procedures needed occasionally: a release checklist, a review routine, how to use a tool |
A rule that only matters for one kind of task belongs in a skill. A rule that must hold even when the agent would never think to look it up belongs in Global Memory.
Which agents a skill reaches
Section titled “Which agents a skill reaches”AgentMux comes with one skill, disk-cleanup: measure what AgentMux and builds leave on the disk first, say what is safe to remove, and ask before deleting anything. It is added once, reaches every agent, and is never overwritten: your edits stay, and a delete is final. You can switch off its reach as for any skill, below.
A global skill reaches the agents it is bound to, directly or through a bundle that includes it, and the agents its reach covers. A skill bound to nobody, with no reach, reaches nobody: it stays in the catalog and no agent sees it. Binding or unbinding takes effect at the agent’s next launch.
Reach is set per skill, under the skill’s name in Memory → Skills, with two switches: Every agent gets it (the ones to come too) gives the skill to every agent without a bind, and New agents get it gives it only to the agents created from then on. A skill you add starts with New agents get it on. An agent can opt out of a skill that reaches every agent or new agents (below) without losing it for the others. AgentMux then writes the skills the agent is bound to into its files: for a Claude Code agent a slash command (.claude/commands/<trigger>.md) or an Agent Skill (.claude/skills/<name>/SKILL.md), for the other providers a list in the startup file. An agent can also keep skills of its own that only it sees.
Add your own
Section titled “Add your own”- Open Memory → Skills and click + New skill.
- Fill in Name (required), Format, Trigger (slash commands only), Description and Content. The two formats are Slash command (/trigger), which you or the agent run by typing the trigger, and Agent Skill (SKILL.md), a beta format the agent picks up by its description, with no trigger. Write the description as when to use the skill: it is all the agent sees until it uses it.
- Bind it, or no agent will have it. Open the skill, choose an agent under Bind to agent and click Bind. Or add the skill to a bundle and give the bundle to the agents that should have it.
A skill’s page says “Used by N agents” and lists them, each with Unbind.
The section lists each skill with who it reaches (the tag reads all agents for disk-cleanup, the one skill AgentMux ships, and otherwise how many agents the skill is bound to), and ends with + New skill, Import a skill… and Agents and skills.


Agents and skills
Section titled “Agents and skills”Agents and skills, below the skill list in Memory → Skills, opens a grid with one row per agent and one column per skill. Each cell says how that agent gets that skill:
| Cell | Meaning | Click |
|---|---|---|
| Bound | You bound the skill to the agent. | Unbind |
| Via bundle | One of the agent’s bundles includes it. | Change it in the bundle. |
| Every agent or New agents | The skill’s reach covers the agent. | Opt out: the agent no longer gets it. Other agents keep it. |
| Opted out | The agent opted out of a skill that reaches it. | Opt back in |
| empty | The agent doesn’t get the skill. | Bind |
A change reaches an agent’s files at its next launch. An agent whose skills can’t be read is left out of the grid.
Import a skill
Section titled “Import a skill”To bring in a skill someone else wrote, click Import a skill… below the skill list in Memory → Skills. Choose where it is under From:
- A folder on this computer: a folder with a
SKILL.md, or a folder of skills. - A git repository (https): an
https://address such ashttps://github.com/owner/skills.git, and optionally a branch or tag (the default branch if empty). - A SKILL.md at an https address: one file.
Click Read. Reading a source writes nothing. AgentMux lists every skill it found, with its name, its description and its whole text, so you read what an agent would be told to follow before anything is added. Each shows New, Differs from the catalog (with a diff of what would change) or Already up to date. Tick the ones to bring in and click Import.
- An imported skill starts bound to nobody. It isn’t given to any agent, including new ones, until you bind it.
- Only https. A
file://or other kind of git address is refused, symlinks aren’t followed, a file over 256 KB is left out, and a source yields at most 100 skills. A note on the list says what was left out. - Check for changes on an imported skill, under its text, reads its source again and shows a diff against what you have. Nothing changes until you approve it.
To bring in a whole set of skills at once, use Memory → Bundles → Import Bundle with an ABF file. The review before the import shows each skill’s full text, so you can read what an agent would be told to follow. A skill too long to show in full is marked “Not fully shown” and starts unticked: tick it to import the whole skill. An imported skill is bound only to the bundle it came in, so it reaches only the agents that take that bundle.
Agents manage skills with the skill.* commands; see MuxAPI for the RPC reference.
Bundles
Section titled “Bundles”The app-wide view of all bundles. A bundle packages instructions and skills; an agent takes several, in order. + New Bundle creates one; Import Bundle brings in an .abf file (its review shows each skill’s full text before anything is imported). See Bundles for the full reference, including how an agent’s bundles are picked, and Agent Bundle Format (ABF) for the file format.

Bundles are created and edited here only. An agent’s Bundles… dialog (in its My Agents panel) picks which bundles that agent starts with; it doesn’t create or edit them.
Per agent
Section titled “Per agent”Memory is app-wide, and each of its sections has a way in for one agent:
- Personal Memory: right-click an agent’s pane and choose Personal memory. Memory opens on Personal with that agent selected.
- Skills and Bundles: Bundles…, in an agent’s My Agents panel, picks the bundles it starts with. A skill’s page lists the agents it is bound to, each with Unbind, and binds another with Bind to agent, as an MCP server’s page in Connectors does.
Portable bundles
Section titled “Portable bundles”Agent Bundle Format (ABF) packages a bundle’s instructions, context files, skills and, if you choose, widgets into one .abf file, composing existing standards (Agent Skills, AGENTS.md) rather than inventing new ones. The Bundles section has an Import Bundle button for bringing one in.
See also
Section titled “See also”- Connectors — Accounts, MCP servers and Remotes
- Bundles — full bundle reference, and how an agent’s bundles are picked
- Agent Bundle Format (ABF) — the file format for moving a bundle between installs
- MuxAPI —
skill.*,bundle.*andmemory.*RPC catalogs docs/specs/SPEC_MEMORY_FOLLOWS_THE_AGENT_2026_09_24.mdin the main repo — the memory record, adoption and folder claims