Skip to main content
A Managed Deep Agents project is a normal Python package with one required root agent entry. Other paths are either ordinary modules you import, or files and directories that MDA discovers to enable managed capabilities.
Managed Deep Agents is in public beta and available on LangSmith Cloud in the US region only.

Project layout

Project layout
The only required file is agent.py at the project root containing the agent definition as a named agent. It must export a named agent created with define_deep_agent. Use only one agent entry in a project.

How MDA treats project files

  • Managed context: instructions.md defines the system prompt. Each directory under skills/ contains task-specific instructions, such as a SKILL.md and any supporting files. MDA syncs both instructions.md and skills/ to Context Hub. Optional durable memory is also backed by Context Hub.
  • Application code: Files under tools/ and middleware/ are ordinary project modules. Import them from the agent entry. Other local modules work the same way.
  • Managed configuration: Certain paths enable capabilities when present. For channels/, connectors/, and schedules/, only direct children are managed declarations; nested modules are not. MCP connector modules export a module-level connector.
  • Dependencies and secrets: Declare dependencies in pyproject.toml. MDA loads .env locally and forwards non-reserved values as deployment secrets. Reserved platform variables and .env files are not included in the build archive. For more information, see Deploy a Managed Deep Agent.
  • Evals: Managed Deep Agents evals are Harbor evals. Run mda evals init -i and develop tasks with a coding agent and the eval-engineering skill. Generated runtime files stay under .mda/evals/ and are not included in the deployed agent build.

Next steps

Quickstart

Create and deploy your first Managed Deep Agent with the mda CLI.

Tutorial

Add durable memory and a daily schedule to the quickstart research assistant.