scwlkq/dsh-second-opinion ↗★ 0
dsh-second-opinion
为 DeepSeek Harness 助手决策提供独立的第二模型审查功能。
AI 分析
核心用途是引入第二模型对主模型的决策进行独立审查。适合需要对 AI 决策进行双重校验、纠偏或重构任务的用户,支持自定义审查模型。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:scwlkq/dsh-second-opinion说明文档
阅读完整 README ↗Usage
The default advisory mode needs no extra configuration. Start DSH, send a prompt, and open the speech-bubble action under a completed assistant message. The dialog first shows Review pending, then the reviewer verdict and comments. You can send one comment or the complete review back to the primary agent for reconsideration.
dsh --profile web
The reviewer route defaults to the provider and model that produced the target message. Set both reviewer route variables to use a dedicated B model:
export DSH_REVIEW_PROVIDER='
'
export DSH_REVIEW_MODEL=''
dsh --profile web
Configuration
The bundle reads these environment variables at profile startup:
| Environment variable | Default | Meaning |
|---|---|---|
DSH_REVIEW_MODE | advisory | Selects advisory or auto. |
DSH_REVIEW_PROVIDER | unset | Reviewer provider ID. Must be set together with DSH_REVIEW_MODEL. |
DSH_REVIEW_MODEL | unset | Reviewer model ID. Must be set together with DSH_REVIEW_PROVIDER. |
For every option, add an ID-targeted override to the profile's cordis.patch.yml:
- id: second-opinion
config:
mode: advisory
provider: '
'
model: ''
reasoningEffort: high
maxTokens: 900
maxContextMessages: 20
autoRevisionsPerTurn: 1
reviewToolCalls: true
| Option | Default | Meaning |
|---|---|---|
mode | advisory | Review-only or automatic reconsideration behavior. |
provider | target message route | Dedicated reviewer provider ID. Configure with model. |
model | target message route | Dedicated reviewer model ID. Configure with provider. |
reasoningEffort | unset | Optional reasoning effort forwarded to the reviewer route. |
maxTokens | 900 | Maximum reviewer output tokens. |
maxContextMessages | 20 | Maximum recent transcript messages sent with the target answer. |
autoRevisionsPerTurn | 1 | Maximum automatic reconsiderations for one primary turn. |
reviewToolCalls | true | Whether to review assistant messages that contain no non-empty text, including tool-call-only messages. |
provider and model must both be present or both be omitted. Invalid self-contained configuration fails when the plugin loads.