sameeh07/agent-skills/deep-agents-orchestration
Claude Code and agent skill by sameeh07/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents. Covers SubAgentMiddleware, TodoList for planning, and HITL interrupts.
Install
npx vskill@latest install sameeh07/agent-skills/deep-agents-orchestrationSKILL.md
The same SKILL.md was published earlier as langchain-ai/skills-benchmarks/deep-agents-orchestration.
<overview> Deep Agents include three orchestration capabilities:
- SubAgentMiddleware: Delegate work via
tasktool to specialized agents - TodoListMiddleware: Plan and track tasks via
write_todostool - HumanInTheLoopMiddleware: Require approval before sensitive operations
All three are automatically included in create_deep_agent(). </overview>
Subagents (Task Delegation)
<when-to-use-subagents>
| Use Subagents When | Use Main Agent When | |
|---|---|---|
| Task needs specialized tools | General-purpose tools sufficient | |
| Want to isolate complex work | Single-step operation | |
| Need clean context for main agent | Context bloat acceptable |
</when-to-use-subagents>
<how-subagents-work> Main agent has task tool -> creates fresh subagent -> subagent executes autonomously -> returns final report.
Default subagent: "general-purpose" - automatically available with same tools/config as main agent. </how-subagents-work>
<ex-custom-subagents> <python> Create a custom "researcher" subagent with specialized tools for academic paper search.
</python> <typescript> Create a custom "researcher" subagent with specialized tools for academic paper search.
</typescript> </ex-custom-subagents>
<ex-subagent-with-hitl> <python> Configure a subagent with HITL approval for sensitive operations.
</python> </ex-subagent-with-hitl>
<fix-subagents-are-stateless> <python> Subagents are stateless - provide complete instructions in a single call.
</python> <typescript> Subagents are stateless - provide complete instructions in a single call.
</typescript> </fix-subagents-are-stateless>
<fix-custom-subagents-dont-inherit-skills> <python> Custom subagents don't inherit skills from the main agent.
</python> </fix-custom-subagents-dont-inherit-skills>
TodoList (Task Planning)
<when-to-use-todolist>
| Use TodoList When | Skip TodoList When | |
|---|---|---|
| Complex multi-step tasks | Simple single-action tasks | |
| Long-running operations | Quick operations (< 3 steps) |
</when-to-use-todolist>
<todolist-tool>
Each todo item has:
content: Description of the taskstatus: One of"pending","in_progress","completed"
</todolist-tool>
<ex-todolist-usage> <python> Invoke an agent that automatically creates a todo list for a multi-step task.
</python> <typescript> Invoke an agent that automatically creates a todo list for a multi-step task.
</typescript> </ex-todolist-usage>
<ex-access-todo-state> <python> Access the todo list from the agent's final state after invocation.
</python> </ex-access-todo-state>
<fix-todolist-requires-thread-id> <python> Todo list state requires a thread_id for persistence across invocations.
</python> </fix-todolist-requires-thread-id>
Human-in-the-Loop (Approval Workflows)
<when-to-use-hitl>
| Use HITL When | Skip HITL When | |
|---|---|---|
| High-stakes operations (DB writes, deployments) | Read-only operations | |
| Compliance requires human oversight | Fully automated workflows |
</when-to-use-hitl>
<ex-hitl-setup> <python> Configure which tools require human approval before execution.
</python> <typescript> Configure which tools require human approval before execution.
</typescript> </ex-hitl-setup>
<ex-approval-workflow> <python> Complete workflow: trigger an interrupt, check state, approve action, and resume execution.
</python> <typescript> Complete workflow: trigger an interrupt, check state, approve action, and resume execution.
</typescript> </ex-approval-workflow>
<ex-reject-with-feedback> <python> Reject a pending action with feedback, prompting the agent to try a different approach.
</python> <typescript> Reject a pending action with feedback, prompting the agent to try a different approach.
</typescript> </ex-reject-with-feedback>
<ex-edit-before-execution> <python> Edit the proposed action arguments before allowing execution.
</python> </ex-edit-before-execution>
<boundaries>
What Agents CAN Configure
- Subagent names, tools, models, system prompts
- Which tools require approval
- Allowed decision types per tool
- TodoList content and structure
What Agents CANNOT Configure
- Tool names (
task,write_todos) - HITL protocol (approve/edit/reject structure)
- Skip checkpointer requirement for interrupts
- Make subagents stateful (they're ephemeral)
</boundaries>
<fix-checkpointer-required> <python> Checkpointer is required when using interrupt_on for HITL workflows.
</python> <typescript> Checkpointer is required when using interruptOn for HITL workflows.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deep-agents-orchestration/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sameeh07/agent-skills/deep-agents-orchestration)