dsh-prompt-sharpen
Manifest validPre-send checkup for prompts: a zero-token lint tells you which of output format, constraints, acceptance criteria and context your draft is missing, then one click fills exactly those gaps.
dsh-prompt-sharpen
Pre-send checkup for prompts in DeepSeek Harness (DSH).
Most "enhance prompt" buttons rewrite whatever you typed. This one reads it first: a zero-token lint in the composer tells you which of four things your draft is still missing, and one click fills exactly those gaps — no padding, no invented requirements. The original stays one click away.
What it checks
| Gap | Looking for |
|---|---|
| Output format | result shape: structure, fields, length, table / code block |
| Constraints | what must hold, what must not be done |
| Acceptance criteria | how you will know it is done or correct |
| Context | the background, inputs or materials that make it executable |
The lint is local, rule-based and free: it never calls a model. A red dot on the button appears only when a gap is found, and the tooltip names the gaps (缺:输出格式、验收标准). A draft shorter than 12 characters is not checked — at that size everything is missing and the answer is noise.
Directed, not generic
When you press the button, the gaps are passed to the model as a 【体检结果】 block:
- Missing items → fill those, and do not restate what is already written.
- All four present → strip redundancy and tighten wording, and add nothing.
The rewrite replaces the draft in place. The button turns into a revert arrow; one click restores the exact original text. A request that fails (bad route, timeout, empty completion) never touches your draft — the button just shows the reason.
Three ways in
| Surface | What it does |
|---|---|
| Composer button (left of the model selector) | check the draft, then sharpen it in place |
/sharpen <draft> | same pipeline from the command line |
sharpen_prompt tool | lets the agent tighten a prompt the user is drafting |
checkup_prompt tool | diagnose only — no model call, no tokens |
HTTP, for the UI half: POST /api/prompt-sharpen/check and POST /api/prompt-sharpen/enhance, both taking { "draft": "…" } and restricted to loopback, same-origin requests.
Install
Desktop app: open Plugins, search dsh-prompt-sharpen, install, then restart — client bundles are composed at startup.
Command line, for a web profile:
dsh plugin --profile web add dsh-prompt-sharpen
The package declares dsh.bundle.patch and ships cordis.patch.yml, so it loads as a bundle without hand-editing the profile.
Configuration
- id: dsh-prompt-sharpen
name: dsh-prompt-sharpen
config:
provider: deepseek-account # default: the calling agent's route,
model: deepseek-flash # then the composition default model
maxOutputTokens: 1600
timeoutMs: 45000
maxInputChars: 8000
uiButton: true # false: keep the command and tools, drop the button
Notes
- Zero runtime dependencies. Both halves are plain ESM/CJS and only touch
ctxservices, solink:installs work too. - The button never sends your message. You always read the result before pressing Enter.
- Only the draft you press the button on is sent, to the model route you configured. No telemetry, no storage.
- Client bundle lives at
client.js; host half atindex.js; both are small enough to read in one sitting.
License
MIT
Comments
Loading…
Similar plugins
by LiWenzhuo001
Prompt optimizer plugin for DeepSeek Harness: one click rewrites your composer draft into a clear, verifiable prompt. Zero dependencies.
★ 1
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add dsh-plugin-prompt-optimizerby Xin-kon
DeepSeek Harness (DSH) plugin that pins zh-CN thinking and replies into the system prompt. Zero runtime deps, single file, capability probing, silent degradation.
★ 0
MIT
JavaScript
Oct 19, 2026
dsh plugin --profile web add dsh-lang-guardby konglong87
dsh 常用内容插件:保存、编辑提示词,点击回填输入框,不自动发送。deepseek harness 插件
★ 2
MIT
JavaScript
Sep 23, 2026
dsh plugin --profile web add dsh-input-listOne-click prompt enhancement for the DeepSeek Harness composer: a chip beside the model selector rewrites the draft into a structured prompt using the session's own model.
★ 0
MIT
JavaScript
dsh plugin --profile web add dsh-prompt-enhanceby Mryuanliu
DeepSeek Harness prompt presets help you quickly fill in the prompt in English with one click.
★ 0
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-prompt-presetsby perdakovich
The pencil DSH forgot to ship: suckless prompt editing, engineered to feel like it was always there.
★ 0
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add dsh-prompt-edit