Fishsb/dsh-prompt-enhancer
DeepSeek Harness(DSH)插件:✨ 提示词一键增强 + 🔁 DSH 服务异常一键重启
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), offering two core features: prompt enhancement and speech recognition. To install the plugin, you can run the official DSH CLI command dsh plugin --profile web add github:Fishsb/dsh-prompt-enhancer#main, then restart your DSH instance to activate it. After installation, two new buttons will appear on the input toolbar: a sparkle icon for prompt enhancement and a microphone icon for speech recognition. The prompt enhancement tool supports 5 different optimization modes, allows undoing changes, and lets users configure a custom model chain to test multiple LLMs sequentially.
For prompt enhancement, the workflow is straightforward: you enter your draft prompt in the DSH input box, click the sparkle button, and wait for the independent LLM call to finish rewriting your draft. If you are not satisfied with the result, you can click the undo button to revert back to your original text immediately. For speech recognition, you can click the microphone button or use a configured global shortcut to start recording, and the plugin will automatically stop recording after it detects a period of silence. This plugin is ideal for DSH users who want to polish their prompts before sending them to LLMs, or who prefer voice input over typing.
The plugin requires that you have DSH and pnpm already installed on your system, with pnpm added to your system PATH. The offline local speech recognition engine does not come with a pre-installed model, so you will need to manually download the 228MB SenseVoice model from the plugin settings after installation. The plugin supports proxy downloads and resumable transfers for users on restricted networks, and does not collect or upload any of your personal data. It works with official DSH web clients and DSH Desktop, and third-party clients must implement the required slot contract to support the plugin’s functionality.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,核心提供两大能力:提示词增强与语音识别。提示词增强支持一键改写输入框中的草稿,提供基础、轻量、标准、专家、一键发布五种优化模式,改写结果不满意可撤回,支持自定义配置模型链按序尝试多个模型,还可开关记忆累积优化历史,可通过 DSH 官方命令行直接从 GitHub 安装。
典型工作流非常简洁,需要优化提示词时,用户先在输入框输入草稿,点击输入框工具行的 ✨ 按钮即可触发增强,等待 LLM 调用完成后草稿就会替换为增强版本,不满意可点击撤回恢复原文。语音识别方面,点击🎤按钮开始录音,说完停顿后会自动停止,还支持设置全局快捷键唤醒,识别结果会填入输入框草稿,还可配置自动触发增强。它适合需要提前润色提示词、偏好语音输入的 DSH 用户。
本插件依赖用户提前安装好 DeepSeek Harness 和 pnpm 环境,本地语音识别引擎默认不携带模型,需要用户手动下载 228MB 的 SenseVoice 模型,支持代理下载和断点续传,适配网络受限环境。插件本身不收集不上报任何用户数据,仅支持官方 DSH 网页端和桌面端,第三方客户端需要实现对应槽位契约才能正常显示功能按钮,语音录音最长限制为 60 秒。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-prompt-enhancer(Fishsb/dsh-prompt-enhancer)
仓库:https://github.com/Fishsb/dsh-prompt-enhancer
本站详情页:https://www.yhbd.top/plugins/fishsb-dsh-prompt-enhancer/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 82 · 最近提交 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 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
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:Fishsb/dsh-prompt-enhancer#v3.4.0
把 Fishsb/dsh-prompt-enhancer 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-prompt-enhancer
DeepSeek Harness (DSH) 插件。两大核心能力:
- ✨ 提示词增强 — 输入框草稿一键改写,不满意可撤回
- 💬 语音识别 — 说完自动停,云端 / 本地双引擎离线可用,识别结果填入草稿
✨ 两大核心功能
1. 提示词增强(✨)
输入框工具行的 ✨ 按钮触发一次独立 LLM 调用,直接改写当前草稿;可继续优化、可撤回、增强中可取消。
- 一键增强 — ✨ 按钮触发独立 LLM 调用,直接替换草稿;可继续优化、可撤回、增强中可取消
- 5 种优化模式 — 基础(直发)/ 轻量(结合上一轮对话参考)/ 标准(规则 + 检索)/ 专家(任务分析 + 全量检索)/ 一键发布(生成完整开发规格)
- 记忆开关 — 开启后,发送前的多轮「优化→修改→再优化」累积为记忆链,下一轮代入历史并感知修改方向;发送消息即清空,关闭后完全停止读写
- 模型链 — 按序尝试多个模型,可增删改序、开关思考、行内连通性测试
2. 语音识别(💬)
输入框旁的 🎤 录音按钮开始说话,识别(云端 Qwen3-ASR / 本地离线 SenseVoice 双引擎)→ 可选规整(去口水词)→ 填入草稿 → 可一键优化。说完停顿自动停止(VAD 静音检测),录音仅内存中转不落盘。
- 双引擎 — 云端 Qwen3-ASR / 本地离线 SenseVoice(框架 + 可选下载,发布物精简)
- 说完自动停 — VAD 静音检测,无需手动停止(最长 60 秒自动结束)
- 快捷键唤醒 — 可录制全局快捷键,点按 / 长按双触发
- 文本规整 — 识别结果可选经基座 LLM 规整,去口语化
- 自动增强 — 开启后识别填入草稿即自动触发提示词增强
🔧 其他能力
- 🌐 多语言 — 按钮与文案跟随 DSH 界面语言(中文 / English)
🚀 安装
dsh plugin --profile web add github:Fishsb/dsh-prompt-enhancer#v3.4.0
安装后重启 DSH(dsh web),输入框工具行出现 ✨ 按钮即安装成功。
ℹ️ 版本说明:最新 tag
v3.4.0(2026-09-19)已包含 ✨ 官方槽位契约修复(Issue #8 / #10)与云端语音修复(Issue #9),上面的命令直接装该 tag。若你此前按旧说明装的是#main,按上面命令重装即可锁到已发布版本。注意:v3.4.0 起移除了插件内重启能力(更新后请手动重启 DSH),详见 release notes。需本机已装 DeepSeek Harness 且
pnpm在 PATH 中。客户端兼容性(语音识别):🎤 语音输入依赖客户端注入
inputActions.setDraft(官方 web client 已满足);第三方客户端若实现同一契约即可加载,能力集不同时语音输入自动降级(无插入能力 → 识别结果追加到草稿末尾;完全不注入 → 🎤 禁用并提示)。本地离线引擎为「框架 + 可选下载」模式:插件安装不携带/不默认下载模型;设置 → 模型配置 → 💬 语音识别 → 引擎选「本地」→ 「本地模型」区点 下载模型(SenseVoice 228MB,带进度显示),下载完成自动生效。详见 兼容性矩阵(客户端依赖边界与槽位契约)。输入框工具行(✨/🎤)客户端契约:输入框右侧按钮与错误提示挂载在会话级槽位
conversation.input.right/conversation.input.dock。官方渲染器(@deepseek-ai/dsh-client-ui-renderer≥ 0.1.2-rc.1,web 与 DSH Desktop 同源)向槽位条目注入sessionIdprop +useSession/useInput选择器 hook +inputActionsprop(不提供props.session/props.input);插件自该修复(Issue #8 / #10,commit0197ae7,自v3.4.0起随 tag 发布)起按该契约取值,并兼容旧宿主(提供props.session/props.input形态)。第三方客户端渲染器若以其它方式提供会话/输入状态,需实现同一契约(sessionId+ 上述 hooks 与 actions),✨/🎤 方可显示。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Alisa0808/vox-director
Anionex/agent-vision-toolkit
Anionex/dsh-vision-toolkit
shanliuling/dsh-image-gen
zhaoolee/notes
chiphoton/DeepSeek-Harness-Video-Director
jing-hy/picturereader