dsh-prompt-enhance
Sparkle button in the DSH composer: rewrite the draft into an executable prompt through the harness LLM, with a multi-level undo stack and a token-level before/after diff. 适合需要利用大模型优化提示词、对比修改细节并支持撤销的用户。
同名パッケージの別リポジトリ
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wjf1/dsh-prompt-enhanceドキュメント
README 全文を読む ↗配置
cordis.patch.yml 里的行可以带 config,逐键覆盖 lib/index.js 的 DEFAULTS:
- insert:
- id: dsh-prompt-enhance
name: 'dsh-prompt-enhance'
config:
provider: acme # 客户端读不到界面模型时用它
model: cn:deepseek-v4.1-flash
reasoningEffort: '' # 空 = 不显式传推理档
maxInputChars: 20000
timeoutMs: 120000
systemPrompt: '' # 非空则整体替换内置 system prompt
Configuration
Any key of DEFAULTS in lib/index.js can be overridden through the plugin's config block in the profile patch:
- insert:
- id: dsh-prompt-enhance
name: 'dsh-prompt-enhance'
config:
provider: acme # used when the client cannot read the session model
model: cn:deepseek-v4.1-flash
reasoningEffort: '' # empty = do not send an explicit effort
maxInputChars: 20000
timeoutMs: 120000
systemPrompt: '' # non-empty replaces the built-in system prompt