DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
P

dsh-prompt-expander

Prompt Expander

One-click prompt expansion for the DSH composer: turn a one-line draft into a full specification, press again to restore the original. 一键把草稿扩写成完整规格,发送后按钮自动复位,再点即可增强新草稿。

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:hzys7/dsh-prompt-expander#4d0ea275c6b526650a3b45cb40f8456df8f0c951
READMECompatibilityVersions

Compatibility and provenance

Prompt Expander is published as dsh-prompt-expander and currently resolves to version 0.1.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/27/2026

Versions

0.1.1stable
10/27/2026
0.1.0stable
10/24/2026

Related plugins

Loading related plugins…

Latest
0.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/27/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseExperimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundleOptional bundle that adds Schedule, its task page, and time context to the Web compositionWeb All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Ab Ocrdsh-ab-ocr--- description: "The out-of-tree ocr tool: recognizes a scanned PDF or image page by page, merges the pages in order only after the last one, and saves one Markdown document with the heading levels the model decided." kind: "package-reference" ---

README

dsh-prompt-expander

输入框旁的一键「增强提示词」按钮:点一下把一句草稿扩写成完整规格,再点一下还原原文。

A one-click "enhance prompt" button beside the DSH composer: press once to expand a rough draft into a complete specification, press again to restore the original.

它做什么

  • 读取你输入框里的草稿,交给当前默认模型扩写为规格:一行目标 + 3–6 条可核对的编号要求
  • 草稿涉及已有数据/文件/流程时,会自动补上「先检查再改、保住不能丢的、完成后验证、汇报改动」
  • 结果写回输入框,原文保留在内存里
  • 再点一次 → 恢复原文
  • 增强后的提示词一发出(发送/排队),按钮立刻回到「待增强」:下一篇草稿点一次就能增强, 不需要先点「恢复」
  • 增强后你手动改过文字 → 再点不会覆盖你的编辑,而是忘掉旧原文

按钮位置在输入框右下角、模型选择器左边。状态一眼可辨:

状态外观
待增强灰色 ✨
正在增强呼吸闪烁
已增强蓝色 ✨,悬停显示「恢复原提示词」
出错红色 ✨,悬停显示具体原因

增强力度

默认 expand(扩写)。另有 standard(忠实精修,不加内容)与 concise(压缩到更短), 可在请求体里传 mode 指定:

POST /prompt-expander/enhance
{ "text": "你好", "mode": "standard" }   // mode 省略 = expand

expand 会推断并补齐合理的验收标准,因此可能加入你原文没说的要求——这是设计意图, 不是 bug;不想要的话用 standard。

安装

需要 DSH 0.2.x(在 0.2.1-rc.2 上验证)。

# web profile
dsh plugin --profile web add dsh-prompt-expander

# 其他 profile 换成对应名字
dsh plugin --profile <name> add dsh-prompt-expander

桌面版(DSH Desktop)请在应用内的 设置 → 插件 里安装,或用插件市场。

安装后重启 DSH(宿主插件需要重启才会加载)。

工作原理

两层结构,和 DSH 的插件约定一致:

  • 宿主半边 lib/index.js:注册一个 POST /prompt-expander/enhance 路由。收到草稿后调用 ctx.llm.prepareCall(...) 请求当前默认模型,把流式结果聚合返回。
  • 浏览器半边 lib/client.js:注册到 conversation.input.right 插槽(模型选择器左侧), 通过 conversation.input.for(actx) 拿到输入框 shell,用 draftSnapshot 读、 setDraft 写。

按钮状态跟着草稿走

输入框的 shell 会发布一份输入状态(shell.state,composer 就是从它渲染的)。插件订阅它, 而不是只等按钮被点:一旦草稿不再是插件写进去的那份(发送会清空输入框,编辑会改写它), 就丢掉原文记忆、按钮回到「待增强」。插件自己 setDraft 引发的同步发布不算数,否则刚增强 完就会把原文记忆清掉。

推理内容不会混进结果

deepseek-flash 这类模型默认会把思考过程写进正文。插件在 prepareCall 时传 reasoningEffort: 'off',DeepSeek 适配器会据此发出 thinking: { type: 'disabled' }, 思考就不会污染正文。另有 finalizeText() 作为兜底清洗,覆盖不听话的模型。

已知限制

  • 依赖 DSH 客户端内部接口(conversation.input.for、draftSnapshot),跨大版本可能失效。 engines.dsh 已锁定 <0.3.0。
  • 增强质量取决于你配置的默认模型。
  • 长草稿上限 32 KB,单次调用超时 90 秒。
  • 问候、感谢、纯确认这类不含任何请求的草稿会原样返回(提示「没有需要扩写的内容」), 不会凭空补出一个任务。

调试

若按钮报「拿不到输入框」,插件会把运行时诊断写到 ~/.dsh/prompt-expander-diag.log(每次挂载/点击/状态复位一行 JSON)。

License

MIT