DSH Plugins Marketplace

DSH Plugins

Plugins

/

Terminal & Clients

/

dsh-prompt-polish

g

dsh-prompt-polish

Manifest valid

Prompt polish ✨ — one-click rewrite of rough input into a structured professional prompt for DeepSeek Harness WebUI

UI (client)hasBundlePatch

dsh-prompt-polish

A DeepSeek Harness WebUI plugin that adds a one-click Prompt Polish ✨ button to the input toolbar. Rewrite a rough, fragmented request into a structured, professional prompt — written straight back into the input box.

GitHub topic: dsh-plugin

What it does

  1. You type a rough request into the input box.
  2. Click ✨ 润色 at the right end of the toolbar.
  3. The plugin calls your configured LLM (DeepSeek by default) to rewrite the request into a clear, actionable prompt.
  4. The polished text replaces your draft. Review it, then send normally.

Polish is non-destructive and reviewable — nothing is sent automatically.

Install

If your profile uses dshmarket, install from the marketplace UI. Otherwise:

dsh plugin --profile web add dsh-prompt-polish

Then restart the WebUI so the bundle is loaded.

Building from source (e.g. while developing): the published package ships pre-built lib/ artifacts. If you must build yourself, run pnpm install && pnpm build (uses tsdown).

Configure

The plugin is mounted via its cordis.patch.yml. Override defaults by supplying config in the patch, or pass provider/model per request from the client:

- insert:
    - id: prompt-polish
      name: 'dsh-prompt-polish'
      config:
        provider: openrouter
        model: deepseek/deepseek-v4-flash-0731
        maxTokens: 2000
SettingDefaultDescription
provider(from request or unset)LLM provider to use for polish
model(from request or unset)Model id to use for polish
maxTokens2000Output token cap per polish pass

If neither the config nor the request supplies provider/model, the request is rejected (no model route available) — configure one of the two so polish is always routable.

Endpoint

POST /dsh-prompt-polish/polish (WebUI server, same-origin only)

{ "text": "..." }

Response:

{ "ok": true, "text": "the rewritten prompt", "truncated": false, "provider": "...", "model": "..." }
  • text — the polished prompt.
  • truncated — true when the model hit the token cap; the text is still usable and is written back into the box.
  • On failure: { "error": "..." } with 4xx.

The endpoint enforces same-origin (Origin must match Host) to prevent cross-site abuse.

Architecture

  • Server (src/index.ts) — registers the HTTP route, streams the LLM via ctx.llm.stream + BlockAssembler, and returns the rewritten text. Peer deps: @deepseek-ai/cordis, @deepseek-ai/dsh-llm.
  • Client (src/client/index.tsx) — registers a button on the conversation.input.right slot, fetches the endpoint, and writes back via inputActions.setDraft. CSS is self-contained (one injected <style> tag) so the browser bundle builds with a plain tsdown config.

Both halves build with tsdown. The client bundle is emitted in DSH's window.__ModuleLoader__.load({ id, factory }) format and externalizes react / react/jsx-runtime to the browser module table.

License

MIT. See LICENSE.

Comments

Loading…

Similar plugins

dsh-prompt-enhance

by rongxingda

Prompt enhancement plugin for the DeepSeek Harness web GUI: one-click rewrite of the composer draft into a structured prompt, with preview, fill-back, and undo.

UI & ExperienceManifest valid

★ 31

↓ 1.4k/wk

Apache-2.0

TypeScript

Oct 22, 2026

dsh plugin --profile web add dsh-prompt-enhance

by imlida

在 DeepSeek Harness 提示词输入框右下角加一个润色按钮:一键让模型改写草稿,润色用的提示词可随时修改

Development & InfrastructureManifest valid

★ 0

MIT

JavaScript

Oct 7, 2026

dsh plugin --profile web add dsh-plugin-prompt-polish

by SiYue-ZO

A safe, native prompt polishing plugin for DeepSeek Harness

Manifest valid

★ 0

MIT

TypeScript

Aug 18, 2026

dsh plugin --profile web add dsh-prompt-polisher

by yuluo554

Composer prompt-polisher button plugin for DeepSeek Harness (dsh): one-click draft rewrite, style presets, dual model path, race protection

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add dsh-prompt-polisher

by lizhi00001

将简短或模糊的指令改写为结构化 Prompt

Sessions & MessagesManifest valid

★ 0

MIT

TypeScript

Aug 24, 2026

dsh plugin --profile web add dsh-tools-plugins

by Max-Null

Draft polish for DeepSeek Harness: one-click LLM polish of your draft in the composer, rewrites it in place with session context · 草稿润色:发送前一键调用 LLM 润色草稿,结果回填输入框

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 2

↓ 429/wk

MIT

TypeScript

Oct 20, 2026

dsh plugin --profile web add @max-null/dsh-draft-polish