HuanLinOTO/dsh-plugin-yet-another-subagent ↗★ 3
@huanlin/dsh-plugin-yet-another-subagent
Configurable subagent profiles with web UI settings, real-time toolcall/token display, and click-to-navigate child sessions.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HuanLinOTO/dsh-plugin-yet-another-subagent说明文档
阅读完整 README ↗yet-another-subagent
可配置的子代理(subagent)profile 系统,提供单一 subagent 工具 + profile 参数选择,支持 Web UI 设置、实时进度展示(工具调用/token/活动)、子代理树标签页、点击跳转子会话。
架构
单 bundle,三入口(host . + invariant ./invariant + client ./client)。
- Host 半(
src/index.ts):- 单一
subagent工具,通过profile枚举参数选择 profile(非每 profile 一个工具) - 复用官方
spawnprovider,支持前台(foreground)和后台(continuable / one-shot)两种模式 - Profile 状态通过 settings seam 持久化到
$DSH_HOME/settings.yaml - RPC CRUD:
ya-subagent/profiles.list/.add/.update/.remove(共享/api通道) - 两个 session projection:
subagentProfile(父会话 childId→profileId 映射 + callId→childId)+yaSubagentProgress(子会话实时 toolcall/token/活动状态)
- 单一
- Client 半(
src/client/index.ts):settings.section— Profile 编辑页tool.call.toolview(keysubagent)—SubagentCard工具调用卡片conversation.view(idsubagent-tree)—SubagentTreeView子代理树标签页
cordis.patch.yml 只禁用官方 tool-subagent(spawn 路径),保留 tool-subagent-fork(无名称冲突)。
配置
# cordis.patch.yml
- id: tool-subagent
disabled: true
- insert:
- id: yet-another-subagent
name: '@huanlin/dsh-plugin-yet-another-subagent'
config:
profiles:
- id: general
label: General
model: { kind: 'auto' }
persona: { kind: 'inherit' }
toolFilter: { kind: 'none' }
maxDepth: 3
backgroundMode: continuable
builtin: true
generalFixed: true
Profile 字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
id | string(小写字母/数字/连字符,1-32 字符) |