dsh-prompt-enhance
Prompt enhancement for the dsh web GUI: rewrite the composer draft into a well-structured prompt through the harness LLM service, preview the before/after, then fill back, copy, or undo. Original draft is always preserved.
What it is
Prompt enhancement for the dsh web GUI: rewrite the composer draft into a well-structured prompt through the harness LLM service, preview the before/after, then fill back, copy, or undo. Original draft is always preserved.
How to install
Run this in the DSH web profile, then refresh the page.
$ dsh plugin --profile web add dsh-prompt-enhance@0.3.4
DSH versions accepted
>=0.1.1-rc.2
Author and traction
rongxingda · ★ 34 · Updated 2026-11-03
About this plugin
dsh-prompt-enhance
Prompt enhancement for the DeepSeek Harness web GUI — one click turns a rough composer draft into a well-structured prompt: explicit role and goal, executable steps, output format, acceptance criteria, and edge cases. Your intent is never changed, nothing is fabricated, and the original draft is always preserved.
English | 简体中文 Why
Good agent prompts state *who the model should be*, *what to deliver*, *in what format*, and *how success is judged*. Most drafts don't. This plugin adds a WorkBuddy-style "enhance" affordance to the dsh composer: it sends your draft through a low-temperature rewrite pass (via the harness's own LLM service), shows the result next to the original, and lets you apply, copy, or discard it. Undo is one click away, and every failure path leaves your draft exactly as you typed it. Features How it works
The plugin is one npm package with two halves, following the dsh plugin conventions: Host half (exports ".", Node): declares the prompt-enhance settings schema (schemastery, every field marked .volatile() — the host's describe() drops any entry with no volatile field, so that mark is both what makes the config page appear and the contract for "edits apply to the next request"; the plugin re-reads it on every request instead of caching the boot snapshot), registers the POST /prompt-enhance/enhance route on the shared webserver (loopback-fenced, body-capped), and the /enhance slash command. The model call goes through ctx.llm.stream with a normalized output pass — the same auxiliary-call discipline the harness applies to session titles: deadline + caller cancellation rechecked during and after the stream, terminal-finish validation, tool-call rejection. Browser half (exports "./client"): registers the enhance button into the conversation.input.right slot and the undo bar into conversation.input.dock, binds a live mirror of the settings namespace, and installs the global shortcut. All copy is localized (zh/en) through the harness locale system. Requir
From npm (recommended):
From GitHub (the built lib/ is committed, so no local build happens):
From a local checkout (for development — changes rebuild + restart take effect):
Uninstall:
Similar plugins
dsh-purge
让 AI 更专注地辅助学习与动手实验:DSH 附加组件,提供状态自检、提示词与规则管理、本机备份与回滚。
dsh-unrestricted
Toggleable unrestricted mode for DeepSeek Harness: fuses execution rules into the active standard, ptc, cordis, minimal,…
dsh-univer-office
DSH × Univer integration with a bundled collaboration Gateway and Viewer: inline previews, live floating Worktree window…