Auto-sync: 2026-04-27 12:02
This commit is contained in:
50
wiki/concepts/SharedMemory.md
Normal file
50
wiki/concepts/SharedMemory.md
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
title: "SharedMemory"
|
||||
type: concept
|
||||
tags: [multi-agent, memory, coordination]
|
||||
sources: [multi-agent-team, workflow-with-memory, content-factory, multi-channel-assistant]
|
||||
last_updated: 2026-04-27
|
||||
---
|
||||
|
||||
## Definition
|
||||
|
||||
共享记忆——多 Agent 系统中所有 Agent 可访问的公共知识库,用于存储项目文档、目标、关键决策和上下文信息。消除知识孤岛,确保 Agent 间协调的一致性。
|
||||
|
||||
## Aliases
|
||||
- Team Memory
|
||||
- Common Ground
|
||||
- Shared Context
|
||||
- Shared Knowledge Base
|
||||
|
||||
## Core Components
|
||||
|
||||
典型的共享记忆结构:
|
||||
```
|
||||
team/
|
||||
├── GOALS.md # 当前 OKR 和优先级(所有 Agent 读取)
|
||||
├── DECISIONS.md # 关键决策日志(只追加)
|
||||
├── PROJECT_STATUS.md # 当前项目状态(所有 Agent 更新)
|
||||
├── agents/
|
||||
│ ├── agent-a/ # Agent A 的私有上下文和笔记
|
||||
│ └── agent-b/ # Agent B 的私有上下文
|
||||
```
|
||||
|
||||
## Key Characteristics
|
||||
|
||||
- **全局可读**:所有 Agent 均可访问共享记忆,无权限壁垒
|
||||
- **结构化组织**:按用途分类(目标/决策/状态),避免信息混乱
|
||||
- **Append-only 决策日志**:DECISIONS.md 只追加,保留完整决策历史
|
||||
- **状态同步**:PROJECT_STATUS.md 由所有 Agent 共同维护,实时反映项目状态
|
||||
|
||||
## Related Patterns
|
||||
|
||||
- [[PrivateContext]]:与共享记忆互补——每个 Agent 维护自己的私有上下文,积累领域专长
|
||||
- [[SymbolicLink]]:在 OpenClaw 中通过符号链接使隐藏目录对外部工具可见
|
||||
- [[MemoryServer]]:记忆服务器作为多 Agent 协作的粘合剂(MCP Memory Server)
|
||||
|
||||
## Usage Contexts
|
||||
|
||||
- **[[multi-agent-team]]**:Milo/Josh/Marketing/Dev Agent 通过 GOALS.md、DECISIONS.md、PROJECT_STATUS.md 实现团队协调
|
||||
- **[[workflow-with-memory]]**:Memory Server 作为粘合剂,`remember` 存储交付物、`recall` 召回上下文、`rollback` 回滚检查点
|
||||
- **[[ContentFactory]]**:Discord 频道作为共享记忆,Research Agent 输出 → Writing Agent 读取
|
||||
- **[[multi-channel-assistant]]**:Google Workspace 共享日历/邮件作为跨渠道记忆
|
||||
Reference in New Issue
Block a user