dshbase

插件目录 / UI & Skins / dsh-prompt-boost

dsh-prompt-boost

已验证 · 实测可装 060625dfy

✓ 持续维护 2 位贡献者

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-16最近推送
跨平台平台

功能简介

优化输入内容的 DSH 插件(仿 Trae CN):模型选择器旁的 ✨ 按钮一键把输入想法改写为高质量、忠实原文、可直接执行的提示词,↩ 一键撤销恢复原文。An input-optimizer plugin for DeepSeek Harness web GUI.

✅
我们的评价
可用 — 实测通过,早期项目

优化输入内容的 DSH 插件(仿 Trae CN):模型选择器旁的 ✨ 按钮一键把输入想法改写为高质量、忠实原文、可直接执行的提示词,↩ 一键撤销恢复原文。An input-optimizer plugin for DeepSeek Harness web GUI. 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-prompt-boost — 优化输入内容

English | 中文

Trae-style input booster for the DeepSeek Harness (DSH) web GUI. A sparkle (✨) button beside the model selector rewrites your typed draft into a high-quality, faithful, directly executable prompt — and after optimization the same button turns into an undo (↩) icon to restore the original input.

Inspired by Trae CN's "优化输入内容" (optimize input) feature: type a rough idea, click the magic wand, and the composer text is rewritten into a clear, structured instruction that the AI can execute directly. If you don't like the result, click the undo icon to get your original text back — you can loop optimize ⇄ undo as often as you like.

Features

Feature Description
✨ Optimize input One-click rewrite of the current draft into a clear, structured, executable prompt
↩ Undo After a successful write-back the button becomes an undo icon; click it to restore the original input
Task-aware The optimizer detects the task type (coding, data processing, writing, analysis, research, ops, …) and organizes content accordingly
Fidelity-first Every concrete detail from your input (paths, numbers, names, commands) is kept verbatim; nothing is invented — missing key info becomes a 【请补充:××】 placeholder
Natural output Trae-style natural instruction text with numbered points — no "角色设定:/验收标准:" label headers, no JSON, no template tables
Language-locked Output always follows the input language (Chinese in → Chinese out, English in → English out)
Anti-clobber If you edit the draft while optimizing, the result is not written back and undo is not armed

Screenshots

✨ Optimize input ⏳ Optimizing ↩ Undo available
Optimize input button Optimizing Optimized, undo available

How it works

  • Host half (lib/index.js): serves POST /api/prompt-boost/optimize. It streams the optimization call through llm.stream using the deployment's default model (agentDefaultModel), applies the v6 optimizer policy, and returns { text } or { error } (90 s timeout, 8000-char input cap).
  • Browser half (lib/client.js): registers the conversation.input.right seat (tool row, right beside the model selector, before the send button), POSTs the draft, writes the result back via inputActions.setDraft, and manages the undo state machine.

Zero build: the package is plain JavaScript (ESM host + __ModuleLoader__ web bundle).

Install

Add the bundle patch to your web profile roster, e.g. in ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: prompt-boost
      name: 'dsh-prompt-boost'

with the package available to the profile's node_modules (npm/link install), then reload the DSH host and refresh the GUI.

Usage

  1. Type a rough idea in the composer, e.g. 帮我写个脚本整理下载文件夹,文件太乱了
  2. Click the ✨ button (spinner while optimizing)
  3. Review the optimized instruction in the composer, then send
  4. Not happy? Click ↩ to restore the original input and try another phrasing

Requirements

  • DSH with llm + agentDefaultModel services mounted and a configured default model
  • Browser web GUI (conversation composer)

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-prompt-boost」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:060625dfy/dsh-prompt-boost

Headless(CLI)profile:

dsh plugin --profile headless add github:060625dfy/dsh-prompt-boost

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →