
HuanLinOTO/dsh-plugin-yet-another-subagent
70最近提交 2026年8月15日
dsh-plugin-yet-another-subagent DSH 插件
本插件为 DSH 提供可配置的子代理(subagent)profile 系统。它通过单一 `subagent` 工具配合 `profile` 参数选择,让用户灵活管理多个子代理配置。同时提供 Web UI 设置页面、实时进度展示(工具调用/token/活动)以及子代理树标签页,可点击跳转子会话。
如何安装 dsh-plugin-yet-another-subagent DSH 插件
dsh plugin --profile web add @huanlin/dsh-plugin-yet-another-subagent复制不会执行命令。安装 dsh-plugin-yet-another-subagent DSH 插件前请核对仓库和版本。
dsh-plugin-yet-another-subagent DSH 插件数据来源
dsh-plugin-yet-another-subagent DSH 插件快照日期:2026年8月16日
discovered
dsh-plugin-yet-another-subagent DSH 插件能做什么
- 单一 `subagent` 工具,通过 profile 枚举参数选择 profile
- 支持前台和后台(continuable / one-shot)两种模式
- Profile 状态通过 DSH settings seam 持久化到 `$DSH_HOME/settings.yaml`
- 提供 RPC CRUD 接口:profiles.list、profiles.add、profiles.update、profiles.remove
- 实时进度展示:工具调用、token 使用、活动状态
- 子代理树标签页,可点击跳转子会话
dsh-plugin-yet-another-subagent DSH 插件适合哪些场景
- 为不同任务配置不同的子代理 profile(如通用、编程、写作)
- 在复杂多步骤任务中,将子代理作为后台进程运行
- 通过 Web UI 直观地管理子代理配置和查看进度
- 监控子代理的实时工具调用和 token 消耗
dsh-plugin-yet-another-subagent DSH 插件适合谁
- 需要灵活配置子代理的 DSH 用户
- 希望可视化子代理执行过程的高级用户
dsh-plugin-yet-another-subagent DSH 插件的限制
- 旧会话不兼容:升级后旧会话的结果卡片无法点击,因渲染格式变更
- Projection schema 变更需要 host 重启才能生效(stateVersion 2)
- 无 settings provider 的无头组装回退到内存状态,不持久化
dsh-plugin-yet-another-subagent DSH 插件的仓库 README 摘录
以下文字摘自 dsh-plugin-yet-another-subagent DSH 插件的上游仓库 HuanLinOTO/dsh-plugin-yet-another-subagent 的 README,版权归原作者,仅作引用。
> 📌 本插件已收录于 [dshfind](https://dshfind.com/zh) 插件超市,点击上方徽章直达主页。 # yet-another-subagent [](https://www.npmjs.com/package/@huanlin/dsh-plugin-yet-another-subagent) 可配置的子代理(subagent)profile 系统,提供单一 `subagent` 工具 + `profile` 参数选择,支持 Web UI 设置、实时进度展示(工具调用/token/活动)、子代理树标签页、点击跳转子会话。 ## 架构 单 bundle,三入口(host `.` + invariant `./invariant` + client `./client`)。 - **Host 半**(`src/index.ts`): - 单一 `subagent` 工具,通过 `profile` 枚举参数选择 profile(非每 profile 一个工具) - 复用官方 `spawn` provider,支持前台(foreground)和后台(continuable / one-shot)两种模式 - Profile 状态通过 settings seam 持久化到 `$DSH_HOME/settings.yaml` - RPC CRUD:`profiles.list` / `.add` / `.update` / `.remove`(专用 `/ya-subagent` 通道,不共享 `/api`) - 两个 session projection:`subagentProfile`(父会话 childId→profileId 映射 + callId→childId)+ `yaSubagentProgress`(子会话实时 toolcall/token/活动状态) - **Client 半**(`src/client/index.ts`): - `settings.section` — Profile 编辑页 - `tool.call.toolview`(key `subagent`)— `SubagentCard` 工具调用卡片 - `conversation.view`(id `subagent-tree`)— `SubagentTreeView` 子代理树标签页 `cordis.patch.yml` 只禁用官方 `tool-subagent`(spawn 路径),保留 `tool-subagent-fork`(无名称冲
阅读完整 README仓库许可: NOASSERTION
dsh-plugin-yet-another-subagent DSH 插件常见问题
如何安装这个插件?
在终端中运行 `dsh plugin --profile web add @huanlin/dsh-plugin-yet-another-subagent`。然后重启 `dsh web` 进程,并在浏览器中硬刷新(Ctrl+Shift+R),即可看到新的设置页面和工具。
如何配置子代理 profile?
你可以通过插件提供的 Web UI 设置页面进行配置,也可以直接在 `cordis.patch.yml` 中编辑 `profiles` 字段。此外,插件还提供了 `profiles.list` 和 `profiles.add` 等 RPC 接口,方便程序化管理。
子代理可以在后台运行吗?
可以。插件支持两种后台模式:`continuable`(会话可延续)和 `one-shot`(一次性运行并返回)。在 profile 配置中设置 `backgroundMode` 字段即可选择。
升级后旧会话不工作了,怎么办?
这是一个已知限制。由于渲染格式变更,旧会话的结果卡片无法点击。只有重启 host 后开始的新会话才能正常工作。建议将旧会话归档或直接使用新会话。
如何查看子代理工具调用的进度?
插件在 Web UI 中提供了实时进度展示,包括工具调用、token 使用和活动状态。你还可以打开子代理树标签页(id: `subagent-tree`)查看层级结构,并点击进入子会话。