
Deepagents
Batteries-included agent library for complex, multi-step AI work.
Replaces Langgraph Platform

Who it's for
Deep Agents provides file read/write, subagent delegation, and context management out of the box, so a research or coding agent can read files, spawn specialist subagents for subtasks, summarize accumulated context, and pause for human review before executing changes. Deep Agents Code is a pre-built terminal coding agent built on the same stack.
Skip if the task is a single-turn tool call or a simple retrieval pipeline. For short workflows without multi-step delegation, LangChain's create_agent is a lighter starting point.
The MIT-licensed SDK runs in any Python or TypeScript process or container. Teams configure their own backend, store, and checkpointer with no licensing restrictions on commercial or internal-tooling use. The open source codebase gives full control over every runtime decision.
Skip if your team prefers fully managed infrastructure. Managed Deep Agents on LangSmith handles the agent server, sandboxes, and scheduling with no self-hosting required.
Deep Agents fully supports MCP, letting agents connect to any MCP-compatible database, API, or file system through the standard interface. Pass any MCP server's tools via the tools= parameter with no custom adapter. Filesystem permissions and subagent access controls layer on top.
Skip if your tools are already custom Python functions that do not benefit from MCP's standard interface.
The problem
Building production-grade AI agents on LangGraph requires solving several scaffolding problems before writing any agent-specific logic: how to manage context across long multi-step runs when the model's context window fills, how to safely delegate subtasks to specialized subagents with isolated context, how to read and write files across different backends, and how to pause for human approval before executing irreversible tool calls. Most teams end up writing the same scaffolding layer independently for each project. The code proliferates, diverges between codebases, and becomes a maintenance burden that grows in proportion to the number of agent projects in production.
How it works
Configurable file access layer backed by pluggable backends: in-memory, local disk, LangGraph store, or composite routing. Agents read, write, edit, list, glob, and grep files with declarative permission rules that control path-level access for both the main agent and any subagents.
Spawn general or specialized subagents with isolated context windows to run parallel tasks without polluting the parent agent's context. Any LangGraph CompiledStateGraph can plug in as a subagent, so custom graph workflows compose alongside the defaults.
Summarizes long conversation histories and offloads large tool outputs to disk so agents run across hundreds of turns without hitting model context limits. Pairs with prompt caching and pluggable store backends for cross-session memory.
Pause execution at any tool call, surface the pending action to a human reviewer, and resume, edit, or reject before the tool runs. Built on LangGraph's interrupt mechanism and compatible with any streaming interface.
Works with any LLM that supports tool calling: frontier APIs (OpenAI, Anthropic, Google), open-weight models hosted on Fireworks or Baseten, and local models via Ollama, vLLM, or llama.cpp. Switch models by changing the model= parameter.
Pass tools from any Model Context Protocol server with the tools= parameter. Connects agents to databases, APIs, file systems, and more through the standard MCP interface without custom adapter code.
Features
- Virtual Filesystem
- Subagent Delegation
- Context Management
- Human-in-the-Loop Steering
- Model-Agnostic LLM Support
- MCP Server Integration
How to install
Install the Deep Agents Python SDK with pip to run agents in any Python project.
pip install deepagentsRecommended for this setup
Strengths
- MIT License with Full Self-Hosting: The SDK is MIT-licensed, so teams run it on their own infrastructure without licensing fees and use it commercially without restriction. Unlike LangGraph Platform's managed service, there is no per-execution cost and teams own the full runtime.
- 30k+ Stars and Active Development: 30,917 GitHub stars and 4,344 forks, with the last push on 2026-11-03, confirm active investment from the LangChain team. Created in July 2025, the trajectory shows fast adoption since launch.
- LangGraph Runtime Underneath: Built on LangGraph's durable execution, streaming, and checkpointing, so Deep Agents inherits production deployment primitives. Persistence, typed event streams, and interrupt-based human approval all come from the same battle-tested runtime.
- Composable Middleware Architecture: Every capability layer (filesystem, memory, subagents, context management) is a middleware component that can be overridden or replaced without forking the project. Custom backends, stores, and checkpointers plug in via the same interface.
Trade-offs
- Requires Python or TypeScript Runtime: The SDK adds an installation step versus a no-config managed deployment. Teams without Python or TypeScript infrastructure, or those preferring a zero-configuration cloud path, will need Managed Deep Agents or a custom LangSmith Deployment instead.
- 183 Open Issues from Rapid Growth: The tracker carries 183 open issues, reflecting a project growing quickly since its July 2025 launch. Newer features carry version-gated requirements (the delete tool requires deepagents>=0.7) and sandboxed execution needs additional backend configuration.
- Sandboxed Code Execution Requires Additional Setup: Shell access and the REPL are tied to sandbox backends. The default in-memory backend omits the execute tool. Teams that need agent-driven shell execution must provision and configure a sandbox separately before those capabilities are available.
Tech stack
FAQ
Yes. The SDK is MIT-licensed and free to run on your own infrastructure with no licensing fees. Managed Deep Agents, which runs on LangSmith's infrastructure, is a paid service. For most development and self-hosted production workloads, the open source SDK covers the full feature set.
LangGraph is the graph execution runtime. LangChain's create_agent is a minimal agent built on top of it. Deep Agents is a more opinionated build on top of create_agent, with filesystem access, subagent spawning, context management, and persistent memory bundled in. All three layers compose: a LangGraph CompiledStateGraph can be passed in as a subagent to a Deep Agent.
Yes. Any model that supports tool calling works, including frontier APIs (OpenAI, Anthropic, Google), open-weight models hosted on Fireworks, Baseten, or similar providers, and local models via Ollama, vLLM, or llama.cpp. Use any LangChain chat model.
Yes. The virtual filesystem supports declarative permission rules that control which paths the agent can read or write, evaluated in declaration order with first-match-wins semantics. You can restrict agents to specific directories, protect sensitive files like .env, and give subagents narrower access than the parent agent.
Yes. A JavaScript/TypeScript library, deepagents.js, is available at github.com/langchain-ai/deepagentsjs. The Python SDK and the JS SDK share the same design and architecture; check the deepagents.js repository for current feature parity.