kiligzzz/dsh-agent-dispatch0

@kiligzzz/dsh-agent-dispatch

Pre-configured expert agents with automatic routing for DeepSeek Harness: fixed-persona continuable subagents (requirement analyst / code reviewer / log tracer / SQL analyst), per-expert model routes with failover, dispatch/followup/list/squad/import tools, and a routing prompt section. Dual-face dsh plugin (host + browser half), no DSH source changes.

包名
@kiligzzz/dsh-agent-dispatch
版本
1.0.0
许可证
MIT
最近更新
2026年8月28日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kiligzzz/dsh-agent-dispatch

配置

专家(experts.json

{
  "version": 1,
  "deletedIds": [],
  "experts": [
    {
      "id": "log-tracer",
      "name": "线上排查员",
      "emoji": "🛠️",
      "triggers": "报错日志;订单异常;接口报错;线上问题排查",
      "systemPrompt": "……(完整专家系统提示词)",
      "routes": [
        { "provider": "deepseek-official", "model": "deepseek-v4", "effort": "high" },
        { "provider": "kimi-coding", "model": "k3-256k", "effort": "high" }
      ],
      "enabled": true
    }
  ]
}
  • routes:模型优先级表,首个失败自动换下一个;留空继承主会话当前模型。
  • effortminimal/low/medium/high/xhigh/max(xhigh/max 底层钳到 high)。
  • 删除内置专家后不会在重启时复活(deletedIds 持久标记;重新 upsert 同名 id 视为恢复)。
  • 改动保存即生效,免重启(下一轮对话即生效)。

小队(squads.json

{
  "version": 1,
  "deletedIds": [],
  "squads": [
    {
      "id": "my-squad",
      "name": "我的小队",
      "emoji": "",
      "description": "示例",
      "enabled": true,
      "steps": [
        { "expertId": "log-tracer",   "phase": "日志", "dependsOn": [], "instruction": "{input}" },
        { "expertId": "sql-analyst",  "phase": "数据", "dependsOn": [], "instruction": "查表核对:\n{input}" },
        { "expertId": "code-reviewer", "phase": "审查", "dependsOn": [0, 1], "instruction": "基于日志+数据:\n{input}\n\n【日志结论】\n{prev:0}\n\n【数据结论】\n{prev:1}" }
      ]
    }
  ]
}
  • dependsOn 为步骤下标数组,空数组 = 首批并行。
  • instruction 支持两个占位符:{input}(用户目标全文)和 {prev:N}(第 N 步结果摘要)。
  • 校验规则(与 expert_squad 工具相同):下标越界/自指/非数组单独报错,存在循环依赖报「依赖环」。