Managed Deep Agents is in public beta and available on LangSmith Cloud in the US region only.
What lives in Context Hub
Tools, middleware, MCP connectors, channels, schedules, sandboxes, and the agent definition ship with the compiled deployment. They are not synced to Context Hub.
For ownership of managed runtime fields, see Agent definition.
Source of truth
The project and Context Hub both hold copies ofinstructions.md and skills/. Which copy wins depends on where you make lasting changes and how you resolve conflicts on deploy.
- Project files: Treat
instructions.mdandskills/in the project as the source of truth for lasting changes. Eachmda deploysyncs those files into the agent’s Context Hub repo. - Context Hub edits: Edit files in Context Hub when you need a quick change that should apply without a code redeploy. Those Hub edits stay live until a later deploy overwrites them, or until you choose to keep the Hub copy when a conflict prompt appears.
- Durable memory: Memory under
/memories/agent/is agent-owned. Deploys enable the tree but do not overwrite content already stored there.
How deploy syncs context
mda deploy syncs deploy-owned context as part of the deploy pipeline:
- Instructions and skills: Each deploy updates the agent’s Context Hub repo from the project files. Later deploys sync the project copies again. For skills, deploys also remove deployed skill files that no longer exist locally.
- Durable memory: When memory is enabled, the deployment mounts one Context Hub tree at
/memories/agent/. Deploys do not overwrite content already stored there. - Conflicts: If
instructions.mdorskills/changed in Context Hub since the lastmda deploy, the CLI stops before syncing and asks whether to overwrite the Context Hub copy with the project copy. The default answer keeps the Context Hub version and skips syncing that section. In a non-interactive shell there is no prompt. The deploy exits with an error, and you must re-run with--context-strategy overwriteor--context-strategy keep-hub. Re-runningmda deployon its own reports the same conflict again. - Concurrent edits: If the repo changes during the sync itself, the deploy fails with a commit conflict. Re-run
mda deploy.
For the full deploy step list and flags, see the CLI reference. For secrets routing and deploy options, see Deploy an agent.
Edit context in LangSmith
After a successful deploy:- Open the deployment in LangSmith.
- Use the Details sidebar link to the Context Hub repo that holds the deployment’s instructions, skills, and memories. Archived repos are labeled when the context is no longer live.
- Edit files in Context Hub when you need a quick change that should apply without a code redeploy.
Local development
mda dev creates a local Context Hub mock for instructions, skills, and memory. Local Studio sessions do not create or update the hosted Context Hub repo for a deployment.
For more information, see Develop locally with LangSmith Studio.
Choose where context belongs
See also
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

