dsh-btw-plugin
btw - one-off context side questions for a DSH session: a temporary dialog that inherits the current session context; answers stay in the dialog unless the user reviews a compressed summary and sends it into the session.
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yanzoro926/dsh-btw使用
- 点输入框右侧的
btw,或输入/btw后回车,打开弹窗。 - 输入问题,Enter 发送,Shift+Enter 换行。
- 顶部「上下文」栏可以调整这次旁问携带多少会话历史,点「刷新」重新读取。
- 右侧模型下拉可切换旁问专用模型;⚙ 里可调温度、输出上限、推理强度和按钮显隐。
- 先选中一段文字再打开,会把选中内容作为引用带进问题;引用条右侧的 × 可清除。
- 切到其他会话时窗口会隐藏,切回原会话自动恢复;点 × 或按 Esc 关闭并清空当前会话的旁问。
配置
以下配置可在 Cordis 插件配置里覆盖(默认值来自 lib/logic.js):
| 键 | 默认 | 作用 |
|---|---|---|
enabled | true | 关闭后不注册任何路由 |
maxParentMessages | 200 | 「自动」范围下最多携带多少条父会话消息 |
maxRangeMessages | 1000 | 「全部」/「不含工具输出」范围的硬上限 |
defaultRecentMessages | 40 | 「最近 N 条」的默认值 |
maxPriorTurns | 20 | 弹窗内追问最多回传多少条历史 |
maxQuestionChars | 8000 | 单次问题长度上限 |
requestTimeoutMs | 300000 | 单次旁问的超时 |
summaryTimeoutMs | 60000 | 生成送入摘要的超时(超时用本地兜底) |
maxSummaryChars | 8000 | 确认写入时摘要的长度上限 |