deep-agents-core
INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format,…
INVOKE THIS SKILL when building, testing, or deploying Managed Deep Agents in LangSmith. Walks a user through their first agent end to end — interviewing them about what they want to build, mapping it onto what MDA can actually do, then scaffolding and deploying it. Covers the
Claude Code
$ npx -y skills add langchain-ai/langchain-skills --skill managed-deep-agents --agent claude-code
Codex
$ npx skills add langchain-ai/langchain-skills --skill managed-deep-agents -a codex -y
Cursor
$ npx skills add langchain-ai/langchain-skills --skill managed-deep-agents -a cursor -y
Gemini CLI
$ npx skills add langchain-ai/langchain-skills --skill managed-deep-agents -a gemini-cli -y
GitHub Copilot
$ npx skills add langchain-ai/langchain-skills --skill managed-deep-agents -a github-copilot -y
OpenCode
$ npx skills add langchain-ai/langchain-skills --skill managed-deep-agents -a opencode -y
Windsurf
$ npx skills add langchain-ai/langchain-skills --skill managed-deep-agents -a windsurf -y
name: managed-deep-agents description: "INVOKE THIS SKILL when building, testing, or deploying Managed Deep Agents in LangSmith. Walks a user through their first agent end to end — interviewing them about what they want to build, mapping it onto what MDA can actually do, then scaffolding and deploying it. Covers the file-based project layout; define_deep_agent / defineDeepAgent; instructions, skills, memory, identity, tools, MCP servers, connections, middleware, sandboxes, schedules, channels, and evals; the mda CLI; GitHub deployments; and Context Hub."
Managed Deep Agents (MDA) is a hosted runtime for code-first Deep Agents in LangSmith. You author an agent in Python or TypeScript, test it locally with `mda dev`, and deploy it with `mda deploy` or from a connected GitHub repository in LangSmith. It pairs the open-source Deep Agents harness (see [[deep-agents-core]]) with managed infrastructure: durable runs, sandboxes, Context Hub-backed instructions and skills, memory, traces, and hosted LangGraph deployment.
The core idea is that **an agent is a directory**. A file's location determines its role, and the CLI compiles that directory into a managed LangGraph app.
MDA is in **public beta** and runs on **US LangSmith Cloud only**.
Use this skill when the user wants to build a Deep Agent in code and run it on LangSmith without operating their own server, or to add tools, MCP servers, connections, middleware, memory, identity, schedules, channels, skills, sandboxes, or evals to one.
Use a standard LangSmith Deployment instead (see [[langgraph-cli]], `langgraph deploy`) when the user needs custom server routes or runtime wiring inside the agent deployment, stronger isolation, maximum scalability, or a region other than US. MDA can still sit behind a separately operated backend that authenticates callers and proxies trusted identity headers.
When a user is new to MDA, or says anything like "help me build an agent", **do not scaffold immediately**. Run this flow. It costs two questions and prevents building something the platform cannot host.
ask what they want to build -> check it against the limits -> confirm the shape -> scaffold -> wire the smallest thing that runs -> mda dev -> deploy
Ask in plain language, not in MDA vocabulary. The user does not yet know what a "channel" or a "sandbox" is.
Ask these two things first:
Then ask only the follow-ups that the answers actually raise:
Stop asking once you can name the capabilities. Two or three questions is usually enough.
Before you promise anything, check the request against **[What MDA cannot do](#what-mda-cannot-do)** below. If part of the request is out of scope, say so in one sentence, offer the nearest supported thing, and keep going with the rest. Do not quietly build a smaller agent and present it as what they asked for.
The common redirect: if they need custom HTTP routes, their own auth, or non-US hosting, tell them MDA is the wrong layer and point at `langgraph deploy` ([[langgraph-cli]]).
| What the user describes | What to reach for | Where it lives | | --- | --- | --- | | How it should behave, its tone, its rules | Instructions | `instructions.md` | | Calls our API / database / internal service | Authored tools | `tools/` | | Uses a remote MCP server | MCP declaration | `tools/mcp.py` or `tools/mcp.ts` | | Uses a workspace secret or OAuth grant | Connection | `connections.get(...)` + `mda connections` | | A procedure it should follow for certain tasks | Skills | `skills/<name>/SKILL.md` | | Remembers things across conversations | Durable memory (read the warning) | `memory.py` | | Runs on a timer, no user message | Schedules | `schedules/<name>.py` | | Lives in Slack | Channels | `channels/slack.py` | | Writes files, runs code or shell commands | Sandbox | `sandbox/__init__.py` | | Ask me before it does X | Human-in-the-loop | `interrupt_on=` | | Users must not see each other's chats | Supabase identity | `identity.py` | | Must return structured data, not prose | Structured output | `response_format=` | | Hand off specialized work | Subagents | `subagents=` | | PII redaction, call limits, retries, logging | Middleware | `middleware/` | | Prove it still works as we change it | Harbor evals | `evals/<task>/` |
State the plan back in one short block and get agreement. Name the model, and list only the capabilities you are actually going to create:
research-assistant, Python, on anthropic:claude-sonnet-4-6 instructions.md how it researches and cites tools/search.py web search schedules/ weekday 8am digest no memory, no sandbox, no channel
Scaffold with the flags that match the plan, so the project starts correct instead of being edited into shape:
mda init research-assistant --model anthropic:claude-sonnet-4-6 cd research-assistant uv sync
Then add **one** capability at a time and confirm each one works before adding the next. A first agent that answers with good instructions and one real tool is a better starting point than a scaffold with every directory filled in.
Do not create directories the plan did not call for. Empty or unused `skills/`,
⚠️ — This project is in early development. APIs and skill content may change. Agent skills for building agents with LangChain, LangGraph, and Deep Agents. For LangSmith-specific trace and dataset workflows, use langsmith-skills.
INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format,…
INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access. Covers StateBackend (ephemeral),…
INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents. Covers SubAgentMiddleware, TodoList for…
Scaffold a minimal local Deep Agent in Python by following the official quickstart, using provider-native web search instead of…
Scaffold a minimal local Deep Agent in TypeScript by following the official quickstart, using provider-native web search instead…
INVOKE FIRST for any LangChain / LangGraph / Deep Agents agent building project before consulting other skills or writing any…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.