Tooluck logoTooluck
SKILL.md

deep-agents-orchestration

Agent skill fromlangchain-ai/langchain-skills

INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents. Covers SubAgentMiddleware, TodoList for planning, and HITL interrupts.

How to install deep-agents-orchestration

install deep-agents-orchestration
# install the langchain-skills pack with the skills CLI
npx skills add langchain-ai/langchain-skills

# or add only this skill to Claude Code: copy the folder

config/skills/deep-agents-orchestration/

# into

~/.claude/skills/deep-agents-orchestration/ (all projects)

.claude/skills/deep-agents-orchestration/ (one project)

config/skills/deep-agents-orchestration/SKILL.md

MITFull file
1<overview>
2Deep Agents include three orchestration capabilities:
3
41. **SubAgentMiddleware**: Delegate work via `task` tool to specialized agents
52. **TodoListMiddleware**: Plan and track tasks via `write_todos` tool
63. **HumanInTheLoopMiddleware**: Require approval before sensitive operations
7
8All three are automatically included in `create_deep_agent()`.
9</overview>
10
11---
12
13## Subagents (Task Delegation)
14
15<when-to-use-subagents>
16
17| Use Subagents When | Use Main Agent When |
18|-------------------|-------------------|
19| Task needs specialized tools | General-purpose tools sufficient |
20| Want to isolate complex work | Single-step operation |
21| Need clean context for main agent | Context bloat acceptable |
22
23</when-to-use-subagents>
24
25<how-subagents-work>
26Main agent has `task` tool -> creates fresh subagent -> subagent executes autonomously -> returns final report.
27
28**Default subagent**: "general-purpose" - automatically available with same tools/config as main agent.
29</how-subagents-work>
30
31<ex-custom-subagents>
32<python>
33Create a custom "researcher" subagent with specialized tools for academic paper search.
34
35```python
36from deepagents import create_deep_agent
37from langchain.tools import tool
38
39@tool
40def search_papers(query: str) -> str:
41 """Search academic papers."""
42 return f"Found 10 papers about {query}"
43
44agent = create_deep_agent(
45 subagents=[
46 {
47 "name": "researcher",
48 "description": "Conduct web research and compile findings",
49…

Excerpt shown under the repository's MIT license.

More skills in langchain-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates