31,169
stars
+157
4,399
forks
–
watchers
–
prs
–
issues
–
releases
–
discussions
README
The batteries-included agent harness.
Deep Agents is an open source agent harness — an opinionated agent that runs out of the box. Extend, override, or replace any piece.
Principles:
- Opinionated — defaults tuned for long-horizon, multi-step work
- Extensible — override or replace any piece without forking
- Model-agnostic — works with any LLM that supports tool calling: frontier, open-weight, or local
- Production-ready — built on LangGraph (streaming, persistence, checkpointing) with first-class tracing, evaluation, and deployment via LangSmith
Features include:
- Sub-agents — delegate tasks to agents with isolated context windows
- Filesystem — read, write, edit, or search over pluggable local, sandboxed, or remote backends
- Context management — summarize long threads and offload tool outputs to disk
- Shell access — run commands in your sandbox of choice
- Persistent memory — pluggable state and store backends for cross-session recall
- Human-in-the-loop — approve, edit, or reject tool calls before they run
- Skills — reusable behaviors the agent can load on demand
- Tools — bring your own functions or any MCP server
Deep Agents is available as a JavaScript/TypeScript library — see deepagents.js.
[!NOTE]
Deep Agents Code — a pre-built coding agent in your terminal, similar to Claude Code or Cursor, powered by any LLM. Install with curl -LsSf https://langch.in/dcode | bash. See the documentation for the full feature set.
Quickstart
bash
uv add deepagents
python
from deepagents import create_deep_agent
agent = create_deep_agent(
model="openai:gpt-6-astra",
system_prompt="You are a research assistant.",
)
result = agent.invoke({"messages": "Research LangGraph and write a summary"})
The agent can plan, read/write files, and manage its own context. Add your own tools, swap models, customize prompts, configure sub-agents, and more. See the documentation for full details.
[!TIP]
For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.
FAQ
How is this different from LangGraph or LangChain?
LangGraph is the graph runtime. LangChain's create_agent is a minimal agent harness on top of it. Deep Agents is a more opinionated harness on top of create_agent — same building blocks, but with filesystem, sub-agents, context management, and skills bundled in. For how the three relate, see the LangChain ecosystem overview.
Does this work with open-weight or local models?
Yes. Any model that supports tool calling works — frontier APIs (OpenAI, Anthropic, Google), open-weight models hosted on providers like Baseten or Fireworks, and self-hosted models via Ollama, vLLM, or llama.cpp. Use any LangChain chat model.
Can I use this in production?
Yes! Deep Agents is built on LangGraph, designed for production agent deployments. Pair it with LangSmith for tracing, evaluation, and monitoring. See Going to production for the full guide.
When should I use Deep Agents vs. LangChain or相关报道 (9)
bilibili02-基于GitHub深度解读:DeepAgents框架全梳理2026-07-2351CTO炸裂!基于DeepAgents + Langgraph 代码检视code Review 超智能体,提升 Review 效能十倍 ,太牛了2026-05-28blog.csdnDeepagents透明度管理:如何通过LangSmith实现AI代理的全面监控与调试2026-03-17blog.csdnDeepagents用户界面开发:构建交互式AI代理体验2026-03-16腾讯网Pydantic-DeepAgents:基于 Pydantic-AI 的轻量级生产级 Agent 框架2025-12-23bilibili用 deepagents 打造深度研究应用(Python 版)2025-08-20腾讯新闻LangChain 发布 Deep Agents:自主智能体框架2026-02-0851CTOLangChain发布DeepAgents沙箱功能:安全执行代码的新突破2025-11-1751CTOLangChain重磅推出DeepAgents CLI:支持持久化记忆的AI编程助手2025-11-04
News & coverage (7)
Hacker NewsDeepagents▲ 3 · 1 comments · 2026-07-03Hacker NewsLangChain-AI/deepagents: agent harness▲ 1 · 0 comments · 2026-08-27Geeky GadgetsMeet Deepagents : The AI That Builds Its Own Problem-Solving Team2025-08-20HackerNoonBeyond LLMs: Creating Real-World AI Agents with Lang Chain Deep Agents2026-08-20Amazon Web Services (AWS)Build context-rich research agents with Deep Agents and Bedrock AgentCore2026-06-15MarkTechPostLangChain Releases Deep Agents: A Structured Runtime for Planning, Memory, and Context Isolation in Multi-Step AI Agents2026-03-15Towards Data ScienceLessons Learned from Upgrading to LangChain 1.0 in Production2025-12-15