LCQ-1024/dsh-prompt-enhancer

Plugin插件 Native原生 ⭐ 3 MIT Prompts & Skills提示词与技能

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,卸载也只需删除对应配置和目录即可。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 执行的提示词。

安装方式

方式一:本地目录安装

  1. 将本项目复制到 DSH profile 的插件目录:

    ~/.dsh/profiles/web/node_modules/dsh-prompt-enhancer
    

    Windows 示例:

    C:\Users\<用户名>\.dsh\profiles\web\node_modules\dsh-prompt-enhancer
    
  2. 编辑 ~/.dsh/profiles/web/cordis.patch.yml,追加:

    - insert:
        - id: dsh-prompt-enhancer
          name: 'dsh-prompt-enhancer'
    
  3. 完全退出 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 服务。

使用方法

  1. 在 DSH 输入框输入想优化的问题或需求;
  2. 点击模型选择区域右侧的 ✨ 按钮;
  3. 等待缓冲弹窗结束;
  4. 在对比弹窗中查看「增强前 / 增强后」;
  5. 点击「采用」或「拒绝」。

配置项

在 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 本机服务转发给当前已配置的模型。

← 上一个 Prev dsh-imggenerate 下一个 Next dsh-moyan →