/memories/user/ across threads. With identity, memory is remounted per actor or tenant so callers cannot see each other’s private state.
Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
What memory is (and is not)
Memory is not your system prompt. Edit
instructions.md and skills/** in the project and redeploy. Deploy syncs those files but never overwrites existing memories/** in Context Hub.
Agent-visible layout
The agent never sees sibling actor or tenant trees. Isolation is the remount, not a multi-user listing under
/memories.
Hot and cold memory
The runtime mounts a scoped Hub tree as/memories/user/ and injects hot memory every turn.
Keep hot memory small: preferences, short cursors, and pointers to cold files. Put digests, notes, and large artefacts in cold files and link them from hot memory when needed.
Seed content for a new slice includes the Managed Deep Agents memory instructions marker. Do not delete that guidance block when editing hot memory.
How the agent updates memory
When the user shares a durable preference, the agent should update/memories/user/AGENTS.md with edit_file or write_file in the same turn—before claiming it will remember later.
Tell the model that in instructions.md:
Scope memory with identity
Without identity, every caller shares the same agent memory slice (memories/agent in Context Hub, remounted as /memories/user).
With identity, scoping.memory chooses which Hub subdirectory is remounted:
Isolation is hard: a run only sees its remounted tree. Sibling actor or tenant trees are unreachable.
Presets such as
private-assistant and internal-tool set memory: "actor". The service preset uses shared agent memory. For presets and ingress, see Identity.
/memories/user/AGENTS.md from the agent seed (or a default template) so hot memory instructions are present on turn one.
Org memory (read-only)
Optional org-wide facts live under Context Huborg-memory/ and mount at /memories/org. Agents may read org memory; writes under /memories/org/** are denied. Humans or org tooling update that tree—not the agent.
Local development
mda build / mda dev maintain a local Context Hub mock at .mda/__contexthub__/:
- Syncs
instructions.mdandskills/**from the project - Seeds
memories/agent/AGENTS.mdandorg-memory/AGENTS.mdwhen missing - Preserves existing memory files across rebuilds
memories/<actorId>/ as /memories/user the same way as deploy. After you change the SDK package used by the build, rebuild so .mda/build/__runtime__ picks up the new runtime (vendored at compile time).
Disable managed memory
SetdisableMemory / disable_memory on the agent definition to skip hot injection and the /memories/user memory wiring. Identity scoping.memory: "none" also disables the mount.
Deploy and Context Hub
Onmda deploy, Managed Deep Agents syncs deploy-owned instructions.md and skills/** into the Context Hub agent repo and seeds agent memory when needed. Existing memories/** content is preserved. For the deploy lifecycle, see How Managed Deep Agents work and the CLI memory note.
Test and deploy
Test the project locally withmda dev, then deploy it with mda deploy. Open deployment traces in LangSmith to inspect model calls, tool calls, errors, and latency.
Next steps
Identity
Partition memory per actor or tenant with
scoping.memory.How it works
See how Context Hub, threads, and deploy sync fit together.
CLI reference
Look up project files,
disableMemory, and deploy behavior.Custom tools
Read
runtime.identity when tools need the caller id.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

