Vai al contenuto principale
H

dsh-prompt-booster

hanyu-me/dsh-prompt-booster

Prompt booster for the composer. Left-click the composer button and the draft is lightly polished and replaced in place (undoable, no popup). Right-click opens a menu with 8 built-in modes plus your own, where each mode's template can be edited or new modes added (saved on the host), and the model used for the rewrite is picked from the live dsh model list. Other modes show a before/after preview. Based on rongxingda/dsh-prompt-enhance (Apache-2.0); do not install both — both add a composer button and share Ctrl+Alt+E, so disable one of them if the upstream is present.

Installazione

dsh plugin --profile web add github:hanyu-me/dsh-prompt-booster

README

dsh-prompt-booster

A prompt booster for the DeepSeek Harness (dsh) web GUI. A small button next to the composer: left-click polishes the draft and puts it straight back, right-click picks a boost mode, edits a mode's template, or chooses which model does the rewrite.

English | 简体中文

This plugin is a modified version of dsh-prompt-enhance 0.3.2 by rongxingda (Apache-2.0). The preview panel, undo, draft guards, rate limits and model-call plumbing come from the original; this project adds boost modes, the mode editor, boost-model choice and the in-place quick boost. See the CHANGELOG and NOTICE for what changed.

Right-click menu: boost modes and the boost model

Features

  • Left-click: quick boost, applied in place. No popup: the button spins, the result replaces the composer text, and an Undo chip appears above the composer. The quick boost is a light touch: it smooths the wording and adds a few details the draft or conversation clearly implies, stays within about 1.5x the original length, and adds no role line, headings, steps or acceptance criteria. Click again while it runs to cancel; if you edit the draft while waiting, the result opens in the preview instead of overwriting your edits.
  • Right-click: pick a boost mode. Eight built-in modes: quick boost, concise, structured, fill in details, coding task, research, academic writing, rewrite in English. Every mode except the quick boost shows an original / result preview first, then you apply, copy or cancel. A long press (touch) or the keyboard context-menu key also opens the menu.
  • Edit mode templates, add modes. The ✎ next to each mode (or → on a focused row) edits its name and template; + Add a mode at the end creates a new one. Edited built-ins can be restored to default; created modes can be deleted. Modes are saved on the dsh host, so every browser and the /boost command share them.
  • Choose the boost model. Boost model at the bottom of the menu lists the models dsh can currently route to (the same live list as dsh's own model picker). It only affects boosting, never the chat model. The default, Follow default, uses the plugin settings pair → the current session's model → the dsh default model.
  • Slash command. /boost [@mode] text, e.g. /boost @coding fix the login page error. The result shows in the command plane and never enters the conversation history.
  • Follows the dsh theme. Colors, radii and shadows come from dsh's own design tokens, so light/dark follows dsh's appearance setting.
Mode editorPreview panel (dark)
Editing a mode templatePreview panel

Install

Requires dsh >= 0.1.1-rc.2 < 0.3.0 (tested on 0.2.1-rc.3).

From GitHub (the built lib/ is committed, so nothing is compiled on your machine):

dsh plugin --profile web add github:HanYu-me/dsh-prompt-booster
# the desktop app's profile is called "desktop": dsh plugin --profile desktop add github:HanYu-me/dsh-prompt-booster

A prebuilt dsh-prompt-booster.tgz is also attached to each release. Restart dsh after installing.

If dsh-prompt-enhance is installed too, disable one of them: both add a composer button and share the default shortcut (Ctrl+Alt+E).

Uninstall: dsh plugin --profile web remove dsh-prompt-booster, then restart dsh.

Usage

ActionResult
Left-click ✨ / Ctrl+Alt+EBoost with the default mode (quick boost by default: applied in place, undoable)
Right-click ✨Open the mode menu
Click a mode in the menuBoost with that mode
✎ next to a mode, or → on a focused rowEdit its name and template (⌘/Ctrl+Enter saves, Esc goes back)
+ Add a modeCreate a mode
Boost modelChoose the model used for boosting

A mode's template is appended after the base rewrite rules. Whatever it says, the rewrite keeps your intent, invents nothing, and outputs only the rewritten prompt. Except for the quick boost, the base rules add structure (role, steps, acceptance criteria); to keep a mode short, say so in its template, e.g. "keep it brief, no steps or acceptance criteria".

Settings

Edited on dsh's plugin configuration page (prompt-boost); changes apply to the next boost without a restart.

FieldDefaultDescription
enabledtrueMaster switch
quickApplytrueThe quick boost replaces the draft directly; off = preview like the other modes
defaultDirectiongeneralMode id used by left-click and the shortcut
customDirectionsemptyModes defined as text, one id | name | instruction per line (modes saved from the menu editor take precedence)
provider + modelemptyFixed model route (fill both); a model picked in the menu wins over it
temperature0.3Sampling temperature
maxOutputTokens2048Output budget of one boost
maxInputChars12000Draft length cap; longer drafts are refused, never truncated
timeoutMs60000Deadline of one boost
systemPrompt / strategyModeempty / replace-defaultCustom base rewrite rules and how they combine with the built-in ones
shortcutctrl+alt+eKeyboard shortcut; empty disables it
streamingtrueStream the result into the preview panel
contextAwaretrueUse the last few turns of the conversation to resolve references
contextMaxMessages / contextMaxChars8 / 4000How much conversation it may use
maxConcurrent / rateLimitPerMinute2 / 10Concurrency and per-minute caps

Data and privacy

  • Every boost is one model call that sends the draft to the chosen model; with contextAware on it also sends the last few turns of the conversation. Turn contextAware off when the conversation holds anything sensitive.
  • Modes saved from the editor live on the dsh machine in ~/.dsh/prompt-boost/directions.json (override with DSH_PROMPT_BOOST_DIRECTIONS_FILE).
  • The boost-model choice is stored in the browser (localStorage).
  • The plugin's HTTP routes only accept loopback requests.

Development

git clone https://github.com/HanYu-me/dsh-prompt-booster.git
cd dsh-prompt-booster
npm install
npm test          # unit, real-HTTP and component suites
npm run typecheck
npm run build     # lib/index.js (host half) + lib/client.js (browser half)
dsh plugin --profile web add link:$PWD

Browser-half changes need a rebuild and a page reload; host-half changes need a dsh restart. Commit lib/ together with the source, because GitHub installs are not built on the user's machine.

License

Apache-2.0.

  • Original work: dsh-prompt-enhance © rongxingda, Apache-2.0.
  • Modifications © 2026 Yu Han, also released under Apache-2.0.

Attribution and the list of changes are in NOTICE. Thanks to rongxingda for the original implementation.

Plugin correlati