hoyyang/dsh-improve-prompt 预览 preview

hoyyang/dsh-improve-prompt

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

输入框一键增强提示词:直接替换 + 一键撤回,带保真闸(硬事实零丢失)与长度闸(防膨胀)。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 接口供其他脚本调用。

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 --profile web add dsh-improve-prompt

把 hoyyang/dsh-improve-prompt 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-improve-prompt

banner

输入框里那颗 ✦ 按钮,点一下把你的草稿改写成 Agent 真能照着做的提示词——直接替换,可撤回,而且保证不丢东西。

English · Releases · 更新日志

npm downloads release dsh CI license stars

安装

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 →

← 上一个 Prev dsh-llm-commandcode 下一个 Next dsh-astock-research →