tong174/dsh-enhance-prompt ↗★ 0
dsh-enhance-prompt
One-click prompt enhancer for DeepSeek Harness — a reverse-engineered, benchmarked reimplementation of WorkBuddy's Enhance prompt.
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tong174/dsh-enhance-prompt說明文件
閱讀完整 README ↗Configuration
Everything lives in the plugin's row in your profile cordis.patch.yml; all fields have defaults.
| field | default | meaning |
|---|---|---|
promptStyle | enhanced | enhanced / workbuddy / system |
provider, model | '' | empty = automatic candidate chain |
providerPriority | [] | provider ids to try first |
maxAttempts | 6 | how many candidate routes one enhancement may try |
totalBudgetMs | 90000 | wall-clock ceiling for the whole chain, so a dead provider cannot burn maxAttempts × timeoutMs |
maxConcurrency | 2 | concurrent enhancements; extra requests get 429 busy |
idempotent | true | sha256 cache + single-flight, so double-clicking the star costs one model call |
temperature | 0.3 | |
maxTokens | 4000 | reasoning tokens count against this |
timeoutMs | 60000 | per route |
minTextLength | 1 | matches WorkBuddy; 0 really does disable the check |
maxInputChars | 8000 | reject longer drafts (too_large) |
customSystemPrompt / customUserTemplate | '' | override; the template must contain {input} |
stripWrappingQuotes / stripCodeFence | true | same cleanup as the original |
announceToAgent / toolsEnabled | true | expose enhance_prompt |
allowRemote | false | only loopback clients may call the HTTP API |
requireHeader | true | browser requests must carry x-dsh-enhance: 1 (blocks cross-site fetch/forms) |
rateLimitPerMinute | 30 | per client token bucket; self-test is capped at 2/min |
selfTestOnStart | false | opt-in: costs one real model call per load. Static checks always run |
logFile | ~/.dsh/enhance-prompt.log | host-side log, async and rotated at 2 MB; browser failures POST here too |