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 协议开源,所有数据存储在用户本地设备,不上传任何数据到外部服务器,已知限制是措辞不同的纯中文同义词可能会被记为两条独立条目。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-mirror(webkubor/dsh-mirror)
仓库:https://github.com/webkubor/dsh-mirror
本站详情页:https://www.yhbd.top/plugins/webkubor-dsh-mirror/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 14 · 最近提交 2026-10-02 · 主语言 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 更稳。
- 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 插件 —— 模型主动记下你的原则、红线与工作方式,跨会话复用。
会遗忘、有容量上限、每条都说得出为什么记。
记忆 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 →
vshulcz/deja-vu
adoresever/graph-memory
mnemon-dev/mnemon
Phant0Meow/dsh-meow-memory
slow-stack/mneme
Aik358/dsh-auto-memory