seven282/oss-prompt-optimizer

Optimize a raw instruction into a professional prompt through the harness llm service — four-section (Role / Task / Context / Format) by default, or a headerless plain-text style (outputStyle: 'plain') that cuts token usage. Composer ✨ one-click optimize & undo, prompt_optimize tool, auto-optimize hook, configurable meta-prompt.

prompt-optimizer turns a casually written sentence into a professional, ready-to-use prompt, using the same idea as Qoder and Codex. It exposes the capability on three surfaces: a model-callable 'prompt_optimize' tool (with lastOptimized + iterateInstruction for iteration), a service other plugins and the browser can call (ctx.promptOptimizer.optimize / .iterate, also via ctx.remote), and a persistent wand button in the composer toolbar that optimizes the current draft in place — clicking again cancels, success shows an approximate token-cost hint and switches the button to undo, and states are announced via aria-live for screen readers. An optional prefix-triggered auto-optimize hook (e.g. '/optimize ') runs before the message reaches the model, with runtime toggling via '/optimize --auto on|off|toggle|status'.

Tools & Capabilities ★ 0 updated 2026-09-20
View on GitHub ↗

Install

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

The README's install line is 'dsh plugin --profile web add oss-prompt-optimizer'. The npm package oss-prompt-optimizer 1.9.0 was re-verified live on 2026-10-02 with its repository field back-linking to seven282/oss-prompt-optimizer (MIT). The README states the optimization is driven by a built-in meta-prompt and run through the harness LLM service — the plugin never calls any external API and never touches credentials.

Compatibility

DeepSeek Harness web. The optimizer runs through the harness LLM service (no external API, no credentials). Output styles are configurable: 'plain' (default, heading-free), 'role-task-goal' (three parseable labels) and 'sections' (## Role / ## Task / ## Context / ## Format). A role-document language auto-detect picks the Chinese or English meta-prompt by input language.

Details

FAQ

How do I install prompt-optimizer?
dsh plugin --profile web add oss-prompt-optimizer (npm oss-prompt-optimizer 1.9.0, registry re-verified 2026-10-02).
Does it call an external service?
No — the README says the optimization runs through the harness LLM service via a built-in meta-prompt; the plugin never calls an external API and never touches credentials.
How do I use it from the composer?
Click the wand button to optimize the current draft in place; click again to cancel, or click undo (shown after success) to restore the original text if the draft has not been edited.

Alternatives

omdsh-dev/dsh-genui · morluto/leantoken · 1624318455/dsh-plugin-tavily

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins