AntMan-xtalgh/dsh-prompt-enhance ↗★ 0
dsh-prompt-enhance
A sparkle button in the DeepSeek Harness composer that rewrites your rough draft into a clear, well-structured prompt. 适合需要优化提示词质量的用户,需手动配置模型和通道。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AntMan-xtalgh/dsh-prompt-enhanceREADME
Read the full README ↗Configuration
All configuration lives in the profile patch from step 3.
| Field | Type | Required | Meaning |
|---|---|---|---|
provider | string | yes | Provider route id, e.g. moxing, deepseek-official |
model | string | yes | Model id on that route, e.g. deepseek-flash-1017 |
Both must be set together. ctx.llm.listProviders() reports provider ids but not their models, and the session's own resolved route is not exposed to plugin code — so this pair cannot be auto-detected. See Known limitations.
The rewrite instruction is a constant in index.js (SYSTEM_PROMPT). Fork and edit it if you want a different rewriting policy — for example, always produce English, or always emit a bullet list.
Usage
- Type anything into the composer — a fragment, a garbled sentence, a rough plan.
- Click ✨.
- Wait a moment. The draft is replaced in place with the rewrite.
- Edit it if you want, then send as usual.
Notes:
- The draft is replaced, not appended. Undo (Cmd+Z) restores the original.
- Multi-line drafts are flattened for the model call, because a command line may not contain line breaks. Line breaks are collapsed to single spaces, not dropped.
- An empty draft does nothing except show a short hint.
- The button is per-session. Each session has its own composer and its own button state.
- Concurrent sends are safe — if a submission is in flight, the button is disabled rather than racing it.