dsh-hybrid-memory

为 DeepSeek Harness 提供透明的 Markdown 长期记忆,把 OpenClaw 的文件透明与 Hermes 的后台闭环合在一起:文件归你所有,可读、可改、可 diff、可备份;后台循环负责持续维护。SOUL.md、USER.md、AGENT.md、AGENTS.md 作为一个有预算的系统提示片段注入;MEMORY.md 分成 Core / Important / General 三层,用本地 BM25(中文单字 + 二元组、英文单词)按需检索,而不是每轮整篇塞进上下文。单并发异步 worker 从已提交消息中提炼稳定偏好与事实,去重、分层,把溢出归档到 MEMORY.archive.md;写入原子化,失败只降级不打断对话。附带四个严格工具(memory_read、memory_search、memory_update、persona_update)、Settings → Hybrid memory 设置页(逐文件 Load/Inject 开关、预算、搜索、立即提炼/心跳)、可选侧边栏,以及可用 producer-owned message kind 唤醒空闲 Agent 的心跳。本地优先,不需要向量库或额外依赖。

插件介绍

为 DeepSeek Harness 提供透明的 Markdown 长期记忆,把 OpenClaw 的文件透明与 Hermes 的后台闭环合在一起:文件归你所有,可读、可改、可 diff、可备份;后台循环负责持续维护。SOUL.md、USER.md、AGENT.md、AGENTS.md 作为一个有预算的系统提示片段注入;MEMORY.md 分成 Core / Important / General 三层,用本地 BM25(中文单字 + 二元组、英文单词)按需检索,而不是每轮整篇塞进上下文。单并发异步 worker 从已提交消息中提炼稳定偏好与事实,去重、分层,把溢出归档到 MEMORY.archive.md;写入原子化,失败只降级不打断对话。附带四个严格工具(memory_read、memory_search、memory_update、persona_update)、Settings → Hybrid memory 设置页(逐文件 Load/Inject 开关、预算、搜索、立即提炼/心跳)、可选侧边栏,以及可用 producer-owned message kind 唤醒空闲 Agent 的心跳。本地优先,不需要向量库或额外依赖。

安装方式

通过 npm 安装

dsh plugin --profile web add @jasper_alaric/dsh-hybrid-memory

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:Jasper-Alaric/dsh-hybrid-memory

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。