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 输入框「增强提示词」插件:发送前把草稿(或只把选中的片段)改写成更清晰、更具体的提示词,可参考本会话最近对话,可取消、可回退。

Package
dsh-composer-enhance
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.2 <1.0.0
Cordis peer range
^4.0.4
Version
0.4.1
License
MIT
Last updated
Oct 30, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GraptK/dsh-composer-enhance

配置项一览(v0.4.0)

cordis.patch.yml 里给默认值,Config schema 让插件管理器/Config Inspect 能渲染表单。

键默认作用
enabledtrue总开关;关掉后点按钮直接返回「已被插件配置禁用」,不调模型
temperature0.3采样温度(0–2)
maxTokens2048输出预算;思考 token 也计入
timeoutMs60000宿主侧单次调用超时
historytrue是否带最近对话作语境
historyTurns3取最近几轮(1–12)
historyMaxChars3000历史总字符预算
historyPerMessageChars800单条历史裁剪长度(头 40% + 尾 60%)
fidelitytrue硬事实保真闸
maxExpansionRatio2.5长度闸倍数(1–6)
provider / model''只给本插件覆盖模型;两个都填才生效(日志 modelSource=config),只填一个忽略

类型写错(例如 maxTokens: "2048")会让插件激活失败——这是导出原生 schema 的代价,已写进已知限制。