PerryLink/dsh-memento
DeepSeek Harness 的有界、分层、审批门控、可审计跨会话记忆(能力接缝:ctx.memory + SQLite 提供程序 + 记忆工具 + 冻结快照注入)
Project Overview项目介绍
This is a purpose-built plugin that exists exclusively for DeepSeek Harness (DSH), adding bounded, layered cross-session memory with mandatory write approval and full persistent audit logging. It exposes a typed ctx.memory service seam and uses a local SQLite database stored at $DSH_HOME/dsh-memento/memory.db, no network access required, for persistent offline storage. To install, users can run the official DSH plugin command to pull it from npm, git, or a local tarball, and it is verified fully compatible with DSH v0.1.5-rc.2 across all major desktop platforms: Windows, macOS, and Linux.
The plugin organizes memory into two tracks (user facts, agent environment facts) and two layers (global user, workspace), isolated per agent preset, with hard character limits enforced per track and layer. A frozen memory snapshot is injected into the system prompt once per session at first prompt assembly, and does not change mid-session. All writes go through an approval gate that cannot be bypassed by any model path, and even denied writes are logged as audit entries for full traceability. This plugin is ideal for DSH users that need persistent long-term context with security controls over memory modifications.
dsh-memento is released under the open-source Apache 2.0 license, so it is free to use and modify for any personal or commercial purpose. It requires Node.js version 22.19 or higher, and does not need any network connectivity or native binary dependencies to run on your local machine. All existing configuration options can be edited either via the DSH settings sidebar or by manually editing the cordis.yml configuration file. When you uninstall the plugin, your existing memory database and audit logs are retained, so no stored context is lost during removal.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,为 DSH 提供带审批控制和审计追踪的分层、跨会话内存管理。它提供了类型化的 ctx.memory 服务接口,使用本地 SQLite 数据库存储,所有内存写入操作都必须经过无法绕过的审批闸门。用户可通过 DSH 内置的插件命令,从 npm、git 或压缩包渠道安装,适配最新的 DSH v0.1.5-rc.2 版本,支持全桌面平台。
插件将内存分为用户轨迹和代理轨迹两类,每类又分为全局用户层和工作区层,按代理预设隔离,每个会话首次提示时生成固定快照注入系统提示。写入操作会完整记录审计日志,被拒绝的写入也会留下拒绝记录,同时对每层每轨迹设置硬性字符预算,超出会返回结构化错误而非自动截断。适合需要长期保存上下文信息、对写入操作有安全管控需求的 DSH 用户。
插件遵循 Apache-2.0 开源许可,无使用成本,依赖 Node.js 版本 22.19 或 24 及以上,无需网络连接,也不包含原生二进制代码。所有配置项支持通过 DSH 设置侧边栏直接编辑,也可手动修改 cordis.yml 配置文件。卸载后内存数据库和审计日志会保留,不会丢失已存储的上下文信息。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-memento(PerryLink/dsh-memento)
仓库:https://github.com/PerryLink/dsh-memento
本站详情页:https://www.yhbd.top/plugins/perrylink-dsh-memento/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 Apache-2.0 · ⭐ 136 · 最近提交 2026-09-25 · 主语言 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 更稳。
- This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
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-memento
把 PerryLink/dsh-memento 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-memento
- 1024 store channel:
npm i -g dsh1024once, thendsh1024 plugin --profile web add dsh-memento(counts toward the deepseek1024.com install ranking).
Bounded, layered, approval-gated, auditable cross-session memory for DeepSeek Harness.
A typed ctx.memory seam, a write-approval gate no model path can bypass, and an audit trail you can rebuild — from the approval pair plus the plugin's own audit table, with the session-log gap named out loud.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
sens-io/memobranch
djasdh/interest-memory
EverMind-AI/EverOS
MemTensor/MemOS
plastic-labs/honcho
sandbaseai/sandbase-harness