From deepagents-skills
Initializes, validates, and troubleshoots Deep Agents projects in Python/JavaScript with deepagents on LangChain/LangGraph. Scaffolds templates, migrates legacy agents, checks configs.
npx claudepluginhub lubu-labs/langchain-agent-skills --plugin langgraph-skillsThis skill uses the workspace's default tool permissions.
Deep Agents are an agent harness on top of LangChain + LangGraph with built-in planning, filesystem context management, and subagent delegation.
assets/examples/basic-deep-agent/README.mdassets/examples/basic-deep-agent/agent.pyassets/templates/deep-agent-simple/README.mdassets/templates/deep-agent-simple/agent.pyassets/templates/deep-agent-simple/pyproject.tomlreferences/deep-agents-reference.mdscripts/init_deep_agent_project.pyscripts/validate_deep_agent_config.pyGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
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.