GeezerVison is showing github.com — [FEATURE]: Live Subagents sidebar section in the TUI · Issue #41249 · anomalyco/opencode
[FEATURE]: Live Subagents sidebar section in the TUI #41249DescriptionFeature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
I built a live "Subagents" sidebar section as an external TUI plugin (npm: opencode-subagents-view, source: https://github.com/giovannic96/opencode-subagents-view). It shows direct child sessions for the current session, with a per-row status icon, live activity text (current tool/step), and idle-run reset behavior when a new run starts.
I think this fits better as a built-in feature than an external plugin, since it's TUI-level, uses live session events already part of the app, and users would expect it to be built in rather than installed separately.
Related discussion I found:
Note: this has been discussed before, see links above, I'm linking them for context, not filing a duplicate.
I have a complete, tested implementation adapted to match this repo's conventions (packages/tui/src/feature-plugins/sidebar/*, same order/id/state-access patterns as context.tsx/lsp.tsx/todo.tsx) ready to open as a PR once there's a green light on the direction. Reacted by Pierre Beucher, Hannah Vivian Shaw and Stefan Activitygiovannic96 commented on Aug 8, 2026 Here's a working proof-of-concept (ported from an external plugin I built and published first: opencode-subagents-view) showing a "Subagents" sidebar section, placed between the built-in LSP and Todo sections. It tracks child sessions spawned via the task tool and shows live status + activity.
Single subagent, active
Shows the status icon, title, and a live activity line (current tool call) wrapped with a hanging indent so continuation lines stay aligned under the title instead of falling back to column 0.
Three subagents running in parallel
Each row updates independently with its own live activity as the subagent works (shell commands, file reads, etc).
Collapsed
Click the header to collapse/expand the Subagents section; the active count stays visible either way.
Mixed active/idle
As subagents finish one by one, they flip to an idle (grey) state while others keep running.
All finished
Once everything is idle, activity text clears and the count resets to 0.
Happy to open a PR for this (packages/tui/src/feature-plugins/sidebar/subagents.tsx + a companion tracker file, registered at order: 350) whenever it'd be useful. Let me know if you'd want any changes to the design/behavior first.
Reacted by pedroGarrido1806, Andrada Gug, Hueristic and Abdulla Abdurakhmanov Reacted by Angelo Puglisi pedroGarrido1806 commented on Aug 10, 2026 We've hit this exact gap, no visibility into subagent status/activity in the TUI while a task is running. We are working building some harness using Opencode, and this would help a lot! Would use this immediately if merged. Reacted by giovannicala4321, Hueristic and Giovanni Calà Reacted by giovannicala4321 and Giovanni Calà andradagug commented on Aug 12, 2026 This feels like a very practical improvement for anyone using subagents regularly. A status alone tells you that a subagent is running, but seeing what it’s actually doing gives you a better sense of its progress and whether you need to step in. Would definitely use this. Reacted by giovannicala4321, Hueristic and Giovanni Calà Reacted by giovannicala4321 and Giovanni Calà giovannic96 commented on Aug 20, 2026 @kommander Following up on this since I have the implementation ready and tested.
Given that #36042 was recently closed by automated cleanup and this proposal builds on the same direction with live per-subagent status/activity, I'd be happy to open the PR if this direction looks good. iceteaSA commented on Aug 29, 2026 I filed a duplicate of this (#46110) before finding yours — closed it, this is the original. #46109 implements it: a "Subagents" sidebar section listing the session's child sessions, click to open one.
One difference from your plugin worth flagging. I filtered to active subagents, because an orchestration session here accumulated hundreds of child sessions and listing all of them made the sidebar unusable. The non-obvious part: you can't derive "active" from the parent's task tool part — a background dispatch completes that part the moment the child spawns, so of the last 300 task parts on my machine 270 read completed and none read running, including one that was actively running at the time. Liveness has to come from the child session's own status (api.state.session.status(childID), where idle sessions are simply absent from the map). Cost me a shipped-but-invisible feature to find.
Your live activity text (current tool/step) is a nice touch mine doesn't have. Reacted by Hueristic and Giovanni Calà Reacted by Giovanni Calà Hueristic commented on Aug 30, 2026 Came here to suggest just this. Reacted by giovannicala4321 and Giovanni Calà Codestz commented on Sep 25, 2026 I built this as a plugin, opencode-cockpit's Subagents bay (https://github.com/Codestz/opencode-cockpit), working on 1.18 and 2.0.15. That could be useful as a reference for #46109. Things that turned out to matter once people used it:
Happy to share measurements or help test #46109. iceteaSA commented on Sep 25, 2026 Thanks, this is useful. On the first point, #46109 already does that: clicking a row, active or recent, opens that subagent's session in the normal session view, so you get its whole run rather than the current tool. The other three are about the task tool and messaging rather than the sidebar, and I was asked to keep this PR small, so I've left them out. For continuing the same subagent, #34947 lets the parent give a subagent a name (task_id: "explore-auth"), which is easier to reuse than a generated id once it has scrolled out of context. Stop reasons are #46721 and the finished-subagent reply is #50751, as you say. Testing #46109 would be welcome. neriousy commented on Oct 21, 2026 Thanks for building this, and for the detailed screenshots. V2 now has a built-in Subagents view: press ↓ in the prompt (the session.child.first keybind) or click the subagent count in the prompt footer to open the Subagents tab. It lists the session's subagents with their status, switches between active and finished ones, opens a subagent with Enter, and interrupts a running one with ctrl+d (https://opencode.ai/v2/docs/cli/keybinds).
We're not planning a second sidebar version on top of that, but TUI plugins can render into the sidebar (the sidebar.content slot), so your plugin is still a good option for anyone who wants the sidebar layout with live activity text. Closing as completed. edwardgra4ev commented on Nov 22, 2026 For search visitors landing here: both surfaces now have community plugins.
- TUI —
opencode-subagents-view by @giovannic96, as described above.
- Desktop 2.3.x — https://github.com/edwardgra4ev/opencode-subagent-dashboard: persistent side panel per session, direct children as a tree by
parentID, status read from the child session's own status, plus token buckets, cost and elapsed time, click a row for detail or open the child's chat in a new tab.
Neither is built in. The request covering both surfaces is #57097.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|