isheng-eqi/dsh-hermes-memory
Hermes 风格持久记忆(MEMORY.md / USER.md),用于 DeepSeek Harness (DSH) —— 忠实移植自 hermes-agent MemoryStore:有界、文件备份、模型策展、冻结快照注入。
Project Overview项目介绍
This is a native DSH plugin that adds persistent dual-bank memory to DeepSeek Harness agents, based on the Hermes Agent MemoryStore design from NousResearch. It can be installed in two ways: the recommended method is as a bundle via the DSH CLI, running dsh plugin --profile web add github:isheng-eqi/dsh-hermes-memory in your terminal. It can also be loaded dynamically as a Cordis plugin inside a running DSH session, though dynamic plugins do not persist across DSH restarts. The plugin ships with a full set of tools that let the AI agent autonomously curate its own memory entries.
The plugin splits agent memory into two separate banks, MEMORY for project and environment facts, and USER for user preferences and work habits. Each bank has its own independent character budget and eviction policy, which solves common problems found in single-bank memory designs like budget competition and mismatched eviction timelines. A built-in web memory panel is added to the DSH web sidebar, letting users directly view, edit, add, and delete memory entries at any time. All changes from either the agent's memory tool or the user's panel edits are synced to the same persistent storage.
This plugin has no external dependencies, and all functionality is built on top of native DSH interfaces. It uses DSH's built-in storage hub to store memory as an atomic-written JSON file, which persists across DSH restarts and sessions. The plugin is open-source under the MIT license, and works out of the box with the default DSH web profile. For custom or headless/TUI profiles that lack a built-in storage layer, the plugin's documentation provides clear instructions to manually enable storage support.
这是一个专为 DeepSeek Harness (DSH) 开发的原生持久化记忆插件,实现了 NousResearch Hermes Agent 的双记忆库设计。它将 AI 代理的记忆拆分为两个独立存储库:MEMORY.md 存储环境、项目相关的事实知识,USER.md 存储用户偏好、工作习惯等个人画像,二者各自拥有独立字符预算与淘汰策略。AI 代理通过内置的 memory 工具自主管理记忆,记忆跨会话持久化,每个新会话开始会自动注入冻结快照。
本插件附带一个内置的可视化网页记忆面板,安装后会在 DSH Web 界面的侧边栏底部新增入口,用户可以直接在面板中查看、编辑、增删两个记忆库的所有条目,面板操作和工具读写共享同一份存储,保证内容实时同步。它解决了单库记忆方案常见的预算争抢、淘汰策略一刀切、策展互相干扰等问题,适合需要长期有序持久记忆的 DSH 用户使用。
本插件零外部依赖,完全使用 DSH 原生接口实现,依托 DSH 原生存储单元保证原子写入和跨重启持久化。它支持两种安装方式:推荐作为标准 DSH bundle 通过 DSH CLI 一行命令安装,也支持在会话中动态安装为 Cordis 插件。本插件采用 MIT 许可证开源,默认适配所有 DSH Web 配置文件,对无存储层的自定义配置有明确的启用说明。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-hermes-memory(isheng-eqi/dsh-hermes-memory)
仓库:https://github.com/isheng-eqi/dsh-hermes-memory
本站详情页:https://www.yhbd.top/plugins/isheng-eqi-dsh-hermes-memory/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 8 · 最近提交 2026-09-02 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 8 stars - very few users, little community feedback星标只有 8,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-hermes-memory
把 isheng-eqi/dsh-hermes-memory 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-hermes-memory
Persistent memory for DeepSeek Harness (DSH) that keeps two separate banks —
MEMORY.mdfor what the agent learns about the world,USER.mdfor what it learns about you — plus a built-in web panel to inspect and edit both.
DeepSeek Harness 的双库记忆插件:把 agent 的记忆分成两个独立的库——MEMORY.md(关于世界的事实:环境、项目约定、工具怪癖)和 USER.md(关于你的画像:偏好、沟通风格、工作习惯),各自独立预算、独立淘汰。模型用一个 memory 工具自主策展,跨会话持久化,每个会话以冻结快照重新注入;附带内置网页面板,直接查看和修改两个记忆库。机制源自 NousResearch/hermes-agent 的 MemoryStore,零外部依赖、纯 DSH 原生接缝实现。
为什么分两个库
大多数 agent 记忆方案把什么都装进一个池子——用户画像和项目事实、快变和慢变的信息混在一起。三个后果:
- 抢预算:一个字符上限的池子里,"用户喜欢简洁回答"和"这个项目的构建命令"互相挤占,谁该留谁该删没有依据。
- 淘汰一刀切:用户画像是慢变的(几个月不变),项目事实是快变的(每次迭代都更新),单库只能给两类信息套同一个淘汰策略。
- 策展互相干扰:模型决定"该记什么"时,关于你的信息和关于代码的信息搅在一起,两类判断互相污染。
Hermes 的答案是分开:两个独立的库,各自的上限、各自的淘汰节奏。本插件把这个设计忠实落到 DSH。
Features
| Hermes 机制 | 本插件实现 |
|---|---|
MEMORY.md — agent 个人笔记(环境事实/项目约定/工具怪癖),2200 字符上限 |
✓ memory 记忆库 |
USER.md — 用户画像(偏好/沟通风格/工作习惯),1375 字符上限 |
✓ user 记忆库 |
条目以 § 分隔、可多行,字符上限(非 token) |
✓ 同 |
单个 memory 工具:add / replace / remove / batch(全有或全无) |
✓ 同 |
replace/remove 用唯一子串匹配 old_text,多条命中报冲突 |
✓ 同(精确匹配优先,UI 传完整文本永远唯一命中) |
| 超限不静默丢弃:返回当前条目列表,模型当轮合并后重试;每轮失败上限 3 | ✓ 同 |
add 自动去重(同文本不重复) |
✓ 同 |
冻结快照:会话开始注入一次(<system-reminder> 框架 + ═ 标尺 + [n% — x/limit chars] 用量表头),会话中途写入不改已注入快照(保前缀缓存) |
✓ 同 |
| nudge 提醒:连续 10 轮无写入提醒持久化 | ✓ 同 |
成功结果:memory(memory): Entry updated. + usage + "do not repeat" |
✓ 同 |
| 工具内部无 LLM(agent-curated 策展,零 LLM 成本) | ✓ 同 |
| 记忆可视化面板(Web UI 内查看/增/删/改两个记忆库) | ✓ 本插件独有(见下) |
记忆面板(Memory Panel)
安装后,DSH Web 界面侧边栏底部会出现「记忆」入口,点击打开记忆面板:


功能
- 查看:MEMORY 与 USER 两个记忆库的全部条目、各自占用率(
84% — 1,859/2,200 chars)与条数 - 编辑:每行「编辑」按钮 → 行内文本域直接修改 → 保存;替换保留条目身份(seq 不变)
- 删除:每行「删除」按钮,按条目精确匹配移除
- 添加:分区底部输入新条目,回车或「添加」按钮提交(自动去重)
- 实时同步:每次操作立即写入
~/.dsh/storages/hermes_memory.json(原子写、跨重启持久),状态行给出反馈
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
ruvnet/ruflo
Tencent/WeKnora
EverMind-AI/EverOS
MemTensor/MemOS
plastic-labs/honcho
agentscope-ai/ReMe
zilliztech/memsearch
vshulcz/deja-vu