@FakeMaidenMaker: LangChain 刚官方开源了一个开箱即用的 agent harness——Deep Agent 装好就能跑长任务、多步工作,不用 fork 也能轻松替换任何部件。 GitHub 23701 stars,LangChain 官方(lan…

X AI KOLs Timeline 工具

摘要

LangChain 官方开源了 Deep Agent,一个开箱即用的 agent harness,支持长任务、多步工作流,可插拔组件,模型无关,生产就绪。

LangChain 刚官方开源了一个开箱即用的 agent harness——Deep Agent 装好就能跑长任务、多步工作,不用 fork 也能轻松替换任何部件。 GitHub 23701 stars,LangChain 官方(langchain-ai)出品。 GitHub:https://github.com/langchain-ai/deepagents… 定位上有主见: 默认就调好了长任务多步工作流,内置全套——sub-agents 隔离上下文委托子任务 可插拔文件系统(本地/沙箱/远程后端随便换) 上下文管理(自动总结长线程、tool 输出 offload 到磁盘) shell 访问 跨 session 持久记忆 human-in-the-loop 审批工具调用,还能按需加载 Skills,接任意 MCP server 当工具。 模型完全自由,OpenAI / Anthropic / 本地开源模型,只要支持 tool calling 都行。 底层走 LangGraph,streaming / 持久化 / checkpoint 全有,配 LangSmith 上 tracing / 评测 / 部署,生产环境直接用。 README 明说灵感来自 Claude Code——想找出它通用的本质,并把这个思路推得更远。 部署极简:uv add deepagents,三行 create_deep_agent(model=..., tools=..., system_prompt=...) 就跑起来了。 真正的 agent,不是玩具 demo,是能接生产的基础设施。
查看原文
查看缓存全文

缓存时间: 2026/06/04 01:57

LangChain 刚官方开源了一个开箱即用的 agent harness——Deep Agent

装好就能跑长任务、多步工作,不用 fork 也能轻松替换任何部件。

GitHub 23701 stars,LangChain 官方(langchain-ai)出品。

GitHub:https://github.com/langchain-ai/deepagents…

定位上有主见: 默认就调好了长任务多步工作流,内置全套——sub-agents 隔离上下文委托子任务 可插拔文件系统(本地/沙箱/远程后端随便换) 上下文管理(自动总结长线程、tool 输出 offload 到磁盘) shell 访问 跨 session 持久记忆 human-in-the-loop 审批工具调用,还能按需加载 Skills,接任意 MCP server 当工具。

模型完全自由,OpenAI / Anthropic / 本地开源模型,只要支持 tool calling 都行。

底层走 LangGraph,streaming / 持久化 / checkpoint 全有,配 LangSmith 上 tracing / 评测 / 部署,生产环境直接用。

README 明说灵感来自 Claude Code——想找出它通用的本质,并把这个思路推得更远。

部署极简:uv add deepagents,三行 create_deep_agent(model=…, tools=…, system_prompt=…) 就跑起来了。

真正的 agent,不是玩具 demo,是能接生产的基础设施。


langchain-ai/deepagents

Source: https://github.com/langchain-ai/deepagents

Deep Agents Logo

The batteries-included agent harness.

PyPI - License PyPI - Downloads Version Twitter / X

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.

Quickstart

uv add deepagents
from deepagents import create_deep_agent

agent = create_deep_agent(
    model="openai:gpt-5.5",
    tools=[my_custom_tool],
    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.

For developing, debugging, and deploying AI agents and LLM applications, see LangSmith.

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.

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 LangGraph directly?

All three are layers in the same stack — see the LangChain ecosystem overview for how they relate. Use Deep Agents when you want the full harness — planning, context management, delegation — out of the box. Use LangChain’s create_agent when you want a lighter harness without the bundled middleware. Drop to LangGraph when the agent loop itself isn’t the right shape and you need a custom graph.

The layers compose: any LangGraph CompiledStateGraph can be passed in as a sub-agent to a Deep Agent, so custom orchestration plugs in alongside the harness’s defaults.


Resources


Acknowledgements

Inspired by Claude Code: an attempt to identify what makes it general-purpose, and push that further.

Security

Deep Agents follows a “trust the LLM” model. The agent can do anything its tools allow. Enforce boundaries at the tool/sandbox level, not by expecting the model to self-police. See the security policy for more information.

相似文章

@GitHub_Daily: 用 AI 处理长周期复杂任务,随着上下文越来越长,模型容易出现「忘事」,输出质量也直线下降。 LangChain 官方团队开源了一套教程:Deep Agents from Scratch,从零拆解主流 Agent 的核心设计模式,讲得很透…

X AI KOLs Timeline

LangChain 官方团队开源了教程 'Deep Agents from Scratch',从零拆解主流 Agent 的核心设计模式,涵盖任务规划、上下文卸载到文件系统以及子代理隔离等思路,共 5 个渐进式 Notebook,可上手搭建完整深度研究 Agent。

@LangChain: 关于Managed Deep Agents您需要了解的一切:

X AI KOLs Timeline

LangChain 宣布 Managed Deep Agents 进入私有测试版,这是一个托管的 API 优先运行时,用于构建、运行和生产中操作深度代理,利用开源 Deep Agents 工具集,并与 LangSmith 集成,实现持久执行、流式处理和人机协作工作流。

@Potatoloogs: https://x.com/Potatoloogs/status/2057391224592667051

X AI KOLs Timeline

本文深度拆解了Agent Harness的概念,即包裹在LLM外部的工程基础设施,包括编排循环、工具调用、记忆系统、上下文管理等12个组件。文章引用Anthropic、OpenAI、LangChain等公司的实践,论证了harness对生产级AI Agent的关键作用。