AI Agent Hub
Back to plugins
🖥️

dsh-prompt-optimizer

Client Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install wmengxiang/dsh-prompt-optimizer

Paste the following prompt into your AI chat to install this plugin:

The full source code is at https://github.com/wmengxiang/dsh-prompt-optimizer . Run dsh plugin install wmengxiang/dsh-prompt-optimizer in DeepSeek Harness to install the plugin; it will auto-load with the composition on next restart.

About this plugin

When you work with DeepSeek Harness, writing a good prompt for an AI coding assistant is rarely a one-liner. The intent is there, but the wording is vague, details are missing, and it takes a few passes before the draft is worth sending. dsh-prompt-optimizer collapses that loop into a single click: a ✨ button appears in the input toolbar, and pressing it calls the currently active model to rewrite your draft into a clearer, more specific version, then auto-fills the result back into the input box. You just review and hit send.

The design is deliberately restrained. It only clarifies and concretizes — it does not alter your original task intent or switch languages. Streaming keeps the wait transparent: the button switches to a spinning loader with a sliding progress bar underneath; when the input box is empty the button simply greys out so no request is fired by accident. On the Host side a single precise route handles the LLM call; on the Client side a tiny icon is injected into the conversation.input.left slot. Both halves load automatically with the composition and clean up cleanly on unload.

Who is it for? If you spend most of your day in the DSH Web interface crafting prompts — assigning tasks to a coding assistant, tuning parameters, describing a bug repro — this plugin saves you a few minutes per draft. MIT licensed, lightweight, no extra runtime dependencies.

Use Cases

  • Quickly polishing task descriptions for an AI coding assistant
  • Instantly rewriting vague prompt drafts in the DSH Web interface
  • One-click prompt optimization after switching to a different model

Best For

  • Developers who craft prompts in DSH on a daily basis
  • Users who want to reduce prompt iteration cycles
  • Extenders who prefer lightweight, zero-dependency Web plugins