glangzh/dsh-advisor1

dsh-advisor-plugin

Advisor strategy for DeepSeek Harness: escalate hard decisions from the executor (deepseek-v4-flash) to deepseek-v4-pro through the official subagents channel.

AI Analysis

通过大小模型协同降低高难度任务的出错率。适合在开发中需要高级专家模型把关、同时希望控制日常调用成本的用户。

Package
dsh-advisor-plugin
Version
0.1.0
Last updated
Aug 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:glangzh/dsh-advisor

使用

安装后无需额外操作——Agent 的系统提示中已内置升级准则,遇到下面几类情况会自动 调用 advisor 工具咨询:

  • 影响多个文件/组件的架构决策;
  • 有多种合理解释的模糊需求;
  • 认证、授权、数据校验等安全敏感代码;
  • 复杂问题中你自己不确定的方案。

如果你希望明确要求它咨询顾问,直接说即可,例如:

我们要给这个模块加 OAuth2,但代码里已有 3 种 session 方案。先请顾问评估哪种最合理,再动手。

配置

可在安装配置中调整以下项(默认值已够用,通常无需改动):

字段默认值说明
advisorModeldeepseek-v4-pro顾问使用的模型
maxTokens4096顾问每次回复的输出上限
timeoutMs180000顾问调用超时时间
  • Agent 预设安装:修改 ~/.dsh/.agent-presets/advisor/agent.cordis.yml 中 advisor 行的 config:
  • 全局安装:修改 profile 的 cordis.patch.yml 中 advisor 行的 config: