lynx-gt/dsh-subagent-tools ↗★ 1
dsh-subagent-tools
Enhanced subagent delegation tools for DeepSeek Harness: per-call model/provider/persona/toolFilter overrides, @preset: references, and provider/model composite ids — zero patches, bundle.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lynx-gt/dsh-subagent-tools说明文档
阅读完整 README ↗dsh-subagent-tools
为 DeepSeek Harness(dsh)提供增强版子代理委派工具:
按次指定 model / provider / persona / toolFilter、@preset: persona 引用、provider/model 复合模型 id——
以标准 bundle 形式交付,不修改任何官方包文件。
新增能力
官方 subagent / subagent_fork 工具只接受 description / prompt / run_in_background。本插件在不改变工具表面的前提下增加按次覆盖参数:
| 参数 | 作用 |
|---|---|
model | 本次调用覆盖子代理的 LLM 模型。支持裸 id(k3)或复合 id(kimi-code/k3,同时切换 provider)。 |
provider | 本次调用覆盖委派 provider(spawn / fork / ...)。 |
persona | 本次调用覆盖子代理 persona——原文文本,或 @preset: 引用已保存的 agent preset persona(按显示名或目录 id)。 |
toolFilter | 本次调用覆盖子代理的工具 allow/deny 过滤。 |
所有覆盖项默认回落到实例配置,裸安装行为与官方工具完全一致。
安装
dsh plugin --profile web add dsh-subagent-tools # npm
# 或:dsh plugin --profile web add github:lynx-gt/dsh-subagent-tools#main
# 或:dsh plugin --profile web add ./dsh-subagent-tools # 本地目录
安装后重启 dsh --profile web。
Web 会话:还要跑 preset 适配脚本(重要)
在 web profile 中,agent 工具由挂载的 agent preset 提供(默认 standard
preset 组合了 subagent / subagent_fork,指向 @deepseek-ai/dsh-tool-subagent),
不是由 host 平面提供。只靠 bundle patch 禁用官方行并插入自己的行,在 Web
会话里是不可见的——官方工具照常加载,本插件的按次覆盖参数根本不会出现
(headless 不需要这步,因为它的 agent 直接用 host 平面)。
运行 preset 适配脚本让 Web 会话使用本插件:
powershell -ExecutionPolicy Bypass -File install-preset.ps1 # Windows
# 或:./install-preset.sh # POSIX