SongMiao-tech/dsh-prompt-optimizer

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.

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. It reads the current composer text (friendly prompt when empty), rewrites through the host's ctx.llm with a fixed six-step procedure (intent → context → hidden constraints → gaps → restructure → language check), and shows a before/after dialog with a Replace into input button. Output always matches the input language; code, terms and URLs are preserved.

UI Enhancements ★ 2 updated 2026-08-15
View on GitHub ↗

Install

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

dsh plugin --profile web add dsh-prompt-optimizer (npm dsh-prompt-optimizer 2.0.1, verified npm 2026-08-31) or dsh plugin --profile web add https://github.com/SongMiao-tech/dsh-prompt-optimizer.

Compatibility

DSH web profile with a configured model (e.g. a DeepSeek API key in Settings → Models); uses the host's ctx.llm; MIT.

Details

Recent updates

Optimize Prompt button under composer; six-step rewrite via ctx.llm; before/after dialog with Replace into input; preserves code/terms/URLs; matches input language.

FAQ

Does it send my prompt anywhere?
The rewrite goes through the host's ctx.llm — the same model you already configured in Settings → Models; nothing is sent to third-party services.
Will it change code or URLs in my draft?
No — code, terms and URLs are preserved during the rewrite, and the output always matches the input language.
How do I apply the optimized version?
The before/after dialog has a Replace into input button that writes the result back into the composer with one click.

Alternatives

Fishsb/dsh-prompt-enhancer · Wine-Red/dsh-prompt-stash · SaiSenBox/dsh-prompt-manager

More plugins in UI Enhancements

Browse more in UI Enhancements

Guides for UI Enhancements plugins