DSH Composer's Prompt Optimization Button: dsh-prompt-optimizer-button
Introducing the plugin `az-666316/dsh-prompt-optimizer-button`: It inserts a sparkle "Optimize Prompt" button and a scenario badge between the model selection box and the send button in the DSH composer. Upon clicking, it performs a standard model call using the currently selected provider/model, directly replacing the rewritten result into the input box without sending the message or creating a new conversation turn, while simultaneously providing scenario judgment and structured diagnostics via a popup panel. This article introduces its working principles (host-side POST /prompt-optimizer/rewrite same-origin routing, browser-side portal positioning), manual installation steps, typical usage, and known limitations (non-public DOM APIs, no extra authentication for routing, 20k character/4000 token limits, etc.).
Read More