oira666_pi-subagent 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -198,8 +198,33 @@ Subagent tool calls and live activity lines render a dim `hh:mm:ss` timestamp.
198
198
  The collapsed view shows every direct child as `Name (agent-type)`, two prompt
199
199
  lines, its current status, and `last action`. That timestamp is the newest
200
200
  activity anywhere in the child's recursive subtree, so active grandchildren
201
- keep their ancestor visibly alive. Press `Ctrl+O` to expand the full recursive
202
- tree, including every agent's complete prompt and latest activity lines.
201
+ keep their ancestor visibly alive. Press `Ctrl+O` for an instant in-memory
202
+ view: the newest subagent tool call is shown verbosely, while older calls stay
203
+ as lightweight trees. Ctrl+O never reads historical child session transcripts.
204
+
205
+ Use `/subagent-expand <name>` (for example `/subagent-expand Olga`) to open a
206
+ centered, turn-oriented popup. It starts on the latest turn and shows only that
207
+ turn's task/resume prompt, final response, compact tool summary, and collapsed
208
+ named children. Use Left/Right to change turns and `T` to open that turn's tool
209
+ list; delegation tool rows include a minimal tree of their named children.
210
+ Select a tool with Up/Down and press Enter to inspect its full arguments and
211
+ result. Every overview also shows its distinct direct children across all turns;
212
+ press `C`, select a child, and press Enter to open that child's same expanded
213
+ view. `Esc` returns to the parent. `/` opens visible search, `n`/`N` moves
214
+ through matches, and `q` closes from anywhere. The command offers fuzzy name
215
+ completion, and running `/subagent-expand` with no argument opens a searchable
216
+ picker (type to filter hundreds of names by name, agent type, or task). It is
217
+ available only in the interactive TUI.
218
+
219
+ In the tool list, delegation rows expand into their named children, and those
220
+ child rows are selectable: press Enter on one to open that subagent's own view.
221
+
222
+ The `WITH SUBS` status line aggregates `ctx.sessionManager.getEntries()`, which
223
+ is the approach Pi documents for extension-side token stats. It applies Pi's own
224
+ rules (`AgentSession.getSessionStats`): every billed entry counts, including
225
+ off-branch retries, history compacted away, branch summaries, and tool-reported
226
+ usage. Delegated cost is added once, from the durable subagent usage summary, so
227
+ the combined line can never be lower than Pi's parent-only cost.
203
228
 
204
229
  In the interactive TUI the extension publishes the combined `total` usage line
205
230
  (parent + all subagents, recursively) via Pi's normal `ctx.ui.setStatus()`