GraptK/dsh-composer-enhance ↗★ 0
dsh-composer-enhance
One model call rewrites the composer draft — or just the selected fragment — into a sharper, ready-to-send prompt. Cancellable, revertible, and aware of the recent conversation. · DSH 输入框「增强提示词」插件:发送前把草稿(或只把选中的片段)改写成更清晰、更具体的提示词,可参考本会话最近对话,可取消、可回退。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GraptK/dsh-composer-enhance說明文件
閱讀完整 README ↗配置项一览(v0.4.0)
cordis.patch.yml 里给默认值,Config schema 让插件管理器/Config Inspect 能渲染表单。
| 键 | 默认 | 作用 |
|---|---|---|
enabled | true | 总开关;关掉后点按钮直接返回「已被插件配置禁用」,不调模型 |
temperature | 0.3 | 采样温度(0–2) |
maxTokens | 2048 | 输出预算;思考 token 也计入 |
timeoutMs | 60000 | 宿主侧单次调用超时 |
history | true | 是否带最近对话作语境 |
historyTurns | 3 | 取最近几轮(1–12) |
historyMaxChars | 3000 | 历史总字符预算 |
historyPerMessageChars | 800 | 单条历史裁剪长度(头 40% + 尾 60%) |
fidelity | true | 硬事实保真闸 |
maxExpansionRatio | 2.5 | 长度闸倍数(1–6) |
provider / model | '' | 只给本插件覆盖模型;两个都填才生效(日志 modelSource=config),只填一个忽略 |
类型写错(例如 maxTokens: "2048")会让插件激活失败——这是导出原生 schema 的代价,已写进已知限制。