DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-prompt-optimizer

d

dsh-prompt-optimizer

Manifest valid

Optimize 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.

hasBundlePatch

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.dock slot)
  • Reads the current composer text on click; friendly prompt when empty
  • Rewrites the draft through the host's ctx.llm with 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

  1. Type a rough draft in the composer
  2. Click ✨ Optimize Prompt
  3. Review the rewrite in the dialog
  4. 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

MIT

Compatibility

DSH 0.1.7-rc.2: failedDSH 0.2.0-rc.1: failedDSH 0.2.0-rc.2: failed

Versions

Latest versionPublishedSize
2.0.0——
2.0.1——
2.0.2——
2.0.3——

Comments

Loading…

Similar plugins

dsh-prompt-optimizer

One-button prompt optimizer: rewrites the composer draft via a configurable strategy, with an editable template, few-shot examples, pinned models and reasoning effort.

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add @panando/dsh-prompt-optimizer

by du-u-uck

Adds a one-click prompt optimization button to the DSH composer, with undo and an optional dedicated optimizer model.

UI & ExperienceTerminal & ClientsManifest valid

★ 0

MIT

TypeScript

Sep 13, 2026

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

by wmengxiang

Adds an icon button to the composer that optimizes the current draft prompt through the active model.

UI & ExperienceManifest valid

★ 3

MIT

JavaScript

Sep 11, 2026

dsh plugin --profile web add dsh-prompt-optimizer

by lokih1028

One-click prompt enhancement and structuring button for DSH composer.

UI & ExperienceManifest valid

★ 0

↓ 185/wk

MIT

TypeScript

Aug 29, 2026

dsh plugin --profile web add dsh-prompt-optimizer

by LiWenzhuo001

Prompt optimizer plugin for DeepSeek Harness: one click rewrites your composer draft into a clear, verifiable prompt. Zero dependencies.

Development & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add dsh-plugin-prompt-optimizer

by 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.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

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