DeepSeek Harness plugin

dsh-prompt-enhancer-vinzelle

提示词增强插件:输入框注入强化/还原图标,后台调用隔离 agent 结合对话上下文与仓库知识重写提示词,替换草稿文本

Jump to install

Source facts

Repository
Vinzelles/dsh-prompt-enhancer
Latest update
Aug 20, 2026
Category
Workflow & Automation
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/Vinzelles/dsh-prompt-enhancer
Plugin: dsh-prompt-enhancer-vinzelle
Author: Vinzelles

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-prompt-enhancer

> 一句大白话丢进去,出来一份 agent 秒懂、自带参考文件清单的任务说明书——从此告别「我这个需求它怎么就是不懂」。

DSH(DeepSeek Harness)提示词增强插件。在聊天输入框右侧加两个按钮:

  • 强化 ✦:把当前草稿交给一个隔离的后台 agent——它会带上你的对话上下文、自己去仓库里 glob/grep 定位真正相关的文件——重写成结构清晰、约束明确、拿去就能用的任务提示词(末尾附经过存在性校验的「参考文件」清单),替换输入框草稿。不自动发送、不进主对话历史,改完你过目再发。
  • 还原 ↺:反悔了?一键退回强化前的原文。手动编辑过草稿或消息已发出时自动消失,不打扰。

安装

dsh plugin --profile web add github:Vinzelles/dsh-prompt-enhancer

或者直接将这句话发送给你的 DSH:

> 帮我安装 https://github.com/Vinzelles/dsh-prompt-enhancer 这个插件

装完重启 dsh web(或刷新页面),输入框右侧就能看到 ✦。

强化程度与模型

设置 → 插件 → 插件配置 → 「提示词强化」卡片:

强度效果
只做措辞与结构润色,篇幅最接近原文,不带任何文件引用
中(默认)标准优化、输出紧凑(约 ≤1.5 倍原文),参考文件只列路径
充分展开背景/步骤/验收(≤3 倍原文),参考文件带说明

还可以给强化单独指定模型(provider → model → 思考强度三级联动),不配置则跟随会话默认模型;配置即时生效,无需重启。 建议设置轻量快速的模型,避免强化消耗过多token或是耗费时间过长。

值得信任的地方

  • 零污染:强化在隔离子会话里跑完即销毁,主对话历史干干净净;子会话失败自动降级为模型直调,再失败保留原文并 toast 提示,可重试。
  • 不瞎编路径:参考文件清单逐行校验存在性,臆造路径自动剔除;没有仓库或检索零命中时静默省略该节。
  • 可中止:强化期间输入卡片盖上加载遮罩、锁定编辑;点「取消」立即中止后台子代理,草稿保持原文。

故障排查

图标不显示或行为异常时,先看诊断日志 ~/.dsh/super-injector/prompt-enhancer-diag.log——各执行阶段的信标都落在这里(slot-entry-error = 按钮组件渲染崩溃被槽渲染器静默退役,错误详情就在日志里)。快速自检:GET /prompt-enhancer 应返回 405、空体 POST /prompt-enhancer 应返回 400,说明 host 路由已注册。

开发

纯 JS(无 tsc/tsdown 依赖),构建即 src → lib 拷贝加特征校验:

bash scripts/build.sh

注入器环境内(<插件目录> 指本仓库在本机的绝对路径,调用时替换为实际路径):

dev_build_plugin {"dir": "<插件目录>"}
dev_inject_plugin {"dir": "<插件目录>"}

领域术语与行为契约见 [CONTEXT.md](CONTEXT.md),执行通道决策见 [docs/adr/](docs/adr/),10 项功能验收基线见 [docs/VERIFICATION.md](docs/VERIFICATION.md)。

License

MIT