scwlkq/dsh-second-opinion0

dsh-second-opinion

为 DeepSeek Harness 助手决策提供独立的第二模型审查功能。

AI 分析

核心用途是引入第二模型对主模型的决策进行独立审查。适合需要对 AI 决策进行双重校验、纠偏或重构任务的用户,支持自定义审查模型。

包名
dsh-second-opinion
版本
0.1.0
许可证
MIT
最近更新
2026年9月7日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:scwlkq/dsh-second-opinion

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 variableDefaultMeaning
DSH_REVIEW_MODEadvisorySelects advisory or auto.
DSH_REVIEW_PROVIDERunsetReviewer provider ID. Must be set together with DSH_REVIEW_MODEL.
DSH_REVIEW_MODELunsetReviewer 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
OptionDefaultMeaning
modeadvisoryReview-only or automatic reconsideration behavior.
providertarget message routeDedicated reviewer provider ID. Configure with model.
modeltarget message routeDedicated reviewer model ID. Configure with provider.
reasoningEffortunsetOptional reasoning effort forwarded to the reviewer route.
maxTokens900Maximum reviewer output tokens.
maxContextMessages20Maximum recent transcript messages sent with the target answer.
autoRevisionsPerTurn1Maximum automatic reconsiderations for one primary turn.
reviewToolCallstrueWhether 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.