deepagents-setup-confi…
Initialize, validate, and troubleshoot Deep Agents projects in Python or JavaScript using the `deepagents` package. Use when…
Use the write_todos tool effectively for task planning and decomposition in Deep Agents. Use when users want to (1) implement task planning with write_todos, (2) break down complex tasks into subtasks, (3) track agent progress through todos, (4) debug why todos aren't
Claude Code
$ npx -y skills add soba-labs/langchain-agent-skills --skill deepagents-planning-todos --agent claude-code
Codex
$ npx skills add soba-labs/langchain-agent-skills --skill deepagents-planning-todos -a codex -y
Cursor
$ npx skills add soba-labs/langchain-agent-skills --skill deepagents-planning-todos -a cursor -y
Gemini CLI
$ npx skills add soba-labs/langchain-agent-skills --skill deepagents-planning-todos -a gemini-cli -y
GitHub Copilot
$ npx skills add soba-labs/langchain-agent-skills --skill deepagents-planning-todos -a github-copilot -y
OpenCode
$ npx skills add soba-labs/langchain-agent-skills --skill deepagents-planning-todos -a opencode -y
Windsurf
$ npx skills add soba-labs/langchain-agent-skills --skill deepagents-planning-todos -a windsurf -y
name: deepagents-planning-todos description: Use the write_todos tool effectively for task planning and decomposition in Deep Agents. Use when users want to (1) implement task planning with write_todos, (2) break down complex tasks into subtasks, (3) track agent progress through todos, (4) debug why todos aren't completing, (5) design todo structures for different task types (research, coding, analysis), (6) understand todo status lifecycle and best practices, or (7) visualize todo progression from LangSmith traces.
Master the `write_todos` tool for effective task planning and decomposition in Deep Agents.
| Use write_todos | Execute Directly | |-----------------|------------------| | ✅ Complex multi-step tasks (3-6 steps) | ✅ Simple 1-2 step queries | | ✅ Tasks requiring user approval first | ✅ Single tool calls | | ✅ Long-running workflows needing progress tracking | ✅ Quick information lookups | | ✅ Tasks where planning adds clarity | ✅ Straightforward API calls |
**Decision rule**: If you'd benefit from showing the user "Here's my plan..." before starting, use `write_todos`.
from deepagents import create_deep_agent
# TodoListMiddleware is included by default in create_deep_agent
agent = create_deep_agent(
model="anthropic:claude-sonnet-4-5-20250929",
tools=[search_tool, summarize_tool],
system_prompt="You are a research assistant. Use write_todos for multi-step tasks."
)
# Agent workflow:
# 1. Call write_todos with initial plan
# 2. Ask user: "Does this plan look good?"
# 3. User approves → start executing
# 4. Update the todo list as work progresses
# 5. Keep todos aligned with the current plan and execution state**Example todo creation:**
# Agent calls write_todos internally:
{
"name": "write_todos",
"arguments": {
"todos": [
{"content": "Search for papers on LLM agents", "status": "pending"},
{"content": "Read and extract findings from top 5 papers", "status": "pending"},
{"content": "Identify common themes", "status": "pending"},
{"content": "Write summary report", "status": "pending"}
]
}
}{
"content": "Task description (clear, actionable)",
"status": "pending" | "in_progress" | "completed"
}**Full-list updates**: Treat each `write_todos` call as a full state update and include all active todos.
**Per-turn discipline**: Prefer one `write_todos` update per model turn to avoid conflicting plan changes.
**Best granularity**: Keep lists to **3-6 items maximum** (avoid over-fragmentation).
Deep Agents documentation describes `write_todos` as the built-in interface for todo planning/tracking. Keep todo state accurate by rewriting the list with updated statuses as execution progresses.
pending → in_progress → completed
**Best practices:** 1. Create todos with `"status": "pending"` for newly planned work. 2. Update to `"in_progress"` when starting work on a todo. 3. Mark `"completed"` when finished (don't delete - keeps context). 4. For interactive workflows, ask user approval ("Does this plan look good?") before starting execution.
**Typical workflow:**
# Step 1: Create initial plan (all pending)
write_todos([
{"content": "Research topic", "status": "pending"},
{"content": "Write summary", "status": "pending"}
])
# Step 2: Ask user approval
# User: "Yes, proceed"
# Step 3: Start first task
write_todos([
{"content": "Research topic", "status": "in_progress"},
{"content": "Write summary", "status": "pending"}
])
# Step 4: Complete first task, start second
write_todos([
{"content": "Research topic", "status": "completed"},
{"content": "Write summary", "status": "in_progress"}
])
# Step 5: Finish all tasks
write_todos([
{"content": "Research topic", "status": "completed"},
{"content": "Write summary", "status": "completed"}
])| Task Type | Pattern | Example Todos | |-----------|---------|---------------| | **Research** | gather → synthesize → report | Search docs, Read examples, Analyze patterns, Synthesize findings | | **Coding** | design → implement → test | Design API, Implement endpoints, Write tests, Test end-to-end | | **Analysis** | collect → process → analyze | Collect data, Process traces, Analyze patterns, Visualize results | | **Document Processing** | read → extract → transform | Read files, Extract key info, Transform format, Output result |
**For detailed patterns with code examples**, see `references/todo-patterns.md`.
**Sym
A comprehensive collection of agent-optimized skills for AI coding assistants working in the LangChain ecosystem.
Initialize, validate, and troubleshoot Deep Agents projects in Python or JavaScript using the `deepagents` package. Use when…
Implement multi-agent coordination patterns (supervisor-subagent, router, orchestrator-worker, handoffs) for LangGraph…
Implement LangGraph error handling with current v1 patterns. Use when users need to classify failures, add RetryPolicy for…
Initialize and configure LangGraph projects with proper structure, langgraph.json configuration, environment variables, and…
Design state schemas, implement reducers, configure persistence, and debug state issues for LangGraph applications. Use when…
Use this skill when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration