REALOIYO/what-sub-agents-doing-now ↗★ 2

what-sub-agents-doing-now

See what each subagent is actually doing: surface the progress notes a child wrote itself, not just running/inactive. Read-only, non-shadowing.

包名
what-sub-agents-doing-now
兼容性
待验证
Harness 依赖范围
>=0.2.1-rc.1
版本
0.2.2
许可证
MIT
最近更新
2026年10月31日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:REALOIYO/what-sub-agents-doing-now

用法 / Usage

模型侧只有一个新工具:

what_subagents_are_doing({
  scope?,            // 'children'(默认)| 'descendants'
  limit?,            // 每个子代理回传几条旁白,1-50,默认 6
  before?,           // 只取 seq 严格小于此值的旁白,用于往回翻
  includeNarration?, // false 时只给元信息,省 token
})

包名是 what-sub-agents-doing-now,工具名是 what_subagents_are_doing。 工具名不带 _now。

The package is what-sub-agents-doing-now; the tool is what_subagents_are_doing — no _now suffix.

返回什么 / What comes back

每个子代理一行,字段如下。模型实际读到的是渲染后的文本,不是原始 JSON。

字段含义
id / label子代理 id,和派活时给的名字
staterunning / idle / possibly-stuck / external
steps走了几步
lastTool最后调用的工具名
idleSeconds距上次活动多少秒
narration它自己写的进度旁白(最近的几条)
narrationTotal / narrationOmitted一共写了多少条 / 这次没给多少条
narrationSinceLastLook自你上次查看后新增几条
stepsSinceLastLook自你上次查看后走了几步
silentSteps走了这么多步但没写旁白(闷头干活)
oldestSeq本页最早那条的 seq,用于 before 往回翻
settled / settledSecondsAgo已结束子代理的收尾语,和它距今多久
note读不到数据时的显式说明
parent / depth仅 scope: 'descendants' 时出现:上级 id 和层级

mode 是内部字段(continuable / one-shot / external),一次性子代理会被 过滤掉,所以一般看不到它。

Each row carries the fields above. The model reads the rendered text, not raw JSON. parent and depth only appear under scope: 'descendants'.

状态含义 / What each state means

state什么情况意思
running子代理在跑正在干活
idle不在跑,空闲没超阈值没在干活
possibly-stuck不在跑,空闲超阈值该看一眼了,不代表坏了
external跑在本机之外读不到进度

idle 不等于干完了。 它只说明当前没有 turn 在执行 —— 可能在等下一条消息, 也可能真结束了。真正的完成信号是那条结算通知。

possibly-stuck 不是故障判定。 子代理正常等待下级时也会落到这个状态。

idle does not mean done. The real completion signal is the settlement notice. possibly-stuck is a heuristic nudge, not a failure verdict.

往回翻 / Paging backwards

(showing 6 of 37; 31 older omitted — pass before=412 to see them)

narrationTotal 是它一共写了多少条,narrationOmitted 是这次没给多少条。 看到这个数,自己决定要不要往前翻。

同一个子代理看第二次,会带增量:

(+5 since you last looked)

如果它走了不少步却没写旁白,会明说:

quiet: 13 more steps since you last looked, but no new progress notes
       — it is working without reporting

这条是为了解决"它明明在跑,但一句话不说,父代理完全不知道它在干什么"。 判定门槛是两次查看之间 ≥5 步且零旁白。低于这个数不报,因为正常的汇报节奏 本来就是两三个步一条,偶尔漏一条不算问题。

已结束的子代理保留最后那句话 / Finished children keep their closing message

子代理一结束,session 就卸载了,进度读不到。但它的收尾语还在:

7dca3e4e [idle] — 分析 A 组 asar 结构
    note: session unloaded after settlement; the closing message is preserved below
    closing message, 240s ago:
      英语完成,共 60 题。

收尾语不在子会话里,而在父会话收到的那条结算通知里。插件把它截下来存住了。

一次会话最多记 50 条,同一子代理只留最新一条。

The closing text is not in the child's session — it is in the settlement notice that lands in the parent. The plugin captures it there.

只捕获插件运行期间发生的结算。装之前就结束的子代理,仍然只有一行 "progress unavailable"。

Only settlements that happen while the plugin is running are captured.