Preface¶
In the DeepSeek Harness Web interface, the input box is the primary location for writing prompts. Most of the time, we enter drafts or scattered notes that lack clear task goals, constraints, or acceptance criteria. The dsh-prompt-polish plugin adds an entry point next to the model name in the input box. It utilizes the model from the current session to rewrite drafts into structured prompts and writes them directly back.
Plugin Introduction¶
This is a DeepSeek Harness Web plugin. It does not introduce new models or configurations; instead, it reuses the LLM capabilities of the current session. Through low-temperature rewriting, it transforms rough drafts into executable prompts.
Core Features¶
- Composer Button: Adds a small star button to the left of the model name in the input box.
- Status Transition: Idle (Star) -> Running (Loading) -> Completed (Undo Arrow).
- Session Model Reuse: Calls the current session’s
ctx.llm, requiring no additional model or credential configuration. - Draft Safety: Rejects drafts that are empty, contain only attachments, are excessively long, or contain reference chips; does not modify input upon failure.
- Dual Undo: Supports both native
Ctrl+Zand the button’s own undo state. - Real-time Settings: Supports configuration of enablement, intensity, temperature, token budget, etc., in settings.
- Language Follow: Outputs in Chinese for Chinese input; preserves code paths.
Installation and Enablement¶
Ensure that the DeepSeek Harness version is >= 0.1.7-rc.1.
Install using the official plugin management command:
dsh plugin --profile web add @xyavid/dsh-prompt-polish
Typical Usage¶
- Enter a draft in the DeepSeek Harness input box.
- Click the small star button to the left of the model name to polish the draft into a structured prompt with one click.
- Use
Ctrl+Zor click the button again (when it turns into an undo arrow) to revert the optimized content.
Suitable Scenarios & Notes¶
- Suitable Scenarios: Developers who need to quickly transform scattered ideas into structured task descriptions.
- Notes:
- Plugin UI text is limited to Chinese (Optimize Prompt, Cancel Optimization, Undo Optimization).
- Only handles expression-layer rewriting; does not change user intent or invent facts.
- API keys are not sent to the browser; all processing happens on the host side.
- Please review the source code and license before installation.
Summary¶
By adding a lightweight entry point next to the input box, this plugin solves the conversion problem from drafts to structured prompts. It does not alter the input content but improves readability through expression-layer polishing.