LangChain 发文教你构建领域专用 Agent Harness:harness 决定 agent 上限
LangChain 工程师 Sydney Runkle 发文讲解如何构建领域专用 agent harness,LangChain 创始人 Harrison Chase 转发推荐,并呼应 Garry Tan 的说法:「要么成为 record system,要么活成 domain-specific harness」。 核心观点: Agent = 模型 + harness;harness 是连接模型与真实世界的脚手架,agent 的好坏取决于 harness 能否在每一步把正确的上下文喂给模型。 create_agent 是 LangChain 构建 harness 的基础原语:传入模型、工具和 system prompt 即得可用 agent,可按需叠加自定义 prompt、业务逻辑与护栏。 Deep Agents 和 Claude Agent SDK 是预组装的「意见化」harness,内置内存、上下文管理、沙箱等 middleware 栈,适合快速上生产;但很多 agent 需要更细粒度的定制,这正是自建 harness 的价值所在。








