shellpower96/dsh-prompt-optimizer ↗★ 0
dsh-smartprompt
将草稿重写为结构化提示词的按钮 适合需要根据工作区规范自动优化、重构输入框提示词的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shellpower96/dsh-prompt-optimizer说明文档
阅读完整 README ↗Configuration
Every value is read from the row's config; the plugin reads no environment variables and no
settings module of its own. Invalid values throw at activation with the field name.
| Field | Default | Meaning |
|---|---|---|
enabled | true | Master switch; false registers nothing |
maxDraftChars | 4000 | Reject longer drafts instead of sending them to the model |
contextChars | 8000 | Total character budget for the project-facts block |
maxOutputChars | 400 | Character cap for the optimized prompt, defined in Chinese characters; the English ceiling scales to 1.8x. The meta prompt targets 75% of it, so the hard cap only trims a runaway answer |
timeoutMs | 120000 | Per-call timeout |
docs | ["AGENTS.md","README.md"] | Workspace-relative documents read as facts, in order; missing files are skipped, absolute paths and .. are rejected |
includeGoal | true | Include the session's current goal in the facts block |
systemPromptLocale | "auto" | Language of the meta prompt: auto follows the draft's script, zh/en force one. The produced prompt always follows the draft's language |