hoyyang/dsh-improve-prompt
输入框一键增强提示词:直接替换 + 一键撤回,带保真闸(硬事实零丢失)与长度闸(防膨胀)。DSH plugin.
Project Overview项目介绍
This is a native prompt enhancement plugin built exclusively for DeepSeek Harness (DSH). After installation, it adds a star icon button to the input toolbar of the DSH web interface, which users can click to instantly rewrite messy, colloquial draft prompts into clear, AI-agent-friendly versions that directly replace the original draft without requiring a separate preview window. To install, you can run the official DSH plugin command dsh plugin --profile web add dsh-improve-prompt, then restart the dsh web process to activate the plugin. It requires DSH version 0.1.1-rc.2 or newer to work properly.
This plugin is designed for developers who frequently work with AI coding agents and need to quickly refine rough, spoken-style task descriptions. The core workflow is straightforward: after typing your rough draft request into the input box, click the star button, wait 1 to 3 seconds for the rewrite to complete, and get a cleaned-up prompt ready for the AI agent to execute. You can undo the change and restore the original draft within 8 seconds after replacement, and switch between light and standard enhancement modes with one click to match different use cases.
dsh-improve-prompt is released under the permissive MIT open-source license, has zero runtime dependencies, and reuses DSH’s built-in model service and credential storage, so no extra API key or complex configuration is needed to get started. It includes built-in fidelity and length checks to ensure all critical details from your original draft (like file paths, code identifiers, and URLs) are preserved, and prevents the output from becoming unnecessarily long. Users can customize the prompt templates without editing any plugin code, and the plugin also exposes a local loopback HTTP API for integration with custom user scripts and tools.
这是一款专为 DeepSeek Harness 开发的原生提示词增强插件,安装后会在 DSH Web 界面的输入框工具栏添加一个星芒按钮,点击即可一键将用户输入的口语化草稿重写为更清晰、适配 AI 代理执行的提示词,直接替换原草稿,无需额外预览窗口。可通过 DSH 官方插件命令安装:dsh plugin --profile web add dsh-improve-prompt,重启 DSH Web 后就能使用。
适合需要快速整理口语化需求草稿的开发者,常规使用流程非常简单:输入需求草稿后,点击输入框旁的星芒按钮,等待 1-3 秒即可得到整理后的提示词,替换后 8 秒内支持一键撤回原文,点击按钮右侧的切换图标还能随时在轻量、标准两档位间切换,满足不同场景需求。
该插件遵循 MIT 开源协议,零运行时依赖,复用 DSH 自带的模型服务与凭据存储,不需要额外配置 API Key。插件内置保真闸和长度闸,保证草稿中的硬事实(如路径、标识符)不会丢失,同时控制输出长度不会过度膨胀,支持自定义提示词模板,还暴露了本地回环 HTTP 接口供其他脚本调用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-improve-prompt(hoyyang/dsh-improve-prompt)
仓库:https://github.com/hoyyang/dsh-improve-prompt
本站详情页:https://www.yhbd.top/plugins/hoyyang-dsh-improve-prompt/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-24 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 --profile web add dsh-improve-prompt
把 hoyyang/dsh-improve-prompt 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-improve-prompt

输入框里那颗 ✦ 按钮,点一下把你的草稿改写成 Agent 真能照着做的提示词——直接替换,可撤回,而且保证不丢东西。
安装
dsh plugin --profile web add dsh-improve-prompt
# 或直接从 GitHub 装(构建产物已随仓库提交,无需本地构建)
dsh plugin --profile web add github:hoyyang/dsh-improve-prompt
重启 dsh web,输入框工具行(发送键左侧)出现 ✦ 即成功。零配置:不需要 API Key,走 harness 自带的模型服务与凭据存储。最低 dsh >= 0.1.1-rc.2(实测 0.1.5-rc.1)。
dsh plugin --profile web remove dsh-improve-prompt # 卸载
核心功能
- 一键直替 — 点击 ✦ 后 1–3 秒内把草稿替换成更清晰、更贴 Agent 执行的版本,不弹预览、不打断输入。
- 一键撤回 — 替换后 8 秒内可恢复原文;你一旦手动编辑,撤回条自动消失,绝不覆盖你的新输入。
- 保真闸 — 机械提取草稿里的硬事实(文件路径、文件名、标识符、数字与版本、URL、
反引号代码、@引用),逐条验证改写结果里是否还在;缺失触发一次点名修复调用,仍缺则确定性回灌「保留原始细节」块——硬事实零丢失。生态里其他同类插件只在 system prompt 里写一句"请保留原文信息",没有一家去验证。 - 长度闸 — 结果超预算(标准档 2.5x、且不低于 200 字符绝对下限)时执行一次带明确字符预算的收敛调用;仍超则拒绝写回、保留原文并说明原因,堵住"一句话需求变成三十行规格书"。
- 质量凭证 — 状态条直接显示
已增强 · 保真 5/5 · 1.0x · 2.2s,结果可不可信一眼可查。 - 两档位 — 轻(≤1.2x,去废话消歧义)/ 标准(≤2.5x,结构化重述);档位记忆在本地,芯片右侧 ⇄ 一键切换。
- 斜杠命令支持 —
/bugfix <正文>的命令前缀原样保留,只把后面的正文改写成更清晰版本;只有斜杠命令没正文时按钮才禁用。 - 可取消 — 增强中再次点击 ✦ 即中断上游请求(
AbortSignal),草稿保持不动。 - 失败即原文 — 无模型 / 超时 / 空输出 / 网络失败时绝不改动你的输入,只给一句可读提示。
- 智能会话上下文 — 草稿含指代(它 / 那个 / 刚才 / it / this)或 ≤12 字无实词时自动携带最近 N 轮「你的原话 + 助手正文结论尾部」;本地正则判定,零额外调用。工具结果、注入上下文、图片、源码一律不带。
- 零配置开箱 — 不需要 API Key;可选配置项全部有默认值(见「进阶用法」),不配置也能用。
- 提示词模板可覆盖 — 行为知识全在
prompts/*.md,把同名文件放进$DSH_HOME/dsh-improve-prompt/prompts/即可替换纪律层与档位模板,不改一行代码。 - 本地 HTTP 接口 —
POST /dsh-improve-prompt/api/improve把增强能力暴露给自己的脚本与工具(仅回环)。 - 短草稿保护 — 长度预算取
max(200, 字数 × 比例),三行以内的短草稿不会被比例预算误杀(该缺陷在实机测试中发现并已修复,有 4 个测试锁死)。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate