Skip to content

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

Closed as not planned
Closed as not planned

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 28, 2025
  2. github-actions commented on Dec 28, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Both issues propose showing the full subagent hierarchy in one place with status indicators, direct navigation, and the ability to delete/rename sessions. #6183 suggests using a keybind-triggered dialog, while this issue proposes a /subagents command. These could potentially be consolidated into a single feature that supports both access methods.

  3. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  4. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  5. gauravlochan commented on Jun 2, 2026

    @gauravlochan

    @adam2am - curious - what happened to this PR? What would it take to get this functionality in?
    And can you attach a screenshot of what this looks like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions