Files
nexus/wiki/concepts/SharedMemory.md
2026-04-27 12:03:03 +08:00

2.1 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
SharedMemory concept
multi-agent
memory
coordination
multi-agent-team
workflow-with-memory
content-factory
multi-channel-assistant
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 共同维护,实时反映项目状态
  • PrivateContext:与共享记忆互补——每个 Agent 维护自己的私有上下文,积累领域专长
  • SymbolicLink:在 OpenClaw 中通过符号链接使隐藏目录对外部工具可见
  • MemoryServer:记忆服务器作为多 Agent 协作的粘合剂MCP Memory Server

Usage Contexts

  • multi-agent-teamMilo/Josh/Marketing/Dev Agent 通过 GOALS.md、DECISIONS.md、PROJECT_STATUS.md 实现团队协调
  • workflow-with-memoryMemory Server 作为粘合剂,remember 存储交付物、recall 召回上下文、rollback 回滚检查点
  • ContentFactoryDiscord 频道作为共享记忆Research Agent 输出 → Writing Agent 读取
  • multi-channel-assistantGoogle Workspace 共享日历/邮件作为跨渠道记忆