SaiSenBox/dsh-prompt-manager
DeepSeek Harness Web 的会话级多提示词库与系统提示词注入器
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness Web that lets users manage their personal library of reusable preset prompts. It addresses the common inconvenience of retyping the same requirements across multiple chat sessions, or storing prompts scattered across unorganized external text editors. To install the plugin from the official npm registry, run the command dsh plugin --profile web add dsh-prompt-manager in your terminal, then restart DSH Web to activate it. For developers working from source, a PowerShell install script is provided to copy the plugin files to the correct DSH directory.
This plugin is designed for any DSH user who regularly reuses prompts for repetitive work tasks, such as writing weekly reports with a fixed structure, conducting consistent code reviews, or generating standard test cases for software projects. After installation, you first open the DSH Web settings panel, navigate to the dedicated prompt management section, and create, edit, tag, and organize all of your commonly used prompts. When you start a new chat session, you can either click the dedicated prompt button in the input toolbar or type a slash command to quickly search for and select the prompts you want to use.
The plugin is released under the open source MIT license, and all prompt data is stored only locally on your machine, in both browser localStorage and a local mirror file, so no data is ever uploaded to external servers. It supports exporting your full prompt library as a JSON backup, and importing backups via either merge or replace modes, and uses versioning to sync changes across multiple open tabs or DSH sessions. If any local data becomes corrupted, the plugin preserves the original damaged file instead of silently overwriting it, and remote access is disabled by default for security.
这是一个专门为 DeepSeek Harness Web 开发的原生插件,用于管理用户的个人常用提示词库。它解决了用户在不同会话中重复输入相同要求的痛点,避免了将常用提示词散落在外部记事本中查找不便的问题。安装后,用户可以在 DSH 的设置面板中统一管理提示词,需要使用时可以通过命令或者工具栏按钮快速调用选中的提示词。
适合需要重复使用固定提示词完成日常任务的 DSH 用户,比如固定格式的周报撰写、代码审查、测试用例设计等各类重复场景。使用流程非常清晰简单:先在设置面板中新建、编辑并分类整理你的常用提示词,还可以给提示词加上标签方便快速搜索,回到聊天会话后,就可以通过点击工具栏按钮或者输入斜杠命令快速搜索并选中需要的提示词。
插件遵循 MIT 许可开源,所有提示词数据只保存在用户本地浏览器和本机镜像文件中,不会上传到外部网络,保障用户数据隐私。它支持提示词的导入导出备份,会通过版本号同步多端修改,损坏数据会保留备份不会静默覆盖,远程访问默认禁用,需要手动开启环境变量才能使用。首次安装后会自带 4 条示例提示词供用户参考,随时可以修改或删除。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-prompt-manager(SaiSenBox/dsh-prompt-manager)
仓库:https://github.com/SaiSenBox/dsh-prompt-manager
本站详情页:https://www.yhbd.top/plugins/saisenbox-dsh-prompt-manager/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-09-27 · 主语言 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 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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-prompt-manager
把 SaiSenBox/dsh-prompt-manager 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-prompt-manager
一个给 DeepSeek Harness Web 用的个人提示词库。
我经常在不同会话里重复输入同一套要求:代码怎么审、测试要覆盖什么、周报按什么结构写。把它们散落在记事本里不太顺手,所以做了这个小插件——常用提示词放在 DSH 里,需要时敲一下 /提示词 就能找到。
界面预览
在设置中整理、搜索和备份提示词:

在聊天输入框里快速搜索并选择当前会话要使用的提示词:

