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.
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:REALOIYO/what-sub-agents-doing-nowドキュメント
README 全文を読む ↗用法 / 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 iswhat_subagents_are_doing— no_nowsuffix.
返回什么 / What comes back
每个子代理一行,字段如下。模型实际读到的是渲染后的文本,不是原始 JSON。
| 字段 | 含义 |
|---|---|
id / label | 子代理 id,和派活时给的名字 |
state | running / 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不是故障判定。 子代理正常等待下级时也会落到这个状态。
idledoes not mean done. The real completion signal is the settlement notice.possibly-stuckis 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.