DeepSeek Harness plugin

dsh-prompt-polish-13219287

DeepSeek Harness 输入栏提示词优化插件:6 种策略 × 3 种语言与自定义指令重写草稿,可选携带聊天上下文(含压缩摘要)、目标与任务清单,结果确认弹窗、最近 5 次历史与三级设置持久化。Input-bar prompt optimizer for DeepSeek Harness: rewrites drafts with 6 strategies × 3 languages

Jump to install

Source facts

Repository
1321928757/dsh-prompt-polish
Latest update
Aug 18, 2026
Category
Workflow & Automation
GitHub stars
1
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/1321928757/dsh-prompt-polish
Plugin: dsh-prompt-polish-13219287
Author: 1321928757

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 | 中文

Input-bar prompt optimizer for DeepSeek Harness (DSH): an ✨ Optimize button that rewrites your draft into a clearer, more specific, more executable prompt — optionally grounded in the current session's context.

  • 6 strategies × 3 languages plus custom instructions
  • Optional context: goal, todo list, compaction summary, tool results, conversation history
  • Confirm dialog (Adopt / Keep draft / Later) — the draft is never silently overwritten
  • Last-5 optimization history (review / refill / delete)
  • Composer freeze while optimizing, with dual timeouts
  • Three-tier settings persistence (browser L1 → settings row L2 → workspace file L3)

Install

dsh plugin --profile web add github:1321928757/dsh-prompt-polish#v0.2.1

Or from npm (once published):

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

PowerShell one-liner (bootstraps pnpm, pins versions, self-checks):

irm https://raw.githubusercontent.com/1321928757/dsh-prompt-polish/v0.2.1/scripts/install.ps1 | iex

Restart dsh web and the ✨ Optimize button appears on the left of the composer. Verify:

dsh --profile web --dump-config | findstr dsh-prompt-polish

Uninstall: dsh plugin --profile web remove dsh-prompt-polish

> Requirements: DeepSeek Harness (Node ≥ 20). The package ships prebuilt JavaScript, so git installs need no build approval. Every model call goes through the model you already configured in DSH; nothing is sent to third parties.

Usage

EntryWhat it does
Composer ✨ OptimizeRewrites the draft with the current strategy; includes session context when 📖 is on
Composer Settings panel: 📖 context toggle, 🔧 tool-results toggle, mode, language, custom instructions, optimization history, carry stats
Settings page rowL2 settings row, linked with the panel toggles

Modes: Default (disambiguate and fix) / Concise / Structured (目标·背景·要求·期望输出) / Creative / Translate / Code request. Languages: follow draft / Chinese / English (target language in Translate mode).

Output guarantee: the result is always the user's first-person request to an AI — it never opens with "可以" / "好的" / "我来" and never answers the draft's questions. This is a fixed, byte-identical prompt red line.

Screenshots

Composer with the ✨ Optimize button and the ⚙ settings toggle:

![Composer with the Optimize button](assets/composer.png)

Optimization result confirm dialog (Adopt / Keep draft / Later):

![Optimization confirm dialog](assets/dialog.png)

Settings panel (context toggles, mode, language, custom instructions, optimization history):

![Settings panel](assets/settings.png)

Settings persistence (three tiers)

1. L1 browser: localStorage key ptopt.settings.v1, effective immediately; 2. L2 settings page: a row under DSH Settings → General, linked with the panel; 3. L3 workspace file: <workspace>/.dsh/prompt-optimizer/settings.json, synced across browsers/machines; writes are bound by the DSH sandbox policy and silently degrade to L1 when denied.

Compatibility

  • Required host capabilities (all provided by the default web profile via @deepseek-ai/dsh-base): llm, sessions, fs, sandboxPolicy, agentDefaultModel, timer, typert-loader;
  • The browser half talks to the host over Typert RPC (remote.promptPolish.*) — no extra network endpoints;
  • All UI consumes --dsw-* theme tokens and follows the global light/dark theme.

Development

node --test test/          # unit tests (strategy assembly, truncation, classification)
node --check lib/index.js  # syntax check

Local install loop:

dsh plugin --profile demo add ./path/to/dsh-prompt-polish
dsh --profile demo --dump-config

License

[MIT](LICENSE). Not affiliated with DeepSeek. Installing runs third-party code on your machine — review the source first.