webkubor/dsh-mirror 预览 preview

webkubor/dsh-mirror

| | 不装 | dsh-user-mirror | |---|---|---| | 换一个会话 | 你的原则要重讲一遍 | 自动注入,模型已经知道 | | 模型到底记了什么 | 不透明,只能猜 | 记忆 tab 里一条条列出来 | | 它凭什么记这条 | 无从追溯 | 每条都带理由,点开就看到 | | 记多了会不会塞爆上下文 | 会 | 按 token 预算注入,不按条数 | | 记错了怎么办 | 只能重开会话 | 点一下撤掉 | | 过时的偏好 | 一直留着误导模型 | 会遗忘 —— 30 天没被印证就进淡忘区 |

catalog descriptioncatalog 简介 / catalog description:Let the AI know you. 让模型主动记下你的判断依据(原则/红线/工作方式),跨会话复用 —— 有容量、会遗忘、每条都说得出为什么记。

Project Overview项目介绍

dsh-mirror, also published as dsh-user-mirror, is a native AI memory plugin built exclusively for DeepSeek Harness (DSH). It enables the DSH model to actively record a user’s principles, boundaries, work habits, and personal preferences, then reuse these across multiple chat sessions. It stores only preference-based judgments, not general factual data that belongs in other storage systems, includes structured memory management and automatic forgetting, and adds a dedicated visual Memory tab to the DSH interface. You can install it via the DSH CLI command dsh plugin --profile web add @dsh-plugins/dsh-user-mirror.

This plugin is built for DSH users who want to avoid re-stating their preferences every time they start a new chat session. Whenever a user communicates a new reusable preference or principle during a conversation, the DSH model will actively call the plugin’s mirror_remember tool to store the new entry along with a reason for recording it. The plugin then checks for similar existing topics, removes lowest-strength entries when it hits the configured capacity limit, and automatically injects relevant memory into the system prompt for all future conversations.

The plugin can only be installed on DSH web profiles that provide the required storageDomain and webServer services, and it will fail to boot on headless profiles. Its only runtime dependency is ai-orb, a zero-dependency SVG status component that is loaded via a separate static route instead of being bundled into the client bundle. It is released under the permissive MIT license, stores all user data locally on device, never sends any data to external servers, and has a known limitation where reworded pure Chinese synonyms may be stored as two separate entries.

dsh-mirror (也叫 dsh-user-mirror) 是原生的 DeepSeek Harness(DSH)AI 记忆插件,它让模型主动记录用户的原则、红线、工作方式和个人偏好,实现跨会话复用。它只存储判断类偏好,不存储本该存在别处的事实信息,内置结构化记忆管理和自动遗忘机制,还有一个专用的可视化「记忆」标签页供用户查看所有记录内容。

这款插件面向需要让 AI 记住长期偏好、不用每次开启新会话都重复说明的 DSH 用户。当用户在对话中表达出新的偏好或原则时,模型会主动调用插件的工具来记录它,同时附上记录这条内容的理由。插件随后会自动合并相似主题,容量满时淘汰低强度记忆,再把相关记忆注入到未来所有对话的系统提示中。

它只能安装在提供 storageDomain 和 webServer 服务的 DSH web 配置文件上,不支持 headless 配置文件。唯一运行时依赖是零依赖的 ai-orb SVG 状态组件,通过独立静态路由加载而非打包进客户端。它以 MIT 协议开源,所有数据存储在用户本地设备,不上传任何数据到外部服务器,已知限制是措辞不同的纯中文同义词可能会被记为两条独立条目。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 14 stars - an early-stage project星标 14,属于早期项目
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命令行安装

npx @deepseek-ai/dsh plugin --profile web add @dsh-plugins/dsh-user-mirror

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

READMEREADME

🪞 dsh-user-mirror

让 AI 记住你怎么想,而不是你说过什么。
DSH 插件 —— 模型主动记下你的原则、红线与工作方式,跨会话复用。
会遗忘、有容量上限、每条都说得出为什么记。

npm downloads DSH deps MIT

DSH Plugin dsh-plugin ai-memory  ·  更新日志 · 开发笔记

记忆 tab:AI 眼中的你 —— 一句话速写、四类判断、每条被印证过几次
记忆 tab —— 不是一份记录列表,是一张画像:一句话速写、四类判断分区、
红线单独成块,每条判断的字重就是它被印证的次数。

装它和不装它的区别

不装 dsh-user-mirror
换一个会话 你的原则要重讲一遍 自动注入,模型已经知道
模型到底记了什么 不透明,只能猜 记忆 tab 里一条条列出来
它凭什么记这条 无从追溯 每条都带理由,点开就看到
记多了会不会塞爆上下文 会 按 token 预算注入,不按条数
记错了怎么办 只能重开会话 点一下撤掉
过时的偏好 一直留着误导模型 会遗忘 —— 30 天没被印证就进淡忘区

这是什么

一个 DSH 插件:让模型主动记下「你怎么想」,跨 session 复用,再注入回系统提示。

  • 🧠 学 —— 模型意识到你表达了可复用的判断依据时,调用 mirror_remember 记下来,并写下为什么记
  • 💾 记 —— 用 ctx.storageDomain 本地持久化,有容量上限、会遗忘、新认知覆盖旧的
  • 🎯 用 —— 自动注入 system prompt,按 token 预算 注入,不是条数

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-scholar 下一个 Next dsh-plugin-lookatstudy →