Skip to content

Commit 3680120

Browse files
authored
docs: 补全 autoDream 溯源与致谢(Claude Code Auto Dream / Sleep-time Compute / cc-haha) (#158)
内层 README:导语溯源句精确化 + autoDream 小节加溯源引言 + 文末新增「🙏 致谢」;根 README:License 前新增中英双语致谢区。溯源链均经核实——Claude Code Auto Dream 为 Anthropic 官方功能(Memory 2.0,code.claude.com/docs/en/memory);arXiv:2504.13171 作者含 UC Berkeley(Stoica/Gonzalez)与 Letta(Packer/Wooders);K-Means++ 聚类预分组见 src/dream/clustering.js(k-means++ seeding)。措辞两处精确化:'UC Berkeley' 补全为 'UC Berkeley & Letta';'密码学可回放审计' 收敛为 '可回放的 sha256 摘要审计链'(digest 用于可回放性而非防抵赖,防挑刺)。理念借鉴、实现原创,保留 cc-haha 既有署名。
1 parent d22b9b9 commit 3680120

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,26 @@ npm run stress # three-axis stress test
309309
npm run sync # src → lib sync
310310
---
311311

312+
## 🙏 致谢
313+
314+
autoDream 的理念溯源(理念借鉴、实现原创):
315+
316+
- **[Claude Code 的 Auto Dream](https://code.claude.com/docs/en/memory)**(Anthropic,Memory 2.0):理念源头——会话间隙由后台子代理整理记忆文件(去重、修矛盾、清衰减)。
317+
- **[Sleep-time Compute: Beyond Inference Scaling at Test-time](https://arxiv.org/abs/2504.13171)**(UC Berkeley & Letta,arXiv:2504.13171):Auto Dream「离线巩固」思想背后的学术脉络。
318+
- **cc-haha**:早期实现思路的参照之一。
319+
320+
在上述工作之上,dsh-mneme 做了自己的工程发展:K-Means++ 聚类预分组、类型化决策清单(keep / merge / archive / conflict / update,及 sleep 侧 supersede / differentiate)与可回放的 sha256 摘要审计链(`dream_runs` / `receipt_chain`)。如有遗漏的灵感来源,欢迎提 issue 指出。
321+
322+
## Acknowledgements
323+
324+
Provenance of the autoDream concept (ideas credited, implementation original):
325+
326+
- **[Auto Dream in Claude Code](https://code.claude.com/docs/en/memory)** (Anthropic, Memory 2.0): the conceptual origin — a background sub-agent consolidates memory files between sessions (dedupe, resolve contradictions, prune decay).
327+
- **[Sleep-time Compute: Beyond Inference Scaling at Test-time](https://arxiv.org/abs/2504.13171)** (UC Berkeley & Letta, arXiv:2504.13171): the academic thread behind the offline-consolidation idea.
328+
- **cc-haha**: an early reference for the implementation approach.
329+
330+
On top of these, dsh-mneme adds its own engineering: K-Means++ cluster pre-grouping, a typed decision list (keep / merge / archive / conflict / update, plus supersede / differentiate on the sleep side), and a replayable sha256-digest audit chain (`dream_runs` / `receipt_chain`). If any source of inspiration is missing, please open an issue.
331+
312332
## 📜 License
313333

314334
MIT

‎dsh-mneme/README.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
> 给 DeepSeek Harness 的跨会话记忆插件:让 Agent 记住你、记住项目、自动整理记忆。**Mneme**(Μνήμη)——希腊记忆女神 Mnemosyne 之名,掌管记忆与梦境,正如 autoDream 在后台巩固记忆。
1515
16-
`dsh-mneme` 是一个 [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) 插件,为 Agent 提供持久的跨会话记忆能力。它借鉴了 Claude 的 **Dream 机制** 与 cc-haha / Claude Code 的 **autoDream** 实现思路——不仅**存储**记忆,还会**自动巩固**(去重、合并、冲突裁决、摘要生成),让记忆库越用越精炼。
16+
`dsh-mneme` 是一个 [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) 插件,为 Agent 提供持久的跨会话记忆能力。它借鉴了 Claude 的 **Dream 机制** 与 cc-haha / Claude Code 的 **autoDream** 记忆巩固功能——不仅**存储**记忆,还会**自动巩固**(去重、合并、冲突裁决、摘要生成),让记忆库越用越精炼。完整溯源与致谢见文末「[🙏 致谢](#-致谢)」。
1717

1818
## ⏱️ 30 秒理解
1919

@@ -69,6 +69,8 @@ dsh web
6969

7070
### autoDream 自动记忆整理 🧠
7171

72+
> **溯源**:autoDream 的理念源自 Claude Code 的 Auto Dream 记忆巩固功能(Anthropic,Memory 2.0 的后台整理子代理),其「离线巩固」思路与 UC Berkeley & Letta 的 *Sleep-time Compute* 论文([arXiv:2504.13171](https://arxiv.org/abs/2504.13171))一脉相承。dsh-mneme 将其引入 DSH 插件生态,并发展为自己的实现——K-Means++ 聚类预分组、类型化决策清单与可回放的 sha256 摘要审计链,详见文末「[🙏 致谢](#-致谢)」。
73+
7274
- **触发**:记忆数 > 10 或总字符 > 5000 时,异步自动触发(不阻塞写入)
7375
- **决策清单式整理**:LLM 输出 `keep` / `merge` / `archive` / `conflict` / `update` 决策清单,服务端校验后逐条应用
7476
- `merge`:合并主题相近的条目,保留信息最完整者
@@ -596,6 +598,16 @@ npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动
596598
- [本地模型部署指南](docs/LOCAL_MODEL.md)
597599
- [从 v0.1 升级说明](docs/MIGRATION.md)
598600

601+
## 🙏 致谢
602+
603+
autoDream 的理念溯源(理念借鉴、实现原创):
604+
605+
- **[Claude Code 的 Auto Dream](https://code.claude.com/docs/en/memory)**(Anthropic,Memory 2.0):理念源头——会话间隙由后台子代理整理记忆文件(去重、修矛盾、清衰减)。
606+
- **[Sleep-time Compute: Beyond Inference Scaling at Test-time](https://arxiv.org/abs/2504.13171)**(UC Berkeley & Letta,arXiv:2504.13171):Auto Dream「离线巩固」思想背后的学术脉络。
607+
- **cc-haha**:早期实现思路的参照之一。
608+
609+
在上述工作之上,dsh-mneme 做了自己的工程发展:K-Means++ 聚类预分组(`src/dream/clustering.js`)、类型化决策清单(keep / merge / archive / conflict / update,及 sleep 侧 supersede / differentiate)与可回放的 sha256 摘要审计链(`dream_runs` / `receipt_chain`)。如有遗漏的灵感来源,欢迎提 issue 指出。
610+
599611
## 📜 License
600612

601613
MIT

0 commit comments

Comments
 (0)