Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
Project structure
Every capability lives in a file whose location determines its role:Compose the agent
The agent entry is the wiring diagram for the project. It imports the authored tool and middleware, then declares the model, middleware order, and which tools pause for human review. The managed runtime owns backend, store, checkpointer, memory, skills, and the system prompt, so none are set here.interrupt_on (Python) and interruptOn (TypeScript) pause the run before the query_db tool executes, so a human can approve the call. For decision types and how to respond to interrupts, see Human-in-the-loop. For the full list of fields, see the agent definition reference.
Write the instructions
instructions.md holds the managed system prompt. It sets the agent’s role, references the tools and sandbox workspace, and states memory rules:
instructions.md
Capabilities by file
Each project file maps to a feature guide. Follow the linked page for full examples and configuration options.| File | Capability | Guide |
|---|---|---|
tools/query_db.py or query-db.ts | Read-only database lookup tool | Custom tools |
middleware/audit.py or audit.ts | Audit logging before model calls | Custom middleware |
connectors/mcp.py or mcp.ts | LangChain docs MCP server | Connect MCP tools |
schedules/daily_check_in.py or daily-check-in.ts | Daily 9am Pacific cron run | Schedules |
skills/research/SKILL.md | On-demand research procedure | Deploy an agent |
sandbox/ | Managed LangSmith sandbox | Configure a sandbox |
Run and deploy the project
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.
mda deploy compiles the project, syncs instructions and skills to Context Hub, uploads the build, and reconciles the daily schedule once the deployment is live.
See also
- Quickstart: create and deploy a first agent.
- Tutorial: build an agent step by step.
- How Managed Deep Agents work: compilation, deploy lifecycle, and Context Hub.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

