SongMiao-tech/dsh-prompt-optimizer

SongMiao-tech★ 0TypeScript最后同步: 2026-08-15

在 GitHub 打开

Prompt optimizer plugin for DeepSeek Harness: rewrite a composer draft into a clearer, more executable prompt with one click.

README 摘要

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 Or clone and install from source: Then register the bundle in your profile's cordis.patch.yml : 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 Structure License MIT

在 GitHub 查看完整 README →
终端/TUIdeepseek-harnessdshdsh-pluginplugin

分类