Max-Null/dsh-memory 预览 preview

Max-Null/dsh-memory

本插件属于 @max-null/ 插件系列——这一系列共同构成 SSID(思灵 · Seek Soul in Darkness) 桌面体验。SSID 是整合它们的盒:dsh-capture · dsh-chat-rail · dsh-chinese-thinking · dsh-draft-polish · dsh-guardian · dsh-habit · dsh-memory · dsh-node-appearance · dsh-plugin-center · dsh-quick-toolbar · dsh-skill-mcp-center · dsh-ssid-panels · dsh-ssid-zh-ui · dsh-achievements。

catalog descriptioncatalog 简介 / catalog description:Cross-session plaintext memory for DeepSeek Harness: model-written, effective immediately, searchable across the workspace chain, budgeted every-turn recall · 跨会话明文记忆:模型写入即生效、明文可审计、沿工作区链检索、常驻注入带预算

Project Overview项目介绍

This plugin is a native cross-session plaintext memory tool built exclusively for DeepSeek Harness, part of the @max-null/* SSID plugin collection that delivers an integrated desktop experience for DSH. It follows DSH’s everything-is-a-plugin design principle, so it does not modify any core DSH source code. To install it, run npm install @max-null/dsh-memory and add a plugin entry to your local cordis.yml configuration file, after which it will be loaded automatically by DSH’s plugin loader. It provides a full set of memory management services and tools, uses BM25 keyword retrieval by default, and can inject recalled memory content into the LLM’s system prompt context for cross-session access.

The plugin separates memory into two storage layers: global and project. Global memory is stored in the local DSH home directory, while project memory is stored alongside the current working repository, so it can be committed to Git and shared with team collaborators to document shared project knowledge. It follows the design rule of "write now effective, human only intervenes when needed", so memory saved by the model becomes active immediately, and users can always manage memory through the dedicated memory panel added to DSH settings. Users can view, edit, delete, pin, or unpin memory entries, and set validity anchors that automatically mark stale or outdated content when their referenced environment changes.

This plugin is released under the permissive MIT open source license. All of its peer dependencies are core DSH packages provided by the DSH host, so no extra manual installation of dependencies is required for most users. You can customize multiple configuration options including injection character budget, maximum summary length per entry, and optional semantic retrieval fusion, and the plugin automatically migrates older storage file formats to the current standard on first load. Semantic retrieval is an optional add-on that only works if you provide a valid embedding implementation, and falls back to pure BM25 automatically if embedding calls fail.

这是一个专为 DeepSeek Harness 开发的原生跨会话明文记忆插件,属于 Max-Null 开发的 SSID(思灵)桌面体验插件系列。遵循 DSH「一切皆插件」设计原则,它不修改 DSH 源码,通过 DSH Loader 从 cordis.yml 加载,提供完整的记忆读写管理服务与工具,默认采用 BM25 关键词检索机制,支持将召回的记忆注入到系统提示词上下文。

它支持全局和项目两层命名空间存储,全局记忆存在本地 DSH 目录,项目记忆随当前仓库存储,可通过 Git 分享给团队协作者,沉淀项目共识。遵循「写入即生效,人是例外干预者」的设计,模型写入的记忆直接生效,用户可随时在 DSH 设置的记忆面板中查看、编辑、删除或钉住记忆,也能设置有效性锚点自动标记过期内容。

安装可通过 npm 安装 @max-null/dsh-memory,之后在用户的 cordis.yml 中添加插件配置项即可启用。插件采用 MIT 许可开源,依赖 DSH 宿主提供的多个核心包,支持自定义注入预算、摘要长度、可选语义检索融合等配置,自动迁移旧版本存储文件格式。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 github:Max-Null/dsh-memory

把 Max-Null/dsh-memory 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-memory

本插件属于 @max-null/* 插件系列——这一系列共同构成 SSID(思灵 · Seek Soul in Darkness) 桌面体验。SSID 是整合它们的盒:dsh-capture · dsh-chat-rail · dsh-chinese-thinking · dsh-draft-polish · dsh-guardian · dsh-habit · dsh-memory · dsh-node-appearance · dsh-plugin-center · dsh-quick-toolbar · dsh-skill-mcp-center · dsh-ssid-panels · dsh-ssid-zh-ui · dsh-achievements。

This plugin belongs to the @max-null/* family — a set of plugins that together form the SSID (思灵 · Seek Soul in Darkness) desktop experience.

一个面向 DeepSeek Harness 的跨会话明文记忆插件。遵循「一切皆插件」——它不修改 DSH 源码,声明 name/inject/apply,由 Loader 从 cordis.yml 加载。

设计原则

  1. 写入即生效,人是例外干预者:模型写入的记忆直接生效(approved),不再逐条等人放行;人保留随时查看、改写、删除、钉住或回滚的能力——人不在场不等于失控。
  2. 可观测先于精准:每条记忆是明文,memory_list 随时可见、memory_forget 随时删除——不存在"静默暗礁"。
  3. 明文是人机共享的审计窗口:记忆是可读文本,模型可自检其是否过期(有效性锚点会在所绑环境值变化后标记 stale),人可随时查看与改写。
  4. 确定性且缓存安全:BM25 关键词检索是存储的纯函数、无 LLM 调用;固定指引进 system-prompt section,approved + injected 记忆进 recall context(global 全量 + 当前会话工作区),逐条为单行摘要并按注入预算截断(超预算按最近更新优先取舍,省略数在面板可见)。

截图

装完后在设置里多出「记忆」一项,可查看与管理跨会话记忆:

入口: 设置 → 记忆

设置入口与面板
设置 → 记忆

用法

npm install @max-null/dsh-memory

在你的 cordis.yml 加一条(其余 storage / system-prompt / tools 由宿主已有;记忆的存储后端由插件自己注册):

- id: memory
  name: '@max-null/dsh-memory'

提供的服务与工具

  • 服务 ctx.memory:remember / list / search / forget / update / move / setStatus / setInjected / supersede / retract / sweep / demoteStale / verifyAnchors / reload 等
  • 工具(12 个):memory_save、memory_list、memory_search、memory_update、memory_confirm、memory_forget、memory_move、memory_sweep,加提示词模板四件套 prompt_search、prompt_get、prompt_list、prompt_add
  • 注入:tool:memory 指引 section(工具用法 + 常驻注入判据)+ memory:self 机制自述 + memory:recall 召回 context(global 的 approved + injected + 当前会话工作区的 approved + injected,带 [memory:<id>:<namespace>] 来源标记;摘要化 + 预算截断)
  • 检索:BM25(CJK 单字 + 2-gram,content 与 keywords 字段分离加权;中文多字查询精度显著优于单字切分);可选语义融合(见「可选配置」)

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

← 上一个 Prev agentflow 下一个 Next dsh-j-space →