Introduction¶
When developing agents or debugging prompts in DeepSeek Harness (DSH), you often need to repeatedly adjust wording to get more precise output. Manual rewriting is not only time-consuming but also prone to deviating from the original meaning. The dsh-plugin-prompt-polish plugin adds a polish button directly to the bottom-right corner of the prompt input box, leveraging model capabilities to rewrite drafts into prompts with clearer structure and more explicit instructions in one click.
Plugin Overview¶
This is a client-side plugin maintained by developer imlida. It mounts a UI component in the input box slot to provide users with a visual polish entry point. The plugin does not depend on any build tools and is loaded through DSH’s native plugin mechanism. It supports custom polish prompts and does not pollute the context or history when performing polish operations.
Core Features¶
- One-Click Polish: Click the “✨Polish” button in the bottom-right corner of the input box, and the model will rewrite the current draft. Upon success, the entire text is replaced back into the input box.
- Undo Operation: If the draft has not been modified, you can click “↻Undo” to restore the content to its pre-polish state.
- Custom Prompts: Supports modifying the System Prompt used for polishing through the interface or configuration file to adapt to different scenarios.
- Zero Pollution: The polish process does not write to conversation history, does not consume KV cache, and is only used as a one-time completion call.
- Flexible Configuration: Supports overriding provider and model parameters through Profile patches to speed up polishing.
- State Management: The button automatically grays out and is disabled when the input box is empty, submitting, or during polishing.
Installation and Activation¶
The plugin is installed via command line. After installation, you need to register the bundles in the configuration and restart DSH.
- Run the installation command (using
desktopprofile as an example):
dsh plugin --profile desktop add https://github.com/imlida/dsh-plugin-prompt-polish
-
Manually add the plugin to the profile’s dependency list:
Edit$DSH_HOME/profiles/desktop/package.jsonand append"dsh-plugin-prompt-polish"to thedsh.profile.bundlesarray. -
Restart DeepSeek Harness.
Configuration and Usage¶
-
Modify Prompts:
The plugin generates a configuration file at$DSH_HOME/plugin-data/prompt-polish/settings.json. You can directly edit this file to modify the polish prompt. Changes take effect immediately without requiring a restart. Clicking the “⚙Settings” button in the bottom-right corner of the input box also allows you to modify or restore defaults through the interface. -
Change Models:
By default, polishing uses the current default model. To speed up the process, you can configure it in the Profile patch file ($DSH_HOME/profiles/<profile>/cordis.patch.yml):
- id: prompt-polish
config:
provider: deepseek-account
model: deepseek-flash
reasoningEffort: low
temperature: 0.3
maxTokens: 2048
Known Limitations¶
- File Reference Loss: The
@filereference chips in the draft will be replaced entirely and lost after polishing (LLM rewriting typically also breaks reference semantics). It is recommended to copy the original text before polishing. - Quality Dependency: The polish quality depends on the custom prompts and the capabilities of the selected model.
- Usage Consumption: Each polish operation consumes one model call quota.
- Update Method: Automatic updates are not currently supported. To upgrade the plugin, you need to uninstall it first and then install the new version.
Summary¶
This plugin solves the pain point of frequently optimizing prompts in DSH by integrating a lightweight polish entry point in the input box sidebar. It does not intrude into conversation history and is intuitive to operate, making it suitable for developers who need to finely polish their prompts.
- GitHub Repository: https://github.com/imlida/dsh-plugin-prompt-polish
- Community Directory: https://www.skillhub.cn/plugins/imlida/dsh-plugin-prompt-polish