Introduction¶
The philosophy of DSH is “Everything is a plugin”; the community directory is an independent site with no official affiliation with DeepSeek or HF.
When using DSH Web GUI, a common issue is: the draft in the input box often only contains the goal, lacking context, constraints, and output format. Manual rewriting interrupts the current session, while sending it directly might deviate from expectations. dsh-prompt-enhancement solves this step: it rewrites and supplements the current input draft into a clearer, more specific prompt, allowing you to confirm before deciding whether to fill it back into the input box.
What is this¶
dsh-prompt-enhancement is an independent “Prompt Enhancement” plugin for the DeepSeek Harness (DSH) Web GUI.
It registers a “Prompt Enhancement” button in the bottom row of the input box and to the left of the model selector. Upon clicking, the plugin invokes the currently selected model via the host-side /api/prompt-enhance route to perform a direct completion, rewriting and expanding the current prompt draft.
The enhanced result will not be sent automatically; instead, it is displayed in a popup window, and you decide whether to replace the input box.
GitHub repository address:
https://github.com/Ackerman0/Dsh-Prompt-Enhancement
Core Features¶
- Registers a “Prompt Enhancement” button in the bottom row of the input box and to the left of the model selector.
- Invokes the currently selected model via the host-side
/api/prompt-enhanceroute for direct completion to rewrite and expand the current prompt draft. - Falls back to a local intent rewriting engine when the LLM or network is unavailable; uses built-in templates when GitHub is unreachable.
- Displays enhanced results in a popup window; allows continued editing, copying, re-enhancing, closing, or replacing the input box without auto-sending.
- Registers an independent “Prompt Enhancement” section in the “Settings” navigation bar, including an on/off switch, with state persisted in
settings.yaml. - Writes diagnostic information such as slot registration, mount success/failure, and rendering errors to
prompt-enhance.diagnostics.
Installation and Activation¶
First, obtain the plugin source code, enter the plugin directory, and execute:
dsh plugin --profile web add link:$(pwd)
After installation, you need to completely restart dsh. The host only reads the plugin manifest at startup; therefore, after restarting, the “Prompt Enhancement” button will appear in the bottom row of the input box, and an independent “Prompt Enhancement” section will appear in the “Settings” navigation bar.
If the Web settings switch shows “Settings temporarily unavailable”, the host needs to expose the prompt-enhance namespace, or directly edit prompt-enhance.enabled in settings.yaml.
Typical Usage¶
- Write a draft in the input box and click the “Prompt Enhancement” button.
- The popup shows “Analyzing and enhancing prompt…”, and the current model returns the rewritten prompt directly (within seconds).
- You can continue editing in the popup; if the content in the input box is changed during this time, click “Re-enhance” to rerun with the latest content.
- Click “Replace Input Box” to fill back the draft (without sending), or “Copy” / “Close” to keep the original input unchanged.
- The switch in “Settings → Prompt Enhancement” can be used to enable/disable the plugin at any time.
Applicable Scenarios and Notes¶
Suitable for scenarios where you want to rewrite and expand the current prompt draft in DSH Web GUI, confirm before filling it back, and avoid auto-sending.
The enhancement model uses the current default model. Direct call parameters are temperature 0.7, maxTokens 1200, and a 60s timeout; it automatically falls back to local rewriting after timeout.
When the LLM or network is unavailable, it falls back to the local intent rewriting engine. When GitHub is unreachable, it uses built-in templates; the offline fallback path may prompt “GitHub content fetch failed”, indicating that this enhancement was completed using local templates.
The plugin does not touch or store any keys; API Keys go through DSH’s own model credential configuration.
The plugin will load into the dsh host and run alongside the Web GUI. You should check the source code and license before installing; the license is MIT.
Conclusion¶
dsh-prompt-enhancement places prompt enhancement next to the input box: view the enhanced result first, then decide whether to replace the original draft without interrupting input or auto-sending.
Repository address:
https://github.com/Ackerman0/Dsh-Prompt-Enhancement
Directory Page URL: Current verified materials do not provide this information.