Deep Agents Core
langchain-ai/langchain-skills
Explains how to build agents with the Deep Agents framework: create_deep_agent, the built-in middleware, the harness, SKILL.md format and configuration options.
Build batteries-included agents with planning, context management, subagent delegation, and sandboxed execution.
$ npx skills add langchain-ai/docs --skill deep-agents -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install langchain-ai/docs deep-agents --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/langchain-ai/docs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/.mintlify/skills/deep-agents .claude/skills/deep-agents && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "deep-agents" agent skill from https://github.com/langchain-ai/docs/tree/main/src/.mintlify/skills/deep-agents into .claude/skills/deep-agents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-agents", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/langchain-ai/docs/tree/main/src/.mintlify/skills/deep-agentsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add langchain-ai/docs --skill deep-agents -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install langchain-ai/docs deep-agents --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langchain-ai/docs.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src/.mintlify/skills/deep-agents .agents/skills/deep-agents && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "deep-agents" agent skill from https://github.com/langchain-ai/docs/tree/main/src/.mintlify/skills/deep-agents into .agents/skills/deep-agents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-agents", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add langchain-ai/docs --skill deep-agents -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install langchain-ai/docs deep-agents --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langchain-ai/docs.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src/.mintlify/skills/deep-agents .cursor/skills/deep-agents && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "deep-agents" agent skill from https://github.com/langchain-ai/docs/tree/main/src/.mintlify/skills/deep-agents into .cursor/skills/deep-agents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-agents", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/langchain-ai/docs.git --path src/.mintlify/skills/deep-agents--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add langchain-ai/docs --skill deep-agents -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install langchain-ai/docs deep-agents --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langchain-ai/docs.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src/.mintlify/skills/deep-agents .gemini/skills/deep-agents && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "deep-agents" agent skill from https://github.com/langchain-ai/docs/tree/main/src/.mintlify/skills/deep-agents into .gemini/skills/deep-agents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-agents", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install langchain-ai/docs deep-agentsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add langchain-ai/docs --skill deep-agents -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/langchain-ai/docs.git skills-src && mkdir -p .github/skills && cp -r skills-src/src/.mintlify/skills/deep-agents .github/skills/deep-agents && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "deep-agents" agent skill from https://github.com/langchain-ai/docs/tree/main/src/.mintlify/skills/deep-agents into .github/skills/deep-agents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-agents", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add langchain-ai/docs --skill deep-agents -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install langchain-ai/docs deep-agents --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langchain-ai/docs.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src/.mintlify/skills/deep-agents .opencode/skills/deep-agents && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "deep-agents" agent skill from https://github.com/langchain-ai/docs/tree/main/src/.mintlify/skills/deep-agents into .opencode/skills/deep-agents/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-agents", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
deep-agentsBuild batteries-included agents with planning, context management, subagent delegation, and sandboxed execution.
Deep Agents is an agent skill from langchain-ai/docs, published by the product's own GitHub organization. Build batteries-included agents with planning, context management, subagent delegation, and sandboxed execution. Use for complex, multi-step tasks that need built-in capabilities.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Python 3.10+, Node.js 22+. Requires a model that supports tool calling.
It sits in Agent Workflows, covering Context engineering, Subagents and Building AI agents. It works with LangChain and LangGraph. The repository describes itself as: Unified LangChain documentation. The licence is MIT.
Read from SKILL.md and the folder at commit be3028f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pipnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
reference.langchain.comAlso links to:
docs.langchain.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Python 3.10+, Node.js 22+. Requires a model that supports tool calling.
From compatibility in the SKILL.md frontmatter.
Deep Agents loads about 1.1k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 299 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from langchain-ai/docs at commit be3028f, republished under its MIT licence (© langchain-ai). 299 words, ~1,066 tokens.
.claude/skills/deep-agents/SKILL.md (or your agent's skills folder).Deep Agents is the easiest way to start building agents powered by LLMs—with built-in capabilities for task planning, file systems for context management, subagent delegation, and long-term memory. It is an "agent harness" built on LangChain core building blocks and the LangGraph runtime.
Use Deep Agents when you need to:
# Python
pip install deepagents
# JavaScript/TypeScript
npm install deepagents langchain @langchain/core# pip install deepagents langchain-anthropic
from deepagents import create_deep_agent
def get_weather(city: str) -> str:
"""Get weather for a given city."""
return f"It's always sunny in {city}!"
agent = create_deep_agent(
model="anthropic:claude-sonnet-4-6",
tools=[get_weather],
system_prompt="You are a helpful assistant",
)
result = agent.invoke(
{"messages": [{"role": "user", "content": "What is the weather in SF?"}]}
)# Install Deep Agents Code
pip install deepagents-code
# Run an interactive terminal agent
deepagents| Capability | Description |
|---|---|
| Planning | Automatic task decomposition for complex requests |
| File system | Virtual filesystem for reading, writing, and managing context |
| Subagents | Spawn child agents for parallel subtask execution |
| Context management | Automatic context compression for long conversations |
| Sandboxed execution | Run code in isolated environments (Modal, Runloop, Daytona) |
| Protocols | ACP, MCP, and A2A support for interoperability |
For SDK class and method details, use the LangChain API Reference site:
https://reference.langchain.com/mcp© langchain-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in src/.mintlify/skills/deep-agents of langchain-ai/docs.
Open the folder on GitHubat commit be3028f
Deep Agents next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Deep Agents this skilllangchain-ai/docs | 426 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Deep Agents Corelangchain-ai/langchain-skills | 1.3k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Langchain Deep Agentsjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~4.9k | Automated safety check: Pass | MIT | |
| Magic ResumeMagic-Resume/Magic-Resume | 101 | — | ~663 | Automated safety check: Pass | MIT | |
| Mem0 Platform SDKmem0ai/mem0 | 67k | 1 repos | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| Pydantic AI Harnesspydantic/pydantic-ai | 20k | — | ~4.9k | Automated safety check: Pass | MIT |
langchain-ai/langchain-skills
Explains how to build agents with the Deep Agents framework: create_deep_agent, the built-in middleware, the harness, SKILL.md format and configuration options.
jeremylongshore/tons-of-skills-marketplace
Build a LangGraph 1.0 Deep Agent — planner + subagents + virtual filesystem + reflection loop — without the state-growth and prompt-inheritance traps.
Magic-Resume/Magic-Resume
How AI agents integrate with Magic Resume — read and safely edit a user's resumes through the native MCP server (@magic-resume/mcp).
mem0ai/mem0
Adds persistent memory to AI apps with the Mem0 Python and TypeScript SDKs: store, search, update and delete user memories, with framework integrations.
pydantic/pydantic-ai
Adds optional capabilities to Pydantic AI agents from pydantic-ai-harness, led by Code Mode, which runs many tool calls as one sandboxed Python script.
GetBindu/Bindu
Add a new self-contained example agent under examples/. An agent skill from GetBindu/Bindu.
langchain-ai/docs
Add, move, rename, or delete a page on the LangChain docs site.
langchain-ai/docs
A skill your agent uses when migrating inline code samples from LangChain docs (MDX files) into external, testable code files that are extracted by this repo’s snippet scripts and used as Mintlify…
langchain-ai/docs
Edit a docs page that already has an open pull request, or revise a page in place.
langchain-ai/docs
Restructure documentation that spans several pages. An agent skill from langchain-ai/docs.
langchain-ai/docs
Write or revise documentation prose so it reads like the rest of this site, in the docs team's shared voice.
langchain-ai/docs
Build agents with a prebuilt architecture and integrations for any model or tool.
Categories
Build batteries-included agents with planning, context management, subagent delegation, and sandboxed execution. Deep Agents is an agent skill from langchain-ai/docs, published by the product's own GitHub organization. Build batteries-included agents with planning, context management, subagent delegation, and sandboxed execution.
Deep Agents fits situations like: multi-step tasks that need built-in capabilities; tasks that involve Context engineering; tasks that involve Subagents.
Run `npx skills add langchain-ai/docs --skill deep-agents -a claude-code`. Or copy the skill folder (src/.mintlify/skills/deep-agents in langchain-ai/docs) into .claude/skills/deep-agents in your project. Claude Code loads it when a task matches its description.
Run `npx skills add langchain-ai/docs --skill deep-agents -a codex`. Or copy the skill folder (src/.mintlify/skills/deep-agents in langchain-ai/docs) into .agents/skills/deep-agents in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add langchain-ai/docs --skill deep-agents -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deep-agents, .gemini/skills/deep-agents, .github/skills/deep-agents and .opencode/skills/deep-agents in your project.
Going by SKILL.md and its folder, Deep Agents needs the command-line tools its instructions call (pip and npm). Our summary lists: Python 3; Node.js. Compatibility (from SKILL.md): Python 3.10+, Node.js 22+. Requires a model that supports tool calling..
SKILL.md names 2 domains. In commands or code: reference.langchain.com; the agent is likely to contact it when it follows the instructions. As links in the text: docs.langchain.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Deep Agents is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Deep Agents: Deep Agents Core (langchain-ai/langchain-skills, 1.3k stars), Langchain Deep Agents (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Magic Resume (Magic-Resume/Magic-Resume, 101 stars) and Mem0 Platform SDK (mem0ai/mem0, 67k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
langchain-ai (a GitHub organization, an official publisher) maintains it in langchain-ai/docs, which has 426 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 9, 2026.
Source: langchain-ai/docs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.