dsh-prompt-optimizer-button
Prompt optimizer inside the DSH composer. One click rewrites the current draft with the model you already selected: it classifies the scenario (paper / repo evaluation / agent task / daily question / English writing), returns a compact three-check diagnosis panel (is acceptance testable? missing information or capability? raising depth or widening scope?), and lets you pin a scenario manually. A running rewrite can be stopped without writing a half result back, a selected fragment can be rewritten on its own, and every rewrite keeps an undo history per session in the browser (up to ten steps). The draft is replaced in place, with no extra chat turn. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Overview
Prompt optimizer inside the DSH composer. One click rewrites the current draft with the model you already selected: it classifies the scenario (paper / repo evaluation / agent task / daily question / English writing), returns a compact three-check diagnosis panel (is acceptance testable? missing information or capability? raising depth or widening scope?), and lets you pin a scenario manually. A running rewrite can be stopped without writing a half result back, a selected fragment can be rewritten on its own, and every rewrite keeps an undo history per session in the browser (up to ten steps). The draft is replaced in place, with no extra chat turn. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Installation
Version compatibility
Compatibility is unconfirmed. Check the project documentation for supported versions.