Skip to main content
A Managed Deep Agents project is a regular Python or TypeScript project with a required agent entry and optional files that enable managed capabilities.
Managed Deep Agents is in public beta and available on LangSmith Cloud in the US region only.

Project layout

The only required file is agent.py, agent.ts, or agent.tsx at the project root. It must export a named agent created with define_deep_agent or defineDeepAgent. Do not mix Python and TypeScript agent entries in one project. See Agent definition.

How MDA treats project files

  • Managed context: instructions.md defines the system prompt. Each directory under skills/ contains task-specific instructions. MDA syncs both to 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: Root identity.* and memory.*, direct children of channels/ and schedules/, and sandbox/__init__.py or sandbox/index.ts enable their corresponding capabilities.
  • Dependencies and secrets: Declare dependencies in pyproject.toml or package.json. MDA loads .env locally and forwards eligible values as deployment secrets, but never includes .env files in the build archive.
  • Evals: Author optional Harbor tasks under evals/. mda evals compile writes the generated Harbor handoff under .mda/evals/. Eval tasks are not included in the deployed agent build.
The layout above shows the common .py and .ts names. TypeScript managed declarations also accept the supported .tsx, .mts, or .cts variants.