lof6yo/dsh-opencode-live ↗★ 0

dsh-opencode-live

OpenCode as a DSH subagent, with a native live trace panel for its agent, tools, and self-spawned subagents.

Package
dsh-opencode-live
Compatibility
Unverified
Harness peer range
>=0.2.1-rc.2 <0.2.3
Version
0.14.3
License
MIT
Last updated
Oct 29, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lof6yo/dsh-opencode-live

配置

- id: opencode-live
  name: dsh-opencode-live
  config:
    # 省略时依次尝试 $OPENCODE_BIN、~/.opencode/bin/opencode、PATH
    command: opencode
    args: ['acp']
    # ask    = 把 OpenCode 的权限请求转成 DSH 问题卡片(允许一次 / 始终允许 / 拒绝)
    # allow  = 自动同意(OpenCode 自己的 deny 规则仍然生效)
    # reject = 只读子智能体
    permission: ask
    # 问题送不到你面前时的回退(没有应答者 / 超时 / 运行被取消)
    askFallback: reject
    # 问题等待上限(毫秒,0 = 一直等)
    askTimeoutMs: 600000
    # 面板路径,默认 /opencode-live
    path: /opencode-live
    # 传给子进程的环境变量(在凭据清洗之后合并)
    env: {}
    # 模型/agent 同样属于插件配置,可以在「设置 → 插件 → dsh-opencode-live」
    # 的配置页里改(会写回 profile patch)。留空则用 OpenCode 的默认值:
    # ACP 不会继承 preset 里 agent→model 的映射。
    # model: opencode-go/deepseek-v4.1-flash
    # mode: orchestrator