← 返回 Skills 市场
6
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install session-memory-sync
功能描述
Cross-session memory sync protocol. Ensures memory consistency across Feishu, webchat, and any other channels.
使用说明 (SKILL.md)
Session Sync — 跨 Session 记忆同步
问题
每个 session(飞书、webchat、新建 session)的对话上下文是独立的。 如果不主动同步,切换通道后会"失忆"。
解决方案
共享文件是唯一的跨 session 记忆桥梁。
📥 Session 启动时(必做)
- 读取
memory/YYYY-MM-DD.md(今天和昨天的) - 读取
MEMORY.md获取长期记忆 - 读取
memory/SESSION-STATE.md获取最新任务状态 - 检查是否有其他活跃 session:
sessions_list(activeMinutes=120, messageLimit=3)
如果有其他 session 有近期活动,读取其历史了解上下文:
sessions_history(sessionKey="\x3Ckey>", limit=10)
📤 Session 运行中(必做)
每当你做了以下事情,立即写入 memory 文件:
- 开始了一个新任务
- 做了一个重要决定
- 获得了新信息
- 完成了一个任务
- 切换话题
写入位置:
memory/YYYY-MM-DD.md— 当天日志(原始记录)memory/SESSION-STATE.md— 当前活跃任务状态(覆盖更新)
📤 Session 结束前 / 对话间隙(必做)
更新 memory/SESSION-STATE.md:
# Session State
## 最后更新
- 时间:YYYY-MM-DD HH:MM
- 通道:feishu / webchat
- session key:xxx
## 当前进行中的任务
- [任务名]:简述状态、下一步
## 最近重要决定
- [决定]:理由
## 待跟进
- [事项]:什么时候跟进
🔄 定期整理(建议每天一次)
把 memory/YYYY-MM-DD.md 中值得长期保留的内容提炼到 MEMORY.md。
⚠️ 关键规则
- 不要假设另一个 session 知道你在做什么 — 写下来
- 不要假设你自己记得之前聊了什么 — 读文件
- SESSION-STATE.md 是"热状态" — 随时覆盖更新
- MEMORY.md 是"长期记忆" — 定期整理,不要频繁改
- memory/YYYY-MM-DD.md 是"日志" — 只追加,不删除
🧹 日志清理(自动执行)
规则:超过 7 天的 memory/YYYY-MM-DD.md 自动归档到 memory/archive/
触发时机:
- 每次 session 启动时检查一次
- 执行清理脚本:
skills/session-sync/scripts/cleanup-memory.sh
操作:
bash skills/session-sync/scripts/cleanup-memory.sh
归档前确保有价值的内容已提炼到 MEMORY.md。
快速命令(给老板用)
- "同步记忆" → 执行完整的跨 session 同步检查
- "更新状态" → 更新 SESSION-STATE.md
- "整理记忆" → 把日志整理到 MEMORY.md
- "清理日志" → 执行 7 天归档脚本
安全使用建议
Install only if you intentionally want the agent to share memory across sessions and channels. Avoid it for sensitive work unless you are comfortable with conversation details, task state, decisions, channel names, and session identifiers being written to shared persistent files and reused in later sessions. Review or restrict the memory directory and prefer explicit user confirmation before syncing, consolidating, or archiving logs.
能力评估
Purpose & Capability
The stated purpose is cross-session memory sync, and the artifacts match that purpose, but the capability is high-impact: it directs agents to read shared memory files and recent history from other active sessions across Feishu, webchat, and other channels.
Instruction Scope
Runtime instructions are mandatory and broad: on startup the agent must import shared memory and other session history, and during use it must persist new information, decisions, task starts/completions, and topic changes. The scope is not limited by user, channel, sensitivity, or explicit confirmation.
Install Mechanism
The package contains a markdown skill and one simple shell cleanup script. No dependency installs, obfuscation, network fetches, or hidden install-time behavior were found.
Credentials
The environment access is partly purpose-aligned, but reading other sessions and shared memory across channels is more sensitive than ordinary workflow continuity and lacks documented access boundaries or redaction controls.
Persistence & Privilege
The skill creates and updates persistent logs, a long-term MEMORY.md file, and SESSION-STATE.md with channel and session key metadata. It also automatically moves dated memory logs older than seven days into an archive directory.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install session-memory-sync - 安装完成后,直接呼叫该 Skill 的名称或使用
/session-memory-sync触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of session-sync.
- Implements a protocol to synchronize memory and session state across Feishu, webchat, and other channels.
- Ensures recent context, active tasks, and decisions are consistently read from and written to shared memory files.
- Introduces automated daily archiving of logs older than 7 days.
- Adds convenient quick commands for memory sync, state updates, consolidation, and log cleanup.
元数据
常见问题
Session Sync 是什么?
Cross-session memory sync protocol. Ensures memory consistency across Feishu, webchat, and any other channels. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 6 次。
如何安装 Session Sync?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install session-memory-sync」即可一键安装,无需额外配置。
Session Sync 是免费的吗?
是的,Session Sync 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Session Sync 支持哪些平台?
Session Sync 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Session Sync?
由 sdT328606(@sdt328606)开发并维护,当前版本 v1.0.0。
推荐 Skills