1339190177/dsh-consult0

dsh-consult

Local dsh advisor plugin: cross-provider second opinions. Registers the `consult` model tool (F3/F4), an OpenAI-compatible POST /v1/chat/completions endpoint on the existing web port (F2, Bearer token from settings.yaml), DSH_MODEL=provider/model main-agent rerouting via the agent/request waterfall (F1), upstream route reporting (F5) and a JSONL audit trail (F6). v1.1: scout mode — search-enabled investigative advisor (DeepSeek official + native web_search) for problems neither the agent nor the human can solve.

包名
dsh-consult
版本
1.1.1
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:1339190177/dsh-consult

配置

组合层(bundle patch 的 config):

- id: dsh-advisor
  name: 'dsh-advisor'
  config:
    httpEnabled: true   # false 可关掉 HTTP 端点(consult 工具不受影响)

用户层(~/.dsh/settings.yaml,优先):

advisor:
  token: dsha_...            # 首次启动自动生成;换 token 直接改这里
  route:                     # 可选:固定 consult 的默认顾问路由
    provider: deepseek
    model: deepseek-v4-flash

使用示例


# F3:会话内 agent 自动可用 consult 工具(无需配置)

实测记录(2026-08-21)

  • 401(无/错 token)、405(GET,带 Allow: POST)、400(裸模型名,列出可用 provider)✓
  • 非流式 fib(10)=55,SSE 分片 + usage + [DONE],json_schema 结构化输出 ✓
  • DSH_MODEL headless:日志显示 改道 zai-coding-cn/glm-5.3 → deepseek/deepseek-v4-flash, 会话 request/header 记录 deepseek 路由 ✓
  • GLM agent 会话内调 consult → 自动路由 deepseek(XQAPI 中转),结构化意见 + 审计落盘 ✓
  • P50:HTTP 化后 5–9s(旧 headless CLI ~7s + 冷启动)✓

未做 / 边界

  • F7(配额限速)、F8(并发 quorum):未实现,留待后续
  • --model CLI 旗标本体需改 dsh 源码(路径 A 提 issue);本插件以 DSH_MODEL env
    • agent/request 改道达成同等效果且更稳
  • consult 的 adopted 回填目前靠主模型在回复中标注「已采纳/未采纳」(审计字段已预留)