PerryLink/dsh-memento 预览 preview

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 配置文件。卸载后内存数据库和审计日志会保留,不会丢失已存储的上下文信息。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • 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 dsh1024 once, then dsh1024 plugin --profile web add dsh-memento (counts toward the deepseek1024.com install ranking). Gitee dshfind OpenSSF Scorecard

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.

License DSH plugin dsh-doctor DSH Market Node CI Version npm version npm downloads

English · 简体中文 · Español · Português · हिन्दी

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-voice-ai-girlfriend 下一个 Next dsh-std →