Initialize, validate, and troubleshoot Deep Agents projects in Python or JavaScript using the `deepagents` package. Use when users need to create agents with built-in planning/filesystem/subagents, configure middleware/backends/checkpointing/HITL, migrate from `create_react_agent` or `create_agent`, scaffold projects with repo scripts, validate agent config files, and confirm compatibility with current LangChain/LangGraph/LangSmith docs.
npx skills add https://github.com/Lubu-Labs/langchain-agent-skills --skill deepagents-setup-configuration
Deep Agents are an agent harness on top of LangChain + LangGraph with built-in planning, filesystem context management, and subagent delegation.
write_todos), or long-term memory patterns.create_react_agent flows.agent.py / agent.js / agent.ts config.scripts/init_deep_agent_project.py: scaffolds Python/JS projects with templates.scripts/validate_deep_agent_config.py: static checks for Deep Agent config quality.references/deep-agents-reference.md: detailed API, middleware, backends, migration, troubleshooting.assets/templates/deep-agent-simple/: minimal Python starter template.assets/examples/basic-deep-agent/: richer Python example.init_deep_agent_project.py (Python or JS).validate_deep_agent_config.py.references/deep-agents-reference.md for advanced configuration.| Need | Deep Agents | LangChain create_agent | LangGraph |
|------|-------------|--------------------------|-----------|
| Built-in planning/filesystem/subagents | ✅ Best fit | ⚠️ Manual middleware setup | ❌ Manual graph design |
| Fast path for complex multi-step tasks | ✅ | ⚠️ | ⚠️ |
| Fully custom graph topology | ❌ | ❌ | ✅ Best fit |
| Minimal/simple agent (1-3 steps) | ⚠️ Overhead | ✅ Best fit | ⚠️ |
Use repo-local scripts and prefer uv run.
# Python simple template
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language python --template simple --path skills/
# Python with subagents
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language python --template with-subagents --path skills/
# Python CLI-config template (memory/checkpointer toggles)
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language python --template cli-config --path skills/
# JavaScript template
uv run skills/deepagents-setup-configuration/scripts/init_deep_agent_project.py my-agent --language javascript --template simple --path skills/
Templates currently supported by the script:
simplewith-subagentscli-configGenerated outputs include:
agent.py or agent.jstools/example_tools.py or tools/example_tools.js.env.exampleREADME.md.gitignorepyproject.toml (Python) or package.json (JavaScript)Run static validation before shipping examples/templates:
uv run skills/deepagents-setup-configuration/scripts/validate_deep_agent_config.py path/to/agent.py
uv run skills/deepagents-setup-configuration/scripts/validate_deep_agent_config.py path/to/agent.js
uv run skills/deepagents-setup-configuration/scripts/validate_deep_agent_config.py path/to/agent.ts
Validator behavior:
create_deep_agent(**kwargs), createDeepAgent(config)), with warning that some static checks are skipped.interrupt_on / interruptOn should be mapping/object, and requires checkpointer.Default middleware includes:
TodoListMiddlewareFilesystemMiddlewareSubAgentMiddlewareSummarizationMiddlewareAnthropicPromptCachingMiddlewarePatchToolCallsMiddlewareConditionally added middleware:
MemoryMiddleware when memory is setSkillsMiddleware when skills is setHumanInTheLoopMiddleware when interrupt_on / interruptOn is setagent = create_deep_agent(
model="anthropic:claude-sonnet-4-5-20250929", # string or model object
tools=[...],
system_prompt="...",
subagents=[...], # optional delegation specialists
middleware=[...], # optional custom middleware
store=store, # needed for StoreBackend patterns
backend=backend_factory, # State/Store/Filesystem/Composite
checkpointer=checkpointer # required for HITL interrupts
)
Backend guidance:
StateBackend (default): thread-scoped, ephemeral.StoreBackend: persistent files via LangGraph store (requires store=).CompositeBackend: route prefixes (common /memories/ -> StoreBackend).FilesystemBackend: direct disk access; use carefully, prefer virtual_mode=True with root_dir.If using human approval interrupts:
interrupt_on={...}interruptOn={...}InMemorySaver, MemorySaver, Sqlite/Postgres saver, etc.)langgraph.prebuilt.create_react_agent is deprecated in LangGraph v1.langchain.agents.create_agent.deepagents.create_deep_agent / createDeepAgent.deepagents is currently a pre-1.0 package, so minor-version upgrades may include API changes.deepagents versions.Before publishing this skill:
.env.example must stay placeholder-only).__pycache__/ and *.pyc from skill folders.agent.py / agent.js templates.StoreBackend route + store= wiring.create_agent or plain LangGraph.references/deep-agents-reference.md for detailed API and migration patterns.assets/templates/deep-agent-simple/ for minimal template files.assets/examples/basic-deep-agent/ for a fuller runnable example.This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
Coding Agent Session Search - unified CLI/TUI to index and search local coding agent history from Claude Code, Codex, Gemini, Cursor, Aider, ChatGPT, Pi-Agent, Factory, and more. Purpose-built for AI agent consumption with robot mode.
Destructive Command Guard - High-performance Rust hook for Claude Code that blocks dangerous commands before execution. SIMD-accelerated, modular pack system, whitelist-first architecture. Essential safety layer for agent workflows.
Makepad UI development skills for Rust apps: setup, patterns, shaders, packaging, and troubleshooting.
Secure environment variable management ensuring secrets are never exposed in Claude sessions, terminals, logs, or git commits
Prompt for generating an AGENTS.md file for a repository
Take lubu-labs/deepagents-setup-configuration from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.