Skip to content

feat: Add /subagents command to view subagent tree #6299

@adam2am

Description

@adam2am

Problem

There's no way to see the full subagent hierarchy in one place.

Current Navigation Options

  1. <leader>+←/→ — Cycles through subagents one-by-one

    • Gets clunky fast with many subagents
    • No overview, just sequential stepping
  2. <leader>+↑ — Goes back to root session

    • Only option to "escape" the subagent tree
    • Can't jump to siblings or specific children
  3. Session list — Shows main sessions only (subagents are filtered out)

    • By design, to avoid clutter
    • But leaves no dedicated place to manage subagents

When This Hurts Most

  • Async multi-agent workflows (e.g., oh-my-opencode spawning parallel agents)
  • Cleaning up leftovers — need to find and delete stale subagents
  • Checking specific subagent details — cycling through 10+ agents to find one

Proposed Solution

Add /subagents command showing:

  • Full tree structure from root
  • Status indicators (idle/busy/retry)
  • Direct navigation (click to switch)
  • Delete (ctrl+d) and rename (ctrl+r) matching session list UX

This keeps the main session list clean while giving subagents a dedicated home.

Implementation

PR: #6289

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions