Introduction¶
In the DSH Web UI, if a prompt for an AI Agent consists of only a single short requirement, it often lacks context, boundary conditions, and acceptance criteria during execution. DSH’s plugin ecosystem emphasizes that “everything is a plugin,” and the community directory is an independent site with no official affiliation with DeepSeek or Fangyuan.
dsh-prompt-enhancer is one such plugin: it adds an “Enhance Prompt” button to the DSH input box. It performs a rewrite before the draft is sent, allowing you to choose whether to adopt or reject the result.
Plugin Overview¶
dsh-prompt-enhancer is a plugin for the DSH Web UI, maintained by LCQ-1024, and licensed under the MIT License.
It solves the problem of: having an unsent draft in the input box and wanting to rewrite it into a prompt more suitable for execution by an AI Agent, without directly overwriting the original content.
Core Features¶
- Adds an “Enhance Prompt” button to the right of the model selection area in the DSH Web UI input box.
- A pure icon button with an operation tooltip on hover.
- The button is automatically disabled when the input box is empty and re-enabled when content is present.
- Displays a buffering animation upon clicking to avoid confusion about a lack of response.
- After enhancement, a comparison modal pops up: “Before Enhancement” (top) and “After Enhancement” (bottom).
- Allows selecting “Adopt” or “Reject”.
- Supports
Escto reject andEnterto adopt. - Reuses the current DSH model and credentials without saving API keys separately.
- Defaults to disabling deep thinking (
reasoningEffort: off). - Rewrites system prompts based on user intent, outputting prompts ready for direct execution by the Agent.
Installation and Uninstallation¶
If pnpm is installed on your system, run:
dsh plugin add github:LCQ-1024/dsh-prompt-enhancer
After installation, restart DSH to activate the plugin in the Web UI.
To uninstall, delete the corresponding - insert: block in cordis.patch.yml, remove the plugin directory, and restart DSH.
Typical Usage¶
-
Type the problem or requirement you want to optimize into the DSH input box.
-
Click the “Enhance Prompt” button on the right side of the model selection area.
-
Wait for the buffering state to finish.
-
View “Before / After Enhancement” in the comparison modal.
-
Click “Adopt” or “Reject”; you can also use
Enterto adopt andEscto reject.
Security and Notes¶
This plugin does not collect, store, or upload any API keys, accounts, passwords, or user data. Enhancement requests are forwarded to the currently configured model solely through the DSH local service.
Do not write API keys into this plugin’s configuration; the plugin directly reuses the model credentials configured in DSH.
The plugin is loaded and runs within the current DSH process. It is recommended to check the source code before installation and confirm that the MIT License meets your usage requirements.
If the button position changes after a DSH upgrade, you can set composerSelector, inputSelector, and sendButtonSelector on window.__dshPromptEnhancer before the plugin loads:
window.__dshPromptEnhancer = {
composerSelector: '',
inputSelector: '',
sendButtonSelector: '',
};
Specific selectors need to be adjusted according to the current DSH interface layout.
Links¶
dsh-prompt-enhancer is suitable for scenarios where short requirements in DSH need to be organized into more complete Agent prompts: enhance first, compare, and finally let the user decide to adopt or reject.
- GitHub: https://github.com/LCQ-1024/dsh-prompt-enhancer
- Directory Page Link: https://www.skillhub.cn/plugins/LCQ-1024/dsh-prompt-enhancer (Only from plugin source link; not confirmed in this round of data scraping)