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 分析
通过大小模型协同降低高难度任务的出错率。适合在开发中需要高级专家模型把关、同时希望控制日常调用成本的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:glangzh/dsh-advisorドキュメント
README 全文を読む ↗使用
安装后无需额外操作——Agent 的系统提示中已内置升级准则,遇到下面几类情况会自动
调用 advisor 工具咨询:
- 影响多个文件/组件的架构决策;
- 有多种合理解释的模糊需求;
- 认证、授权、数据校验等安全敏感代码;
- 复杂问题中你自己不确定的方案。
如果你希望明确要求它咨询顾问,直接说即可,例如:
我们要给这个模块加 OAuth2,但代码里已有 3 种 session 方案。先请顾问评估哪种最合理,再动手。
配置
可在安装配置中调整以下项(默认值已够用,通常无需改动):
| 字段 | 默认值 | 说明 |
|---|---|---|
advisorModel | deepseek-v4-pro | 顾问使用的模型 |
maxTokens | 4096 | 顾问每次回复的输出上限 |
timeoutMs | 180000 | 顾问调用超时时间 |
- Agent 预设安装:修改
~/.dsh/.agent-presets/advisor/agent.cordis.yml中 advisor 行的config:。 - 全局安装:修改 profile 的
cordis.patch.yml中 advisor 行的config:。