Skip to main content
A Managed Deep Agents project has a required agent entry and optional files that enable managed capabilities. It is a regular TypeScript project.
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.ts or agent.tsx at the project root. It must export a named agent created with defineDeepAgent. Use only one agent entry in a project. See Agent definition.

How Managed Deep Agents treats project files

  • Managed context: instructions.md defines the system prompt. Each directory under skills/ contains task-specific instructions. Managed Deep Agents 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.ts and memory.ts, direct children of channels/, connectors/, and schedules/, and sandbox/index.ts enable their corresponding capabilities. MCP connector modules export a named connector.
  • Dependencies and secrets: Declare dependencies in package.json. Managed Deep Agents loads .env locally and forwards eligible values as deployment secrets, but never includes .env files in the build archive.
  • 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.
The layout above shows the common .ts names. TypeScript managed declarations also accept the supported .tsx, .mts, or .cts variants.