Introduction¶
When conversing with models in DSH, many users are accustomed to writing a colloquial thought in the input box first, expecting the model to “guess the intent.” These drafts often lack background, constraints, and output formats, requiring several rounds of back-and-forth editing before they are usable. Another approach is to write a complete prompt in an external document and paste it, but this becomes disconnected from the current session and draft.
Here we introduce the community plugin dsh-prompt-polish (maintainer LMQ00): it hands rough text to the model on the Web client side to rewrite it into a more standardized prompt. It previews the result in a floating layer above the input box and only writes to the input box after the user clicks “Adopt,” and it never auto-sends. The rewriting process uses a Host private route, so neither the user’s original text nor the standardized result is written to the session log.
What is this¶
dsh-prompt-polish is a client-side plugin for DeepSeek Harness (DSH): categorized as a client plugin, with a current GitHub star count of 0. In one sentence: It rewrites rough prompts into standardized prompts, previews them in an overlay for confirmation, and writes them to the input box (without auto-sending).
Repository: https://github.com/LMQ00/dsh-prompt-polish
Community Directory Page: https://www.skillhub.cn/plugins/LMQ00/dsh-prompt-polish
The implementation is divided into a Host side (index.js, export function apply(ctx)) and a Client side (client.js, dsh.client.platform = web). The license is MIT; the version in package.json is 0.2.0.
Core Features¶
Transcription and Preview¶
- Supports the slash command
/polish, and also supports clicking the button on the input box toolbar (located to the left of the model selector). - The transcription result is displayed in a floating layer above the input box; only clicking “Adopt” will replace or write the content into the input box.
- When the model deems information insufficient, it asks follow-up questions for a maximum of 3 rounds; the form of the follow-up options aligns with the DSH built-in question component.
- Output language follows input language; the plugin does not provide language-related configuration options.
Invocation Methods and Draft Behavior¶
| Invocation | Rough Text Used | Input Box Draft |
|---|---|---|
/polish help me write a login page |
Command argument text | Unchanged |
/polish (draft not empty) |
Current draft | Unchanged, replaced only upon “Adopt” |
/polish (draft empty) |
None | Overlay prompts “Write something first”, model not called |
Design Constraints (v1)¶
- Never auto-send:
inputActions.submitis unused; sending is always triggered by the user. - User text not in session log: Transcription is completed via the Host private route
POST /polish/translate; neither the rough text nor the standardized prompt is appended to the session. - No Config declared in v1:
MAX_ROUNDS = 3,TIMEOUT_MS = 60000, and the model takesctx.agentDefaultModel, all of which are code constants withinindex.js.
Dependencies¶
The README states it is zero-dependency: index.js has no bare imports; client.js only queries require('react') via the module loader (browser module table, not ESM package resolution).
Installation and Activation¶
The installation form in the materials is: mounted into the web profile via link:, with Loader behavior include:polish. For specific profile editing steps, refer to docs/development.md in the repository; for setting up the environment, installing the bundle, and confirming effectiveness, it is also recommended to follow that document and docs/runbook.md.
In package.json, dsh.client configures platform: web, immediately: true, and injects client scripts into @deepseek-ai/dsh-client-ui-conversation; the bundle is patched via ./cordis.patch.yml.
Note: The plugin runs under the current DSH process permissions. You should review the source code and the MIT License yourself before installing or linking. The community directory site has no official affiliation with DeepSeek / High-Flyer and is not an official app store.
Typical Usage¶
First, use arguments to transcribe; the existing draft in the input box remains unchanged:
/polish help me write a login page
When there are no arguments, the current draft in the input box is used as the rough text (if the draft is empty, it only prompts and does not call the model):
/polish
You can also skip the command and directly click the polish button on the input box toolbar. After the preview is satisfactory, click “Adopt” to write it back to the input box, and then decide whether to send it yourself.
Repository self-test command (zero dependencies, node --test):
npm test
Suitable Scenarios and Notes¶
Suitable for: People who frequently write prompts in DSH Web, want to organize colloquial requirements into versions with clearer structure and constraints, and want manual confirmation before writing.
Not suitable or need to know:
- You need to keep the transcription process or results in the session history—this plugin intentionally does not write to the session.
- You need to change the number of follow-up rounds, timeout, or default model—v1 has no Config, so you can only modify source code constants or wait for future versions.
- Non-Web client environments—the plugin declares
webplatform client capabilities.
When issues occur (e.g., button missing, overlay misalignment, modifications not taking effect), you can refer to the repository’s docs/runbook.md.
Conclusion¶
dsh-prompt-polish condenses “writing standardized prompts” into a single step within the client: triggered by command or button, previewed in an overlay, written to the box after adoption, not auto-sent, and not entering the session log. The DSH ecosystem emphasizes “everything is a plugin”; if you want to polish prompt drafts on the Web side, you can check the instructions and source code from the directory page or GitHub.
- Directory Page: https://www.skillhub.cn/plugins/LMQ00/dsh-prompt-polish
- GitHub: https://github.com/LMQ00/dsh-prompt-polish