Lawrence7y/dsh-harness-pilot ↗★ 0

@dsh-external/dsh-harness-pilot

把其他 harness(opencode / Antigravity / claude / codex / ZCode / MiMo / Cursor / Qoder …)接入 DeepSeek Harness:作为 DSH 子代理派发任务,可指定各家模型,并在设置页里查看已配置的 harness 适合需要跨平台调度其他AI助手、混合使用多种模型的用户。

パッケージ
@dsh-external/dsh-harness-pilot
互換性
未検証
Harness ピア範囲
>=0.0.1-rc <3
Cordis ピア範囲
>=4.0.0-rc <5
バージョン
0.1.0
ライセンス
BSD-3-Clause
最終更新
2026/10/02

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Lawrence7y/dsh-harness-pilot

ドキュメント

README 全文を読む ↗

配置示例(profile 覆盖差异)

- id: harness-pilot
  name: '@dsh-external/dsh-harness-pilot'
  config:
    defaultTarget: opencode
    pythonPath: ''            # 窗口助手用的 python;留空自动探测
    targets:
      - name: opencode
        args: ['run', '--model', 'opencode-go/deepseek-v4.1-flash']   # 固定模型
      - name: agy
        args: ['--print']
        promptViaStdin: true   # prompt 走 stdin 而不是命令行参数
        timeoutMs: 900000
      - name: zcode
        command: 'D:\zai\ZCode\ZCode.exe'
        cdp:
          launchArgs: ['--remote-debugging-port=
']
          inputSelector: 'textarea'

作为子代理使用

  • 本插件为每个目标注册 harness-(默认目标额外注册 harness-pilot)。
  • harness_agent 走这条路径;也可以用宿主的 tool-subagent 挂一个标准工具:
    - insert:
        - id: harness-subagent-opencode
          name: '@deepseek-ai/dsh-tool-subagent'
          config:
            provider: harness-opencode-flash
            toolName: harness_opencode
    

模型:跨 harness 用已配置的供应商模型

两层模型信息都能看到,也能在派发时指定:

  • DSH 侧:harness_models 直接读 ctx.llm,列出本 profile 配置的供应商路由与模型 (实测 8 条:deepseek-official / opencode-go / opencode1 / xiaomi / step / synapse …)。
  • harness 侧:目标配置里的 modelsCommand 会去问那个 CLI 自己有哪些模型并缓存。 实测 opencode models 返回 408 个、agy models 14 个、pi --list-models 45 个、mimo models 7 个。
  • 派发时指定:harness_dispatch(model=…) / harness_agent(model=…)。落地方式按目标配置:
    • modelArgs: ['--model','{model}'] → 追加到 argv(opencode / agy / claude / mimo / pi / grok / kimi / qodercli…)
    • acpModel → ACP 会话内 session/set_config_option(opencode / mimo / kimi / codebuddy)
    • 两者都没有的 GUI harness(ZCode / Cursor / Qoder IDE / Antigravity…)只能在它们自己的 UI 里选模型,插件会如实说明。

每个目标绑定不同模型也很简单(内置 opencode-flash 就是例子):把模型写进 args 即可。