DeepSeek Harness plugin

dsh-prompt-polish

Composer toolbar button that rewrites your prompt via the connected LLM (balanced, concise, detailed, or code).

Jump to install

Source facts

Repository
JoukoPuro/dsh-prompt-polish
Latest update
Aug 14, 2026
Category
UI Enhancements
GitHub stars
4
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/JoukoPuro/dsh-prompt-polish
Plugin: dsh-prompt-polish
Author: JoukoPuro

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.mdSource · read only
README language

dsh-prompt-polish

English | 中文

A DeepSeek Harness (DSH) plugin that adds a ✨ sparkle button to the web composer's tool row. Click it, pick a rewrite style, and the already-connected LLM rewrites your draft prompt to be more professional and easier for an AI to understand — then replaces the draft so you can review before sending.

  • Icon-only button — a sparkle glyph in the composer tool row; no text,

tooltip gives the full description.

  • Four rewrite styles — balanced / concise / detailed / code-oriented.
  • Multi-language UI — menu copy follows your browser language (zh, en, ja,

ko, fr, de, es, pt, ru, it, tr, vi; falls back to English).

  • Uses your connected model — resolves the current default agent model

(agentDefaultModel), or an explicit provider/model from config.

Requirements

  • DeepSeek Harness (@deepseek-ai/dsh) web profile running, with a model

adapter configured (e.g. the DeepSeek provider with an API key in Settings).

Install

# from a checkout of this repository (or the directory containing it)
dsh plugin --profile web add ./dsh-prompt-polish

Then restart dsh web so the profile picks up the new bundle:

dsh web

Open the web UI, type a draft, and click the sparkle button in the composer tool row.

Configuration

The plugin accepts optional config in the profile's cordis.patch.yml (user layer, applied after the bundle layer):

- id: prompt-polish
  config:
    provider: deepseek-official   # explicit route (optional)
    model: deepseek-v4-flash      # must be paired with provider
    style: balanced               # default rewrite style: balanced | concise | detailed | code
    maxTokens: 2048               # output cap for the rewrite call
    # system: '...'               # custom rewrite instruction (replaces the built-in per-style prompts)

Without provider/model, the plugin uses agentDefaultModel.currentSelection() — the same default model the session uses.

How it works

HalfFileRole
Hostlib/index.jsRegisters POST /prompt-polish on the web server; streams one LLM rewrite via ctx.llm
Browserlib/client.jsRegisters the sparkle button into conversation.input.right; opens a style menu; posts the draft and replaces it with the polished text

The bundle's package.json declares both faces of the dual-face plugin:

  • dsh.bundle — the profile patch layer (cordis.patch.yml) that inserts the

prompt-polish loader row.

  • dsh.client — the web boot row; client-modules serves lib/client.js at

/plugins/dsh-prompt-polish/client.js.

Development

Edit lib/index.js (host) and lib/client.js (browser). The browser bundle is a hand-built closure-factory artifact (window.__ModuleLoader__.load({ id, factory })) — keep externals limited to the platform modules (react, @deepseek-ai/dsh-client-ui-primitives) and inline everything else, matching the loader's module-table rules.

Verify on a scratch port before touching the live profile:

dsh web --port 3099
curl -s http://127.0.0.1:3099/plugins/dsh-prompt-polish/client.js | head
curl -s -X POST http://127.0.0.1:3099/prompt-polish \
  -H 'content-type: application/json' \
  -d '{"text":"read a.csv and sort by b","style":"code"}'

License

MIT