- Accueil
- Plugins
- Améliorations UI
- dsh-prompt-optimizer
S
dsh-prompt-optimizer
songmiao-tech/dsh-prompt-optimizer
Bouton Optimiser le prompt sous la zone de saisie : un clic réécrit votre brouillon en un prompt plus clair et plus exécutable, avec une boîte de dialogue avant/après et un remplacement en un clic.
Installer
dsh plugin --profile web add github:songmiao-tech/dsh-prompt-optimizerREADME
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
Plugins associés
Z
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
8.3kavant-hierAméliorations UIApache-2.0
Z
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
8.3kavant-hierAméliorations UIApache-2.0
Z
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui
6.3kle mois dernierAméliorations UIApache-2.0
Z
dsh-web-ui (dsh-web-ui-all)
zhu1090093659/dsh-web-ui
6.2kle mois dernierAméliorations UIApache-2.0