Jelee0145/dsh-mem
为dsh构建持久化跨工作区记忆的插件
Project Overview项目介绍
dsh-mem is a native out-of-tree bundle plugin built exclusively for DeepSeek Harness (DSH). It adds durable cross-session long-term memory that agents can access across every chat session, with four core tools: memory_save, memory_recall, memory_forget, and memory_list. It stores all saved facts, preferences, and project decisions in a single JSON file at $DSH_HOME/memory/memory.json. You can install it from the npm registry, a Git repository, or a local checkout using DSH’s built-in dsh plugin add command, which automatically resolves dependencies and registers the plugin.
dsh-mem follows DSH’s standard capability seam pattern, splitting functionality into three separate modules: the service definition, the service provider, and the tool consumer. The service definition lays out the abstract memory contract and types that other modules can depend on. The default service provider implements atomic JSON file persistence, with all writes done atomically to avoid data corruption. The consumer module registers the four memory tools that agents can call directly in conversations.
Currently, dsh-mem has a few known limitations. It does not support concurrent writes from multiple DSH processes sharing the same root storage location. It also does not ship with an edit API for existing memory entries, so to update a fact you must first forget the old entry then save the new one. All memory content is stored as free-form text, and developers can easily extend the plugin by swapping storage providers or adding new commands.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,为DSH中的AI代理提供跨会话的持久化长期记忆能力。它实现了完整的能力分层架构,包含服务定义、服务提供者和消费者模块,对外暴露四个记忆操作工具:memory_save、memory_recall、memory_forget、memory_list,所有记忆数据都持久化存储在 $DSH_HOME/memory/memory.json 文件中。
该插件支持从npm注册表、Git仓库或本地检出三种方式安装,官方推荐使用DSH内置的插件命令 dsh plugin add 完成安装,不建议直接使用npm安装作为普通依赖。卸载插件不会删除已存储的记忆数据,如需清除所有历史记忆需要手动操作存储文件。它适用于需要让AI代理记住长期偏好、项目信息和决策的DSH用户。
该插件依赖@deepseek-ai/cordis和@deepseek-ai/dsh相关包,这些依赖会在安装时自动拉取。它目前存在一些已知限制:不支持多进程并发写入,暂不提供编辑接口,记忆内容为纯文本格式。开发者可以通过替换存储提供者、新增人机命令等方式对插件进行扩展。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-mem(Jelee0145/dsh-mem)
仓库:https://github.com/Jelee0145/dsh-mem
本站详情页:https://www.yhbd.top/plugins/jelee0145-dsh-mem/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 3 · 最近提交 2026-08-14 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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-mem
把 Jelee0145/dsh-mem 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-mem — cross-session memory for DeepSeek Harness
English | 中文
An out-of-tree bundle plugin for DeepSeek Harness (dsh) that implements a complete capability seam — Service Definition + Service Provider + Consumer. It gives agents durable long-term memory shared across every session: the memory_save / memory_recall / memory_forget / memory_list tools persist facts, preferences, and decisions to $DSH_HOME/memory/memory.json.
Install
Install from the npm registry (published as dsh-mem):
dsh plugin --profile <name> add dsh-mem
dsh plugin addis the dsh way to install a plugin: it resolves the package from npm (via pnpm) into the profile and registers its bundle layer. Do not usenpm install dsh-mem— that installs the package as a plain dependency without activating any profile layer.
From git instead (runs the package's self-contained prepare build; the first install asks you to allow the build in the profile's pnpm-workspace.yaml):
dsh plugin --profile demo add github:Jelee0145/dsh-mem
Or from a local checkout:
dsh plugin --profile demo add ./dsh-memory
Verify the composed layer without booting, then boot:
dsh --profile demo --dump-config # expect a "# == dsh-mem" layer with memory / tool-memory rows
dsh --profile demo # new sessions can call the memory_* tools
Uninstall: dsh plugin --profile demo remove dsh-mem.
To disable without uninstalling (hot-reloaded, no restart), disable the rows in the profile's own cordis.patch.yml:
- id: memory
disabled: true
- id: tool-memory
disabled: true
Memory data is never touched by uninstall; it lives in $DSH_HOME/memory/memory.json (default ~/.dsh/memory/). Back it up or delete it separately if you want to clear it.
The capability seam
| Role | Module | Mounted row | Notes |
|---|---|---|---|
| Service Definition | src/memory.ts (dsh-mem/memory) |
— | abstract MemoryService declaring the ctx.memory contract and types; loading it directly fails loud |
| Service Provider | src/provider.ts (dsh-mem/provider) |
memory |
MemoryFile extends MemoryService; atomic JSON-file persistence |
| Consumer | src/tool.ts (dsh-mem/tool) |
tool-memory |
function plugin registering the four tools; resolves the service via ctx.get('memory') per call |
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