完整整理了Anthropic的Agent Infra 技术阅读路线:从 Always-on Agent 到生产级 Runtime
最近在改 LofiBot 和 Bridge Anything,重新梳理了一遍 Anthropic 的 Engineering Blog、Research 和 Claude Cookbook。
把相关资料整理成了一份阅读路线,主要围绕Durable Execution:任务中断后如何恢复?Context & Memory:如何跨 Session 保持信息连续性?Distributed Multi-Agent:多个 Agent 如何跨进程、跨机器协作?
Tool & Capability Infrastructure:如何动态、安全地使用外部能力?Evaluation & Observability:如何验证 Agent 的执行过程确实可靠?
1/ Agent Runtime:让 Agent 长期运行
首先推荐看这几篇:
Building Always-On Agents
https://t.co/OOHecuuCL8
Effective harnesses for long-running agents
https://t.co/MaGBNkVWXv
Harness design for long-running application development
https://t.co/hZwYGylDHg
Scaling Managed Agents
https://t.co/mEPeoqqHMR
这几篇放在一起看,基本能理解一个长期运行的 Agent Runtime 需要哪些东西:Event Inbox、Scheduler、Memory、Checkpoint、Session、Harness 和 Sandbox。
尤其是 Always-on Agent。它并不是让 Agent 进程一直运行,而是通过事件触发、状态持久化和任务恢复,让 Agent 能够在多次 Run 之间持续完成工作。
2/ Context Engineering:解决上下文膨胀
推荐:
Effective context engineering for AI agents
https://t.co/urSHNKe73V
Context engineering: memory, compaction, and tool clearing
https://t.co/ra1eeBu0zH
Code execution with MCP
https://t.co/A6kLdnHb7c
这里有几个容易混淆的概念:
Compaction 负责压缩当前上下文,Tool-result Clearing 负责清理不再需要的工具结果,Memory 负责跨 Session 保存信息。
它们解决的是不同问题,不能简单用一个 Memory Store 全部替代。
随着 MCP Tool 数量增加,如何动态发现工具、减少工具定义占用的 Token,也是成为 Context Engineering 的一部分。
3/ Agent Memory:不只是向量数据库
推荐:
The components of agent memory
https://t.co/y3IkcNl2iw
Introducing Contextual Retrieval
https://t.co/HsUETgzopO
长期记忆真正麻烦的地方,是信息如何形成、合并、纠错和更新。
Memory Formation、Consolidation、Correction 和 Dreaming 都值得放在一起理解。
另一个值得关注的方向是 Contextual Retrieval。它通过为 Chunk 补充上下文,再结合 Embedding、BM25 和 Reranking,提高长文档检索效果。
4/ Multi-Agent:从任务分解到协作
推荐:
How we built our multi-agent research system
https://t.co/okb06yfJe8
Building effective agents
https://t.co/uoSnhkLFNy
Building a C compiler with a team of parallel Claudes
https://t.co/y3IkcNl2iw
Anthropic 的 Multi-Agent Research System 采用 Orchestrator-Workers 架构,由主 Agent 拆解任务,子 Agent 并行执行,最后汇总结果。
这里需要注意,并行不等于效率一定更高。
任务拆分、上下文隔离、Agent 间通信、结果聚合和错误处理,都会带来额外成本。
5/ Tool Engineering、MCP 和 Skills
推荐:
Writing effective tools for agents
https://t.co/y3IkcNl2iw
Equipping agents for the real world with Agent Skills
https://t.co/y3IkcNl2iw
Code execution with MCP
https://t.co/A6kLdnHb7c
Tool 和 Skill 是两种不同的抽象。
Tool 提供具体执行能力,Skill 则封装完成某类任务所需的流程、知识和资源。
随着工具生态扩大,Tool Registry、Dynamic Discovery、Progressive Disclosure 和 Programmatic Tool Calling 都会变得重要。
6/ Evaluation 和 Security:生产环境绕不开的问题
推荐:
Demystifying evals for AI agents
https://t.co/y3IkcNl2iw
Building strong safety evaluations
https://t.co/y3IkcNl2iw
Beyond permission prompts
https://t.co/y3IkcNl2iw
Agent Eval 不能只看最终答案是否正确,还需要检查执行轨迹、工具选择、任务状态变化,以及中断后能否恢复。
Security 也不能只靠 Prompt 里的几条规则,需要落实到 Permission、Sandbox、Trust Boundary 和 Policy Enforcement。
还有一个容易混淆的地方:Anthropic 的 Multi-Agent Research System 展示的是多 Agent 的任务分工与协作经验,并不是通用 A2A 通信协议。真正要做分布式 Agent,还需要解决消息协议、Mailbox、身份认证、状态同步和可靠投递。
整理这份清单,把这些问题串起来系统学习。