dsh-prompt-optimizer
Run the following command in DeepSeek Harness:
dsh plugin install rayhanlu0519-a11y/dsh-prompt-optimizer
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install rayhanlu0519-a11y/dsh-prompt-optimizer in your terminal to install the plugin; the source repository is at https://github.com/rayhanlu0519-a11y/dsh-prompt-optimizer .
About this plugin
Writing prompts in the DSH Web GUI often hits a wall right after the draft is done: the wording is close but not quite right. The old workaround was copying text into another window for a polish pass and pasting it back, or just sending it and letting context quality quietly degrade.
dsh-prompt-optimizer adds an optimize button and an auto-toggle directly to the composer tool row, right beside the model switcher. A manual click runs one optimization pass on the current draft; with auto mode on, pressing Enter or clicking send first intercepts the action, optimizes the text, and presents a read-only original alongside an editable optimized version in a side-by-side diff dialog. You can adopt and send, fill the input only, fall back to the original, or discard. On any failure or timeout, auto mode sends the original seamlessly, manual mode surfaces the error and allows a retry, and the conversation never stalls. Two backends are supported: the DSH built-in route (no API key needed) and any OpenAI-compatible endpoint (DeepSeek, OpenAI, or custom), with keys stored only in a local host-side file and masked in the browser.
It is well suited for developers who write system prompts, role definitions, or multi-turn dialogue instructions in DSH daily and would rather not juggle an extra window, hand-build API calls, or lose a full context block because one optimization pass failed. At roughly 55 KB gzipped to 12 KB and registered through the official slot system, it behaves more like a small toolbar attachment than a standalone workbench.
Use Cases
- One-click prompt polish from the chat composer toolbar
- Silent auto-optimization before every message with a before/after diff
- Multi-round refinement via a custom OpenAI-compatible endpoint
- Automatic fallback to the original text on timeout or model error
Best For
- Developers writing system prompts and role definitions at high frequency
- Engineers who use the DSH Web GUI for daily model interactions
- Users seeking a zero-config, key-free prompt optimization pass
Related Plugins
A unified suite combining hot runtime injection, task-aware thinking-mode routing, and a graded session protocol with red-team gates to sustain model diligence across long-horizon inference.
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.