← 返回 Skills 市场
wangxiaofei860208-source

Lobster Autodream

作者 wangxiaofei860208-source · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
128
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install lobster-autodream
功能描述
AI记忆巩固系统,灵感来自人类睡眠记忆巩固过程。自动整理会话历史,提取重要信息,更新长期记忆。在心跳检查或会话压缩时触发。
使用说明 (SKILL.md)

AutoDream 记忆巩固系统

基于 Claude Code 源码中的 AutoDream 系统,适配 OpenClaw 的记忆管理架构。

灵感来自人类睡眠时的记忆巩固——大脑在睡眠中整理白天的记忆,把重要的存入长期记忆,不重要的被遗忘。

核心思想

AI 的"做梦"过程:定期整理对话历史 → 提取关键信息 → 更新长期记忆

三重门控机制

为了节省 token,按成本从低到高逐层检查:

门控1:时间检查(零成本)

  • 距离上次 AutoDream 是否超过阈值?
  • 默认:至少间隔 4 小时
  • 防止频繁整理浪费资源

门控2:内容量检查(低成本)

  • 新增的对话内容是否足够多?
  • 默认:至少 20 条新消息
  • 内容太少不值得整理

门控3:质量评估(中成本)

  • 内容中是否包含值得记住的信息?
  • 排除纯闲聊、重复内容
  • 识别:决策、偏好、教训、重要事实

三重门控全部通过才触发整理。

记忆整理流程

Step 1: 读取原始材料

读取当天的 memory/YYYY-MM-DD.md

Step 2: 信息提取

参考 Claude Code 的四种记忆类型分类:

类型 范围 示例 写到哪里
👤 user 始终private 用户角色、偏好、知识水平 MEMORY.md#关于麻团
💬 feedback 默认private 用户纠正/确认的做法 MEMORY.md#经验教训
📋 project 偏向team 项目状态、目标、进行中的工作 memory/YYYY-MM-DD.md
📖 reference private或team 技术参考、架构知识、API文档 memory/*.md

关键规则

  • 从代码/git/file可推导的信息不要存为记忆(读文件就行)
  • feedback要包含为什么(reason),不只是规则本身
  • 相对日期转为绝对日期("下周四"→"2026-04-09")
  • 确认类反馈也要记录(不只是纠正)

Step 3: 分类整合

  • 按主题分类
  • 去重(与 MEMORY.md 现有内容对比)
  • 标记优先级(重要/一般/可选)

Step 4: 写入长期记忆

更新 MEMORY.md,新内容追加到对应分类下。

Step 5: 清理

  • 过时的信息标记或删除
  • 临时笔记归档或清理

触发时机

  1. 心跳检查时 — 如果门控通过,执行整理
  2. 会话压缩时 — 压缩前先整理记忆
  3. 用户主动触发 — "整理记忆"、"autodream"

记忆质量标准

写入 MEMORY.md 的每条记忆应:

  • 简洁:一句话说清楚
  • 可检索:包含关键关键词
  • 有时效性标注:过期时间(如适用)
  • 有来源:来自哪次对话

实践示例

# 心跳触发 AutoDream

## 门控检查
- ✅ 距上次整理:6小时(> 4小时阈值)
- ✅ 新消息数:35条(> 20条阈值)
- ✅ 包含决策和偏好

## 提取结果
- 🎯 麻团决定不装 Ollama
- 👤 麻团是行动派,喜欢快速推进
- 📚 已安装 web-learner 和 cli-anything 两个 skill
- 🔑 配置了 imageModel: zai/glm-4.6v

## 写入 MEMORY.md
(追加到对应分类)

配置

在 HEARTBEAT.md 中添加:

## AutoDream
- 检查是否需要整理记忆
- 参照 skills/autodream/SKILL.md

注意事项

  • 不要在每次会话都触发,尊重时间门控
  • 整理时不要删除重要记忆
  • 隐私信息不写入 MEMORY.md
  • 保持 MEMORY.md 精简,不超过 200 行
  • 如果 MEMORY.md 太长,优先清理过时内容
安全使用建议
This skill will read your agent's memory files (e.g., memory/YYYY-MM-DD.md) and modify MEMORY.md to add, consolidate, or remove remembered items. That behavior is consistent with its stated purpose, but you should: (1) Confirm that MEMORY.md and the memory/ folder do not contain secrets or sensitive personal data you do not want persisted; (2) Back up existing MEMORY.md before enabling the skill, in case you want to review or restore changes; (3) Consider limiting automatic triggers (use user-invocable or increase the time/content thresholds) if you prefer manual control over what gets written; (4) Verify the agent's file system permissions so the skill cannot modify unrelated files. If you need stronger guarantees about privacy or provenance, request the skill author or maintainer (none listed) to provide provenance or run a copy with logging enabled to review exact edits before trusting it permanently.
功能分析
Type: OpenClaw Skill Name: lobster-autodream Version: 1.0.0 The lobster-autodream skill is a memory management utility designed to organize and consolidate session history into long-term memory files (e.g., MEMORY.md). The logic described in SKILL.md follows a transparent process involving time-based and content-based gating before extracting and categorizing information. There are no indicators of data exfiltration, malicious execution, or harmful instructions; the operations are confined to local memory file management.
能力评估
Purpose & Capability
Name/description (AI memory consolidation) match the actions described in SKILL.md: periodic checks, extracting important items from conversation history, classifying, and updating long-term memory files. No unrelated credentials, binaries, or external services are requested.
Instruction Scope
Instructions explicitly read local memory files (memory/YYYY-MM-DD.md) and update MEMORY.md; they describe gating rules and classification steps. These file read/write actions are coherent with a memory-management skill. The instructions do not ask to access unrelated system files, environment variables, or external endpoints.
Install Mechanism
There is no install specification and no code files — this is instruction-only, so nothing will be downloaded or written by an installer. Low surface area for supply-chain risk.
Credentials
The skill requires no environment variables, credentials, or config paths beyond reading/writing the project's memory files as described. The requested access is proportional to the stated purpose of updating local memory files.
Persistence & Privilege
Flags: always=false and model invocation is allowed (default). The skill does not request permanent/global presence or to modify other skills' configs. Its need to read/write MEMORY.md is appropriate for a memory tool but does require filesystem write permission in the agent workspace.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lobster-autodream
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lobster-autodream 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
AutoDream v1.0.0 introduces a memory consolidation system inspired by human sleep. - Automatically organizes conversation history, extracts key information, and updates long-term memory. - Uses a triple-gating mechanism to control when consolidation occurs (time, content volume, and information quality). - Integrates with OpenClaw's memory architecture and supports heartbeats, session compression, or manual triggers. - Categorizes extracted memories by theme and priority, with clear privacy distinctions. - Ensures MEMORY.md remains concise, relevant, and up-to-date by de-duplicating and cleaning outdated or temporary notes.
元数据
Slug lobster-autodream
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Lobster Autodream 是什么?

AI记忆巩固系统,灵感来自人类睡眠记忆巩固过程。自动整理会话历史,提取重要信息,更新长期记忆。在心跳检查或会话压缩时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 128 次。

如何安装 Lobster Autodream?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lobster-autodream」即可一键安装,无需额外配置。

Lobster Autodream 是免费的吗?

是的,Lobster Autodream 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Lobster Autodream 支持哪些平台?

Lobster Autodream 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lobster Autodream?

由 wangxiaofei860208-source(@wangxiaofei860208-source)开发并维护,当前版本 v1.0.0。

💬 留言讨论