DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-prompt-polish

J

dsh-prompt-polish

Manifest valid★ 8

A DeepSeek Harness (DSH) plugin: Adds a ✨ icon button to the toolbar of the Web input box. After clicking, select a polishing style, and the connected large language model will rewrite the prompt in your draft to be more professional and easier for AI to understand. A DeepSeek Harness plugin: icon-only composer button that rewrites your prompt via the connected LLM

UI (client)hasBundlePatch

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

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-alpha.4: failedDSH 0.2.1-rc.1: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-prompt-library

by master1Sun

DSH(DeepSeek Harness)Web 插件:在 composer 工具栏注入一个「提示词库」按钮,管理可复用的 prompt 片段,点击即可插入当前输入框。支持自动学习:输入复杂 prompt 文案时,插件会自动识别并保存到提示词库。

UI & ExperienceManifest valid

★ 15

↓ 552/wk

MIT

TypeScript

Oct 20, 2026

dsh plugin --profile web add @sunjuntao/dsh-prompt-library

by magian1127

DeepSeek Harness (DSH) plugin: A comprehensive enhancement plugin with UI polish, layout tweaks, prompt injection, and more. 综合性增强插件,界面优化、布局调整与提示词注入等更多功能。

UI & ExperienceManifest valid

★ 37

↓ 1.5k/wk

MIT

TypeScript

Oct 27, 2026

dsh plugin --profile web add deepseek-harness-zh_pro

by ruiyukirin

DSH 输入框一键提示词增强按钮 | One-click prompt enhancement for the DeepSeek Harness composer: rewrite the unsent draft into a clearer, more specific prompt, restore the original with one click. Ported from Tencent WorkBuddy's EnhancePrompt design; independent model call that never touches the session log.

UI & ExperienceSessions & MessagesManifest valid

★ 1

MIT

JavaScript

Oct 25, 2026

dsh plugin --profile web add dsh-prompt-optimization-master

by yi-yezhiqiu

DeepSeek Harness 提示词市场插件:对话框内一键浏览、搜索、收藏提示词,选中即写入输入框。零后端、免构建、数据只存本机。 | A prompt marketplace for DSH: browse, search and insert prompts straight into the composer.

Tools & CapabilitiesUI & ExperienceDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 108

↓ 220/wk

MIT

JavaScript

Oct 11, 2026

dsh plugin --profile web add dsh-prompt-market

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 yaoshuo530

A prompt-enhancement plugin for DeepSeek Harness: an ✨ Enhance composer button that rewrites prompts with first-principles thinking using session context, and asks clarifying questions when key info i

UI & ExperienceSessions & MessagesManifest valid

★ 6

↓ 1.3k/wk

MIT

JavaScript

Aug 28, 2026

dsh plugin --profile web add dsh-prompt-enhancer