
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-prompt-polish
Advanced tools
Prompt polish ✨ — a DeepSeek Harness WebUI plugin that adds a one-click button to rewrite rough input into a structured, professional prompt, written back into the input box.
A DeepSeek Harness WebUI plugin that adds a one-click Prompt Polish ✨ button to the input toolbar. Rewrite a rough, fragmented request into a structured, professional prompt — written straight back into the input box.
Polish is non-destructive and reviewable — nothing is sent automatically.
If your profile uses dshmarket, install from the marketplace UI. Otherwise:
dsh plugin --profile web add dsh-prompt-polish
Then restart the WebUI so the bundle is loaded.
Building from source (e.g. while developing): the published package ships pre-built
lib/artifacts. If you must build yourself, runpnpm install && pnpm build(usestsdown).
The plugin is mounted via its cordis.patch.yml. Override defaults by supplying config in the patch, or pass provider/model per request from the client:
- insert:
- id: prompt-polish
name: 'dsh-prompt-polish'
config:
provider: openrouter
model: deepseek/deepseek-v4-flash-0731
maxTokens: 2000
| Setting | Default | Description |
|---|---|---|
provider | (from request or unset) | LLM provider to use for polish |
model | (from request or unset) | Model id to use for polish |
maxTokens | 2000 | Output token cap per polish pass |
If neither the config nor the request supplies provider/model, the request is rejected (no model route available) — configure one of the two so polish is always routable.
POST /dsh-prompt-polish/polish (WebUI server, same-origin only)
{ "text": "..." }
Response:
{ "ok": true, "text": "the rewritten prompt", "truncated": false, "provider": "...", "model": "..." }
text — the polished prompt.truncated — true when the model hit the token cap; the text is still usable and is written back into the box.{ "error": "..." } with 4xx.The endpoint enforces same-origin (Origin must match Host) to prevent cross-site abuse.
src/index.ts) — registers the HTTP route, streams the LLM via ctx.llm.stream + BlockAssembler, and returns the rewritten text. Peer deps: @deepseek-ai/cordis, @deepseek-ai/dsh-llm.src/client/index.tsx) — registers a button on the conversation.input.right slot, fetches the endpoint, and writes back via inputActions.setDraft. CSS is self-contained (one injected <style> tag) so the browser bundle builds with a plain tsdown config.Both halves build with tsdown. The client bundle is emitted in DSH's window.__ModuleLoader__.load({ id, factory }) format and externalizes react / react/jsx-runtime to the browser module table.
MIT. See LICENSE.
FAQs
Prompt polish ✨ — a DeepSeek Harness WebUI plugin that adds a one-click button to rewrite rough input into a structured, professional prompt, written back into the input box.
We found that dsh-prompt-polish demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.