D
@max-null/dsh-memory
v0.2.0 · 2 天前发布
Cross-session plaintext memory plugin for the DeepSeek Harness — deterministic BM25 recall, human-owned, no embeddings
README
dsh-memory
一个面向 DeepSeek Harness 的跨会话明文记忆插件。遵循「一切皆插件」——它不修改 DSH 源码,声明 name/inject/apply,由 Loader 从 cordis.yml 加载。
设计原则
1. 人是所有者:模型只能写入 suggested 状态的记忆,绝不自我提升;只有人工确认(setStatus)才能让记忆生效。
2. 可观测先于精准:每条记忆是明文,memory_list 随时可见、memory_forget 随时删除——不存在"静默暗礁"。
3. 明文是人机共享的审计窗口:记忆是可读文本,模型可自检其是否过期或出错(规划中的 v2)。
4. 确定性且缓存安全:BM25 关键词检索是存储的纯函数、无 LLM 调用;固定指引进 system-prompt section,auto 记忆进 context。
用法
bash
npm install @max-null/dsh-memory
在你的 cordis.yml 加一条(其余 storage / system-prompt / tools 由宿主已有;记忆的存储后端由插件自己注册):
yaml
id: memory
name: '@max-null/dsh-memory'
提供的服务与工具
ctx.memory:remember / list / search / forget / setStatusmemory_save、memory_list、版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @max-null/dsh-memory
- Repo
- git+https://github.com/Max-Null/dsh-memory.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}