Khorsheed/dsh-plugins--packages-local-agent-tool-subagent ↗★ 0

@khorsheed/dsh-local-agent-tool-subagent

Family-owned subagent delegation tool over the ctx.subagents seam with optional one-shot resume: the model may pass the dsh child session id returned by the first delegation to continue the same CLI conversation in a later round 为模型提供调用本地子代理CLI的工具,需配合对应代理插件。

패키지
@khorsheed/dsh-local-agent-tool-subagent
호환성
미검증
Harness peer 범위
^0.1.0-rc.6
Cordis peer 범위
^4.0.1
버전
0.1.0-rc.7
라이선스
MIT
최근 업데이트
2026. 9. 28.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

配置

配置写在 harness bundle patch 挂出的工具行上:

键取值默认含义
providerstring(必填)—起委派的 ctx.subagents 提供方名(如 kimi-cli)
toolNamestringsubagent模型可见的工具名;同时挂多行时各不相同
toolsall | noneall这一行注不注册它的模型可见工具

tools: none 只裁掉模型可见的那一个工具。provider 行照挂,/codex login、/kimi status 这类动词与 ctx.localAgent 服务面都在 provider 包里,一概不受影响——所以经服务面驱动 CLI 的编排器完全不受这个开关影响,受影响的只有会话里的模型。

两个取值而不是分组清单:每挂一行只注册一个工具,没有可分的组(datasets 与 mission 的 tools 分档是因为它们各注册一打)。

要关就得关在这里,而不是 agent 预设里:这一行挂在 profile 根上,预设只能在已注册的工具里挑,减不掉任何一个。评测类组合正是这样把宿主 CLI 的执行路从模型手里拿走,而把同一批 CLI 经服务面留给编排器(见 profiles/web-eval 的「工具按域开放」)。

- id: tool-subagent-kimi
  name: '@khorsheed/dsh-local-agent-tool-subagent'
  config:
    provider: kimi-cli
    toolName: subagent_kimi
    tools: none

patch 层的 config 是整值替换而不是深合并,所以覆盖这一行时 provider 与 toolName 要一并重抄——provider 必填,漏了整个组合会在 schema 校验上炸掉。