Subagent overview and detail view (ctrl-g) #114

Merged
hermes merged 1 commits from subagent-panel into main 2026-10-02 14:17:07 +00:00
Collaborator
  • Registry Subs in State: every task child is kept (status, calls, usage, live Agent) after it ends.
  • Child events flow to the UI (Live hook on the child bus); the TUI keeps a Transcript per agent.
  • List above the footer, bottom right, max 5 rows: spinner/check, id, kind, task, time, calls, tokens. Hidden when no agent exists.
  • ctrl-g focuses it (up/down, enter opens, esc/ctrl-g closes). Detail view = that agent live transcript + input.
  • Prompting: while running, the message is delivered at the child next turn end (same steering model as the parent, no interruption); after it finished, the child conversation continues in the background. Counts against the 3-parallel limit.
  • ctrl-c in detail aborts that agent only; ctrl-s sends its last answer to the main chat as [subagent N] ....
  • Usage of continued runs is rolled into the session total (delta only).
  • Registry keeps the last 20 children; transcripts of dropped ones stay in <session>.sub/.

Tests: subagent.rs (message during run reaches next request; continue finished child + usage delta), agents.rs (rows at 40/60/100 cols, last-5 window with selection, detail render), lib.rs ctrl-g flow incl. overview row drawn. all.sh green locally (130 unit tests).

- Registry `Subs` in `State`: every `task` child is kept (status, calls, usage, live Agent) after it ends. - Child events flow to the UI (`Live` hook on the child bus); the TUI keeps a Transcript per agent. - List above the footer, bottom right, max 5 rows: spinner/check, id, kind, task, time, calls, tokens. Hidden when no agent exists. - `ctrl-g` focuses it (up/down, enter opens, esc/ctrl-g closes). Detail view = that agent live transcript + input. - Prompting: while running, the message is delivered at the child next turn end (same steering model as the parent, no interruption); after it finished, the child conversation continues in the background. Counts against the 3-parallel limit. - `ctrl-c` in detail aborts that agent only; `ctrl-s` sends its last answer to the main chat as `[subagent N] ...`. - Usage of continued runs is rolled into the session total (delta only). - Registry keeps the last 20 children; transcripts of dropped ones stay in `<session>.sub/`. Tests: subagent.rs (message during run reaches next request; continue finished child + usage delta), agents.rs (rows at 40/60/100 cols, last-5 window with selection, detail render), lib.rs ctrl-g flow incl. overview row drawn. all.sh green locally (130 unit tests).
hermes added 1 commit 2026-10-02 14:14:03 +00:00
hermes merged commit c15783129d into main 2026-10-02 14:17:07 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#114