能做什么
- 在 设置 → 提示词管理 中新建、编辑、删除和搜索提示词。
- 收藏常用提示词;候选列表也会参考使用次数和最近使用时间排序。
- 在聊天输入框使用
/prompt或/提示词打开提示词列表,也可以直接输入/关键词搜索。 - 聊天输入框的工具栏里有一个“提示词”按钮;展开栏会紧贴按钮显示,可以搜索并同时勾选多条提示词,也能单独移除。
- 启用后按钮会直接显示提示词名称;从当前会话新建的分支会继承提示词,并显示相同状态。
- 把提示词库导出为 JSON 备份,也可以用“合并”或“替换”方式导入。
- 跟随 DSH 的语言设置切换中文或英文。
- 数据只保存在本机(浏览器与本地镜像文件),不会由插件上传到网络。
首次使用会放入 4 条示例提示词,随时可以改掉或删除。
安装
推荐使用 DSH 的插件命令安装 npm 版本:
dsh plugin --profile web add dsh-prompt-manager
安装后重启 DSH Web。
如果是从源码调试,也可以在本项目目录运行:
powershell -ExecutionPolicy Bypass -File .\install.ps1
脚本会把插件复制到 $DSH_HOME/local-plugins/dsh-prompt-manager,加入 Web profile,并安全地补充 cordis.patch.yml。
使用
- 打开 DSH Web 左下角的 设置,进入 提示词管理,这里只负责新建、编辑、整理和备份提示词。
- 点“新建”,填写标题、标签和正文。
{{占位符}}会按普通文本保留,不会被误当成 DSH 内部变量。 - 回到会话输入框,点击访问模式右侧的 提示词 按钮,在弹出的列表中搜索并选择一条或多条提示词。
- 启用后按钮会显示当前提示词名称或启用数量。再次打开列表即可继续添加或单独移除;提示词作为系统指令参与后续请求,不会伪装成聊天消息。
- 也可以输入
/提示词、/prompt或/关键词快速选择。选中后斜杠文本会自动消失。
编辑时可以按 Ctrl + Enter(macOS 为 ⌘ + Enter)快速保存。
备份与隐私
提示词默认保存在浏览器 localStorage 的 dsh-prompt-manager.prompts 键中,并镜像到本机
$DSH_HOME/dsh-prompt-manager/prompts.json(可用环境变量 DSH_PROMPT_MANAGER_DATA_DIR 更改目录);
每个会话当前启用的提示词集合保存在 dsh-prompt-manager.session-injections 中。因此:
- 同一浏览器的多个标签页会同步;
- DSH 桌面应用每次启动可能使用新端口(浏览器
localStorage按端口隔离),此时提示词库会从本机镜像文件自动恢复,不再因重启而丢失; - 换浏览器或清理站点数据前,建议先点“导出”;
- 导入“合并”会保留现有条目,同 ID 的备份条目会覆盖旧条目;
- 导入“替换”会用备份完整替换当前提示词库。
浏览器与本机镜像通过版本号顺序同步;快速连续编辑不会让旧请求覆盖新内容。如果多个页面同时修改,插件会合并两边的条目并在界面中提示检查。空提示词库也是有效状态,不会在重启后重新生成示例。
持久文件使用同目录临时文件原子替换,并尽可能限制为当前用户可读写。如果文件损坏,插件不会静默覆盖;下一次由用户主动编辑或导入有效内容时,原文件会先保留为 prompts.json.corrupt-*。读取或同步失败会直接显示在提示词库页面。
系统提示词本身只在当前 DSH 进程内生效;如果 DSH 重启,Web 客户端会从浏览器本地记录为仍存在的会话恢复注入。会话分支继承最近祖先会话的提示词集合,也可以在分支内单独新增或移除其中一条。插件默认只允许本机页面读取或修改提示词及注入状态;需要远程管理时必须显式设置 DSH_PROMPT_MANAGER_ALLOW_REMOTE=1。
插件会校验导入和本地数据。遇到损坏数据或浏览器拒绝写入时,界面会明确提示,不再静默假装保存成功。
卸载
powershell -ExecutionPolicy Bypass -File .\uninstall.ps1
卸载脚本会移除插件和 profile 注册,但会保留浏览器里的提示词数据。
开发检查
npm run check
npm test
npm run pack:check
License
MIT © 2026 SaiSenBox
Jungod1121/dsh-anchored-standard
lilyblessing/dsh-mcp-skill-panel
jiesou/dsh-stream-rules