dsh-prompt-optimizer
Manifest validOptimize Prompt button under the composer: one click rewrites your draft into a clearer, more executable prompt, with a before-and-after dialog and one-click replacement.
dsh-prompt-optimizer
A prompt-optimizer plugin for DeepSeek Harness (dsh). It adds an ✨ Optimize Prompt button right below the chat composer: click it to rewrite your draft into a clearer, more executable prompt — then apply it back into the input box with one click.
Features
- Button rendered under the composer (via the
conversation.composer.dockslot) - Reads the current composer text on click; friendly prompt when empty
- Rewrites the draft through the host's
ctx.llmwith a fixed six-step procedure (intent → context → hidden constraints → gaps → restructure → language check) - Before/after dialog with a Replace into input button that writes the result back
- Output always matches the input language; code, terms, and URLs are preserved
Requirements
- DeepSeek Harness
dsh(web profile) with a configured model (e.g. a DeepSeek API key in Settings → Models)
Install
dsh plugin --profile web add https://github.com/SongMiao-tech/dsh-prompt-optimizer
Or clone and install from source:
git clone https://github.com/SongMiao-tech/dsh-prompt-optimizer.git
cd dsh-prompt-optimizer
pnpm install
pnpm run build
Then register the bundle in your profile's cordis.patch.yml:
- insert:
- id: prompt-optimizer
name: '@deepseek-ai/dsh-prompt-optimizer'
- id: ui-prompt-optimizer
name: '@deepseek-ai/dsh-client-ui-prompt-optimizer'
Usage
- Type a rough draft in the composer
- Click ✨ Optimize Prompt
- Review the rewrite in the dialog
- Click Replace into input to swap it in, then send
Development
pnpm install
pnpm run build # tsc + tsdown for both packages
pnpm run test # vitest unit tests
Structure
.
├── cordis.patch.yml # bundle manifest patch (host + client rows)
├── packages/
│ ├── prompt-optimizer/ # host half: promptOptimizer Remote over ctx.llm
│ └── ui-prompt-optimizer/ # client half: dock button, dialog, write-back
└── scripts/ # vendored tsdown client-bundle preset
License
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 2.0.0 | — | — |
| 2.0.1 | — | — |
| 2.0.2 | — | — |
| 2.0.3 | — | — |
Comments
Loading…
Similar plugins
One-button prompt optimizer: rewrites the composer draft via a configurable strategy, with an editable template, few-shot examples, pinned models and reasoning effort.
★ 0
dsh plugin --profile web add @panando/dsh-prompt-optimizerby du-u-uck
Adds a one-click prompt optimization button to the DSH composer, with undo and an optional dedicated optimizer model.
★ 0
MIT
TypeScript
Sep 13, 2026
dsh plugin --profile web add dsh-prompt-optimizationby wmengxiang
Adds an icon button to the composer that optimizes the current draft prompt through the active model.
★ 3
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add dsh-prompt-optimizerby lokih1028
One-click prompt enhancement and structuring button for DSH composer.
★ 0
↓ 185/wk
MIT
TypeScript
Aug 29, 2026
dsh plugin --profile web add dsh-prompt-optimizerby LiWenzhuo001
Prompt optimizer plugin for DeepSeek Harness: one click rewrites your composer draft into a clear, verifiable prompt. Zero dependencies.
★ 1
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add dsh-plugin-prompt-optimizerby xindady
Adds a prompt enhancement button to the composer toolbar that rewrites the draft through a model call, keeps @file references verbatim, and offers one-click undo.
★ 0
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-prompt-enhancer