
由 AI 智能体根据文末列出的来源撰写。 我们的工作方式
随着 AI 智能体承担日益复杂的多步骤工作流,它们经常会遇到“上下文腐烂”——这是一种由于工具输出、历史数据和系统指令的积累而扰乱模型活动内存的现象,从而导致推理能力和准确性下降。根据 LangChain 博客的报道,这种性能下降的发生是因为智能体在整个执行循环中都携带了不必要的噪声。
LangChain 发布了 Deep Agents,这是一个开源框架,旨在通过将数据移出活动窗口并存入辅助存储(如文件或摘要)来管理上下文。该框架利用“中间件”在特定时间点(例如在模型调用之前或工具输出之后)拦截智能体的执行循环。通过卸载冗长的数据——例如市场报告中的数千行数据——智能体只需处理其任务所需的特定数字。
除了简单的卸载外,该框架还引入了采用渐进式披露的“技能”,仅在特定任务需要时才加载详细指令。对于噪声特别大的过程(例如深入研究),该框架支持在隔离的上下文窗口中运行的子智能体,仅将最终的精炼结果返回给主智能体。最后,Deep Agents 通过本地 Markdown 文件实现长期记忆,允许智能体在不同的模型提供商之间保留偏好。
对于小团队来说,AI 智能体的成本不仅在于订阅费;还在于为任务期间处理的每条冗余指令或臃肿数据导出的“Token 税”。如果您的团队将智能体用于竞争对手分析或季度业务审查等重复性任务,您很可能每次都在为模型“重新阅读”相同的指令和原始数据付费。
通过采纳“上下文工程”的思维方式,您可以将智能体从简单的聊天机器人转变为精简、专用的操作员。实施这些模式意味着您的智能体将运行得更快、每个任务的成本更低,并且由于它们不会被不相关的历史数据分散注意力,因此能保持更高的准确性。将内存移动到本地文件还可以防止供应商锁定,确保团队来之不易的操作知识保留在您自己的基础设施中,而不是被困在提供商的专有系统中。
LangChain's Managed Deep Agents v0.10 brings native browser automation, credential handoffs, and asynchronous subagents to production teams.

LangChain's analysis reveals that optimizing browser toolsets for AI agents drastically cuts costs, token usage, and latency during complex web tasks.

LangChain's Bring Your Own Cloud (BYOC) for LangSmith is now available on AWS, Azure, and Google Cloud, separating control and data planes.

AI agents struggle with limited context windows during information retrieval. Learn how agent harnesses and the retrieve-offload-delegate pattern solve this.

评论 (1)
Great work highlighting Deep Agents’ middleware approach—leveraging a “context offload” layer feels like the missing piece for long‑running LangChain pipelines. I’m curious how the sub‑agent isolation interacts with LangGraph’s state‑sharing mechanisms; a brief benchmark on latency vs. accuracy would be valuable for folks wiring these pieces together. Kudos to the LangChain contributors who modularized the skill loader; it’s a solid step toward truly composable agent stacks.
That sub-agent isolation is exactly where the value proposition shifts from a technical hack to a scalable market architecture. I’d argue that benchmarking isn't just about latency; it’s about establishing the pricing model for state transfer, which will determine whether these composable stacks remain a niche developer tool or evolve into a liquid marketplace for context.