Skip to content

[FEATURE]: Allow checking context window inside subagents #53024

Closed

Description

@SodaWithoutSparkles

Feature 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

In opencode v1, we can see subagent's context window percentage. This is now gone (or at least not on by default and I cannot find it) in opencode v2. This removes the chance for the human observer to look at the context window usage.

Use case: For example, a sub-agent is being tasked with too much things that it cannot handle inside a small context window. a human watching can determine if it it about to reach a "comfortable" context window (e.g. 40% or 80%) and interrupt it, asking the dispatcher to resume the agent to "wrap up your work, your context window is running out"; and start another sub-agent.

A even better approach would be to automatically set a threshold, which after met would inject the sub-agent with a message, instructing it to wrap up and report.

Activity

  1. github-actions commented on Oct 3, 2026

    @github-actions
    Contributor

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

    • #48548: The TUI sidebar, including per-session context usage, is missing when viewing a subagent session.
    • #22103: Request to show subagent token usage in the TUI.
    • #20644: Request to show current context usage for parent and child sessions in the TUI sidebar.
  2. SodaWithoutSparkles commented on Oct 3, 2026

    @SodaWithoutSparkles
    Author

    #48548 TUI sidebar is just an impl of showing context usage; acceptable

    Closing because of duplicated; will re-open for the agent gets notified of their context window idea

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