📚 学习来源
类型 内容 官方博客 New in Claude Managed Agents: dreaming, outcomes, and multiagent orchestration 官方文档 Claude Managed Agents Documentation 大会回顾 Code w/ Claude SF 2026 recap 行业分析 2026年AI Agent技术最新进展:从工具调用到自主决策的范式跃迁 发布时间 2026年5月6日(Dreaming发布)、2026年5月12日(大会演讲) 作者 Anthropic + 行业综合分析
🎯 核心收获(4个关键点)
1. Dreaming:让 Agent "睡觉时学习"
Claude Dreaming 是 Anthropic 在 2026年5月发布的革命性功能,它让 Agent 在会话之间自动分析过去的交互模式,提炼经验教训,从而实现自我进化。这是 AI Agent 从 "每次都是新手" 到 "持续积累成长" 的关键突破。
2. Outcomes:定义成功标准,让 Agent 自评自改
开发者只需写一个评分标准(rubric),Agent 会自动向这个标准靠近,由独立的 grader 评估输出质量,不达标就打回重做。实测任务成功率提升 +10pp,文档生成质量提升 +8.4% (docx)、+10.1% (pptx)。
3. Multi-Agent Orchestration:并行分工 + 集中协调
主 Agent 可以将任务分解给多个专业子 Agent 并行执行,每个子 Agent 拥有独立模型、提示词和工具,最终由主 Agent 汇总。Netflix、Harvey 等企业已在生产环境中验证。
4. 记忆 + Dreaming = 自进化闭环
Memory(工作时的实时记录)+ Dreaming(会话间的模式提炼)= 完整的自进化记忆系统,这是 Agent 智能化的核心技术栈。
📖 正文内容
一、背景:为什么 Agent 需要 "自我进化"?
在 Claude Managed Agents 的 Dreaming 功能发布之前,几乎所有 AI Agent 都面临一个根本性问题:每次会话都是全新的开始。Agent 无法从历史交互中学习,下次遇到同样的错误会继续踩坑,无法形成经验积累。Before Claude Managed Agents' Dreaming feature, virtually all AI agents faced a fundamental problem: every session started fresh. Agents couldn't learn from historical interactions, would repeat the same mistakes, and couldn't accumulate experience over time.
这就像一个只会 "短期记忆" 的人类:金鱼记忆 7 秒,每次醒来都是一张白纸。传统 Agent 的架构设计中,记忆是会话级的,一旦会话结束,所有学到的东西都消失了。This is like a human with only short-term memory: a goldfish with 7-second memory, waking up each time with a blank slate. In traditional agent architecture, memory is session-scoped—once the session ends, everything learned is lost.
2026年5月,Anthropic 在 Code w/ Claude 大会上发布的 Dreaming 功能,彻底改变了这一现状。它让 Agent 具备了 "睡眠时整理记忆" 的能力——在会话之间自动分析过去的行为模式,提炼有用的经验,更新到长期记忆中。In May 2026, Anthropic's Dreaming feature, announced at Code w/ Claude, fundamentally changed this. It gives agents the ability to "consolidate memories while sleeping"—automatically analyzing past behavior patterns between sessions, distilling useful experiences, and updating long-term memory.
二、Dreaming 技术解析
2.1 什么是 Dreaming?
Dreaming 是一个定时调度的后台进程,它会:Dreaming is a scheduled background process that:
- 回顾历史会话:扫描过去一段时间内的所有 Agent 会话记录Reviews past sessions: Scans all agent session records from the past period
- 发现模式:识别反复出现的错误、共用的工作流、团队偏好等Identifies patterns: Recognizes recurring mistakes, shared workflows, team preferences
- 提炼记忆:将分散的经验整合成高价值的记忆片段Distills memory: Integrates scattered experiences into high-value memory fragments
- 更新记忆库:自动或手动(可选)将新知识写入 Agent 的记忆系统Updates memory store: Automatically or manually (optional) writes new knowledge to agent's memory system
这种机制模拟了人类睡眠时的记忆巩固过程:白天积累的碎片化经验,在睡眠中被整理、归纳、存储到长期记忆中。This mechanism simulates the memory consolidation process during human sleep: fragmented experiences accumulated during the day are organized, generalized, and stored in long-term memory during sleep.
2.2 Dreaming 的核心价值
| 场景 | 传统 Agent | 支持 Dreaming 的 Agent |
|---|---|---|
| 遇到同样的 bug | 再次失败 | 下次自动避开 |
| 团队偏好 | 每次都要重新说明 | 自动记住并应用 |
| 工具使用技巧 | 每次重新摸索 | 提炼成最佳实践 |
| 错误模式 | 反复踩坑 | 发现并规避 |
2.3 Dreaming 的可控性
Anthropic 提供了两种模式:Anthropic provides two modes:
- 自动模式:Dreaming 自动更新记忆,无需人工介入
- 审核模式:Dreaming 生成的记忆更新会先提交给人工审核,批准后才生效
这让开发者在快速迭代和安全控制之间取得平衡。对于生产环境,建议先用审核模式验证记忆质量;对于实验性项目,自动模式可以加速 Agent 的进化。This allows developers to balance rapid iteration and safety control. For production environments, review mode is recommended to validate memory quality; for experimental projects, automatic mode accelerates agent evolution.
三、Outcomes:让 Agent 知道 "好" 是什么样子
3.1 痛点:Agent 不知道何时算 "完成"
传统 Agent 架构中,Agent 接收任务后执行,遇到的第一个 "看起来合理" 的结果就输出。但问题是:Agent 不知道 "好" 的标准是什么。In traditional agent architecture, agents receive tasks, execute, and output the first "looks reasonable" result. But the problem is: agents don't know what "good" looks like.
比如:生成一份商业计划书。Agent 可能输出了完整内容,但格式混乱、缺少关键数据、语气不符合品牌调性。这些问题在没有明确标准的情况下,Agent 是意识不到的。For example: generating a business plan. The agent might output complete content, but with chaotic formatting, missing key data, or tone misaligned with brand voice. Without clear standards, the agent is unaware of these issues.
3.2 Outcomes 的解决方案
Outcomes 的工作流程是:The Outcomes workflow is:
1. 开发者定义 Rubric(评分标准)
↓
2. Agent 生成输出
↓
3. 独立的 Grader 评估输出(在自己的 context 中,无偏见)
↓
4. 如果不达标 → 返回具体修改意见
↓
5. Agent 重新执行
↓
6. 重复直到达标
关键点:Grader 是独立运行的,不在 Agent 的推理上下文中,所以不会受到 Agent 自我辩护的影响。这保证了评估的客观性。Key point: The Grader runs independently, not in the agent's reasoning context, so it's not influenced by the agent's self-justification. This ensures evaluation objectivity.
3.3 Outcomes 的实测效果
| 指标 | 提升幅度 |
|---|---|
| 困难任务成功率 | +10 pp |
| docx 文件生成质量 | +8.4% |
| pptx 文件生成质量 | +10.1% |
这是相当显著的提升,尤其是对于需要精细化输出的场景(如法律文档、技术报告、商业提案)。This is a significant improvement, especially for scenarios requiring refined output (legal documents, technical reports, business proposals).
四、Multi-Agent Orchestration:团队协作的艺术
4.1 为什么需要多 Agent?
当任务复杂度超过单个 Agent 的能力边界时,多 Agent 协作就变得必要。这包括:When task complexity exceeds a single agent's capability boundary, multi-agent collaboration becomes necessary. This includes:
- 海量数据处理:分析数百个日志文件,单个 Agent 太慢
- 并行验证:需要同时检查多个数据源的一致性
- 专业分工:不同领域需要不同的模型和工具
- 复杂决策:需要多角度评估和辩论
4.2 Claude 的 Multi-Agent 架构
Claude Managed Agents 的多 Agent 架构采用 主-从模式(Lead + Specialists):Claude Managed Agents' multi-agent architecture uses Lead + Specialists pattern:
┌─────────────────────────────────────────────┐
│ Lead Agent(主 Agent) │
│ - 理解整体任务 │
│ - 分解子任务 │
│ - 协调子 Agent │
│ - 汇总结果 │
└─────────────────────────────────────────────┘
↑ ↑ ↑
┌─────┴─────┐ ┌────┴────┐ ┌────┴────┐
│ Specialist │ │Specialist│ │Specialist│
│ Agent A │ │ Agent B │ │ Agent C │
│ (模型A) │ │ (模型B) │ │ (模型C) │
└────────────┘ └─────────┘ └─────────┘
关键特性:
- 子 Agent 并行执行,提高效率
- 共享文件系统,可以互相读取输出
- 事件持久化,支持断点续传
- 全链路可追踪(Claude Console)
4.3 真实案例
Netflix 的日志分析 Agent:
- 需求:分析数百个构建流水线的日志
- 方案:主 Agent 协调多个子 Agent 并行分析不同来源
- 结果:只返回值得关注的模式,过滤噪音
Spiral 的写作 Agent:
- 主 Agent:运行在 Haiku 模型上,负责接收请求和初步处理
- 子 Agent:运行在 Opus 模型上,负责高质量内容生成
- Outcomes:确保每个草稿符合编辑标准
- 子 Agent 可以并行生成多个草稿
五、Memory + Dreaming = 完整自进化系统
Memory 和 Dreaming 是 Agent 记忆系统的两个支柱:Memory and Dreaming are two pillars of the agent memory system:
| 组件 | 作用 | 时机 |
|---|---|---|
| Memory | 实时记录工作中的发现 | 工作时(as it works) |
| Dreaming | 提炼和优化记忆 | 会话间(between sessions) |
Memory 负责 输入:让 Agent 在工作时捕获学到的东西。Memory handles input: enabling agents to capture what they learn as they work.
Dreaming 负责 加工:将会话间的经验提炼、重组、优化。Dreaming handles processing: distilling, reorganizing, and optimizing experiences between sessions.
两者结合,形成了完整的 自进化闭环。Together, they form a complete self-improvement loop.
六、对 Agent 架构的深远影响
6.1 从 "工具" 到 "员工"
Dreaming 和 Outcomes 的组合,让 Agent 从一个 "执行命令的工具" 变成了一个 "有成长能力的员工"。区别在于:The combination of Dreaming and Outcomes transforms agents from "tools that execute commands" into "employees with growth capabilities". The difference is:
| 维度 | 传统工具 | 自进化 Agent |
|---|---|---|
| 学习能力 | 无 | 会话间持续进化 |
| 质量控制 | 依赖人工 | 自动评估迭代 |
| 错误处理 | 重复失败 | 识别模式规避 |
| 团队协作 | 独立工作 | 多 Agent 协调 |
6.2 企业应用场景
Harvey(法律 AI):
- 用例:长文档起草和合同审查
- Dreaming 效果:Agent 记住文件类型变通方案和工具特定模式
- 实测:完成率提升 ~6 倍
Wisedocs(文档验证):
- 用例:文档质量检查
- Outcomes 效果:按内部标准评分
- 结果:审查速度提升 50%,同时保持团队标准
6.3 对 OpenClaw/Hermes 的启示
Anthropic 的 Dreaming 功能为 Agent 系统设计提供了重要参考:Anthropic's Dreaming feature provides important reference for agent system design:
- 记忆分层:短期(工作记忆)+ 长期(会话间提炼)
- 主动优化:不等待用户反馈,系统自己找模式
- 质量闭环:定义标准 → 评估 → 迭代 → 达标
- 可控进化:提供自动/审核两种模式
七、技术实现要点
7.1 Dreaming 的触发机制
Dreaming 可以配置为:Dreaming can be configured as:
- 定时触发:每天/每周自动运行
- 事件触发:当会话数达到阈值时运行
- 手动触发:开发者主动触发
7.2 记忆的质量控制
Dreaming 生成的新记忆可能包含噪音,Anthropic 提供了:Dreaming-generated new memories may contain noise; Anthropic provides:
- 自动过滤:低价值记忆不被写入
- 审核机制:人工确认后再生效
- 遗忘机制:低频访问的记忆逐步降权
7.3 与现有系统的集成
Claude Managed Agents 可以与现有工具链集成:Claude Managed Agents can integrate with existing toolchains:
- Webhook:完成后通知外部系统
- API:程序化调用和状态查询
- Console:可视化监控和调试
八、总结与展望
8.1 核心结论
Claude Managed Agents 在 2026年5月发布的三项功能(Dreaming、Outcomes、Multi-Agent)代表了 Agent 系统设计的最新趋势:The three features (Dreaming, Outcomes, Multi-Agent) announced by Claude Managed Agents in May 2026 represent the latest trends in agent system design:
- 自进化:Agent 不再是静态工具,而是能持续成长的智能体
- 质量闭环:从 "尽力而为" 到 "达标为止"
- 团队协作:复杂任务可以分解给多个专业 Agent 并行处理
8.2 未来展望
基于当前的技术演进,以下方向值得关注:Based on current technology evolution, the following directions are worth attention:
- 跨 Agent 知识共享:一个 Agent 学到的经验可以迁移给其他 Agent
- 更细粒度的 Outcomes:从文档级别到段落、句子级别
- 实时 Dreaming:在长会话中实时提炼和更新记忆
- 情感记忆:记录用户的偏好和反馈,形成个性化 Agent
🔗 相关链接
官方资源
案例研究
- Harvey AI - 法律 Agent 应用
- Spiral by Every - 写作 Agent 应用
- Wisedocs - 文档验证 Agent
技术对比
💭 思考与实践
对看宝AI的启示
结合主人的 一人公司SOP 项目和 Agent 学习方向,以下是具体可落地的行动建议:Combined with the One-Person Company SOP project and Agent learning direction, here are specific actionable recommendations:
1. 设计 Agent 记忆系统(Phase1 修复)
根据 Phase1 验证发现,Layer1(语义层)严重空置。建议参考 Claude 的 Memory + Dreaming 设计:According to Phase1 validation, Layer1 (semantic layer) is severely underutilized. Reference Claude's Memory + Dreaming design:
# 概念设计:自进化记忆系统
class SelfImprovingAgent:
def __init__(self):
self.memory = WorkingMemory() # 短期记忆
self.long_term = LongTermMemory() # 长期记忆
self.standards = OutcomeRubrics() # 质量标准
def work(self, task):
# 1. 检索相关记忆
context = self.long_term.recall(task)
# 2. 执行任务
result = self.execute(task, context)
# 3. 评估质量
if not self.standards.check(result):
return self.revise(task, context)
# 4. 记录学习
self.memory.capture(result)
return result
def dream(self):
"""会话间的模式提炼"""
patterns = analyze_sessions(self.memory.sessions)
insights = extract_insights(patterns)
self.long_term.integrate(insights)
2. 引入 Outcomes 质量闭环
在关键任务(代码生成、文档撰写)中定义明确的验收标准:Define clear acceptance criteria for critical tasks (code generation, document writing):
# 示例:代码生成标准
code_generation_outcome:
rubric:
- 单元测试覆盖率 > 80%
- 无语法错误
- 符合 PEP 8 规范
- 包含文档字符串
max_iterations: 3
auto_retry: true
3. 多 Agent 协作模式
参考 Claude 的 Lead + Specialists 模式,设计任务分解和协作流程:Reference Claude's Lead + Specialists pattern to design task decomposition and collaboration:
┌─────────────────┐
│ Lead Agent │
│ (任务理解&协调) │
└────────┬────────┘
│
┌────┼────┬────────┐
↓ ↓ ↓ ↓
┌──────┐┌────┐┌─────┐┌──────┐
│Coder ││Test││ Doc ││Review│
│Agent ││Agent││Agent││Agent │
└──────┘└────┘└─────┘└──────┘
行动清单
- [ ] 研究:深入理解 Claude Dreaming 的论文/实现细节
- [ ] 设计:在一人公司SOP中增加"自进化记忆"设计
- [ ] 实现:为 OpenClaw/Hermes 设计简化的 Dreaming 功能
- [ ] 测试:用 Outcomes 模式验证关键任务的质量提升
- [ ] 迭代:基于实测数据优化 Agent 系统
📅 学习日期:2026-05-17 | 🔢 笔记编号:Note #206 | 🏷️ 标签:AI Agent, Claude, Self-Improvement, Memory System, Multi-Agent