LCQ-1024/dsh-prompt-enhancer
Project Overview项目介绍
This is a native web UI plugin built exclusively for DeepSeek Harness (DSH). It adds a "✨ Enhance Prompt" button to the right of the model selection area in DSH's input box, which rewrites unsent user drafts into prompts better structured for AI agent execution. The plugin appears as just an icon button, shows tooltips on hover, automatically disables when the input box is empty, and displays a loading animation after clicking to avoid confusion about whether the action is working. It reuses DSH’s existing model credentials and does not require users to add a separate API key for this plugin.
To use the plugin, you first type your question or requirement into DSH’s input box, then click the ✨ button next to the model selector. After the loading process finishes, a popup window will appear showing the original draft above and the enhanced prompt below, with options to accept or reject the change. This workflow is designed for DSH users who want to get more consistent, high-quality results from their AI agent by standardizing prompt structure. It supports keyboard shortcuts: Esc to reject and Enter to accept the enhanced prompt, which speeds up interaction and makes the workflow smooth even for frequent users.
You can install the plugin via the DSH CLI command dsh plugin add github:LCQ-1024/dsh-prompt-enhancer, which automatically registers the plugin after you restart DSH’s web service. It also supports manual installation by copying the project to your DSH profile’s plugin directory and editing the cordis.patch.yml file. You can customize configuration options like model provider, model name, reasoning effort, maximum tokens, timeout, and maximum input characters. The plugin is released under the MIT open source license and does not collect, store, or upload any user data or credentials. All enhancement requests go through DSH’s local service to the configured model.
这是一款专为 DeepSeek Harness(DSH)打造的原生 Web UI 插件,会在 DSH 输入框的模型选择区域右侧新增一个「✨ 增强提示词」按钮,功能是将用户未发送的输入草稿改写成更适合 AI 执行任务的提示词。插件仅展示图标按钮,鼠标悬停会显示操作提示,输入框为空时自动禁用按钮,有内容后恢复可用,点击后显示缓冲动画避免用户误以为无响应。
用户使用时,先在 DSH 输入框输入需要优化的问题或需求,点击增强按钮等待缓冲完成后,即可在弹出的对比窗口中查看增强前后的提示词内容,再选择「采用」或「拒绝」结果。插件支持 Esc 快捷键拒绝、Enter 快捷键采用,适合希望优化提示词结构、获得更稳定 AI 执行效果的 DSH 用户使用。
插件可通过 DSH 插件命令一键安装,也支持本地目录手动安装,允许用户自定义配置模型提供商、模型、推理深度、最大 token 数、超时时间等参数。插件遵循 MIT 开源协议,不会收集存储用户数据,所有请求都通过 DSH 本机服务转发,无需额外填写 API Key,卸载也只需删除对应配置和目录即可。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-prompt-enhancer(LCQ-1024/dsh-prompt-enhancer)
仓库:https://github.com/LCQ-1024/dsh-prompt-enhancer
本站详情页:https://www.yhbd.top/plugins/lcq-1024-dsh-prompt-enhancer/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-08-18 · 主语言 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 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 add github:LCQ-1024/dsh-prompt-enhancer
把 LCQ-1024/dsh-prompt-enhancer 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-prompt-enhancer
DeepSeek Harness(DSH)Web UI 插件:在输入框模型选择区域右侧增加一个「✨ 增强提示词」按钮,把未发送的草稿改写成更适合交给 AI Agent 执行的提示词。
功能说明
- 纯图标按钮,悬停显示操作提示;
- 输入框为空时按钮自动禁用,有内容后恢复;
- 点击后显示缓冲动画,避免误以为无响应;
- 增强完成后弹出对比弹窗:上方「增强前」、下方「增强后」;
- 可选择「采用」或「拒绝」;
- 支持
Esc拒绝、Enter采用; - 复用 DSH 当前模型与凭据,不额外保存 API Key;
- 默认关闭深度思考(
reasoningEffort: off),速度快、省 token; - 系统提示词按用户意图分类改写,输出可直接交给 Agent 执行的提示词。
安装方式
方式一:本地目录安装
将本项目复制到 DSH profile 的插件目录:
~/.dsh/profiles/web/node_modules/dsh-prompt-enhancerWindows 示例:
C:\Users\<用户名>\.dsh\profiles\web\node_modules\dsh-prompt-enhancer编辑
~/.dsh/profiles/web/cordis.patch.yml,追加:- insert: - id: dsh-prompt-enhancer name: 'dsh-prompt-enhancer'完全退出 DSH(含托盘)后重新打开,刷新页面。
方式二:使用 DSH 插件安装命令(推荐)
如果系统已安装 pnpm:
dsh plugin add github:LCQ-1024/dsh-prompt-enhancer
或指定 profile:
dsh plugin --profile web add github:LCQ-1024/dsh-prompt-enhancer
仓库根目录已包含 cordis.patch.yml,package.json 也已声明 dsh.bundle。安装时 DSH 会自动读取补丁并注册插件,无需手动编辑 cordis.patch.yml。安装后重启 DSH Web 服务。
使用方法
- 在 DSH 输入框输入想优化的问题或需求;
- 点击模型选择区域右侧的 ✨ 按钮;
- 等待缓冲弹窗结束;
- 在对比弹窗中查看「增强前 / 增强后」;
- 点击「采用」或「拒绝」。
配置项
在 cordis.patch.yml 的插件行中可加 config:
- insert:
- id: dsh-prompt-enhancer
name: 'dsh-prompt-enhancer'
config:
provider: deepseek-official
model: deepseek-v4-pro
reasoningEffort: off
maxTokens: 4096
timeoutMs: 120000
maxInputChars: 200000
| 配置项 | 默认值 | 说明 |
|---|---|---|
provider |
空 | 留空自动读取 settings.yaml 的 agent-default-model.provider |
model |
空 | 留空自动读取 settings.yaml 的 agent-default-model.model |
reasoningEffort |
off |
off 快速省钱;DeepSeek 还支持 high / max |
maxTokens |
4096 |
增强输出最大 token 数 |
timeoutMs |
120000 |
请求超时时间(毫秒) |
maxInputChars |
200000 |
允许的最大草稿字符数 |
systemPrompt |
内置 | 一般不需要修改 |
技术入口
- 服务端入口:
index-v5.js - 客户端入口:
client-v3.js
注意事项
不要在本插件配置中写入任何 API Key;插件直接复用 DSH 已配置的模型凭据。
若 DSH 升级后按钮位置变化,可在插件加载前设置:
window.__dshPromptEnhancer = { composerSelector: '[data-slot="conversation.composer.bar"]', inputSelector: 'textarea', sendButtonSelector: '', };卸载:删除
cordis.patch.yml中对应- insert:块,删除插件目录,重启 DSH。
安全说明
本插件不收集、不存储、不上传任何 API Key、账号、密码或用户数据。增强请求仅通过 DSH 本机服务转发给当前已配置的模型。
titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate