dsh-explainer
Select text in the DSH chat and ask about it in place, or open a fast isolated ask window. Answers stream from a one-shot completion that follows the main window model, inherits a read-only context snapshot, and reads files the question references.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wzciczw/dsh-explainer说明文档
阅读完整 README ↗配置
写在 cordis.patch.yml 的 explainer 行:
- id: explainer
name: "dsh-explainer"
config:
maxTokens: 800 # 单次输出上限
temperature: 0.3
inheritContext: true # 划词问默认继承对话上下文
maxTurns: 3 # 追问保留轮数
contextMaxMessages: 8 # 快照最多几条消息
contextMaxChars: 8000 # 快照总字数
selectionMaxChars: 6000 # 选段上限
timeoutMs: 30000
maxConcurrent: 4
rightClick: true # 选中文字后右键直接打开
fileAccess: true # 注入问题中提到的文件(只读)
fileContextMaxChars: 20000 # 右侧栏文件作为上下文时的全文上限
fileMaxFiles: 4
fileMaxChars: 12000
fileExcerptChars: 4000
# provider / model 仅在拿不到主窗口模型时兜底;默认与主窗口一致
# reasoningEffort 留空则取最低可用档(off / minimal / low)