GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Limit Subagent Tree Depth · Issue #2906 · anomalyco/opencode

Limit Subagent Tree Depth #2906

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Limit Subagent Tree Depth#2906
Copy link
Assignees
thdxr

Description

@garrett-hopper
garrett-hopper
opened on Oct 1, 2025
Issue body actions

I'd like to be able to limit subagents from creating further subagents too deeply. Often I'll find them creating a deeply nested tree which usually means they're duplicating work that was done higher in the tree, or at the very least should be orchestrated by the parent agent explicitly instead of the subagent deciding to "analyze this github repo" on its own which in turn creates its own set of recursive trees.
Perhaps a default limit of 2-3 would make sense. In my experience, once it goes any further than that, it's usually an indication of a problem.

It'd be easier to catch these kinds of issues if sub-sub-agents were visualized. Currently only the initial call to the subagent is shown; ideally nested tool calls under that agent would be visually shown and indented to make it clear what's actively being done without having to switch to that agent's session.

Reacted by Dan (Danilo) Rio (Ribeiro), Anis Lazaar and 修昊

Activity

  1. github-actions commented on Oct 1, 2025

    @github-actions
    github-actionsBot
    on Oct 1, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Opencode either bugs out or spawns a ton of subagents #2894: Reports similar behavior where opencode spawns excessive numbers of subagents (50-100 in a session), causing suspicious behavior and potential performance issues

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 2, 2025

    @rekram1-node
    rekram1-node
    on Oct 2, 2025
    Member
    More actions

    yeah that makes sense

  3. rekram1-node
    assigned
    thdxr
    on Oct 2, 2025
  4. anis-dr commented on Mar 9, 2026

    @anis-dr
    anis-dr
    on Mar 9, 2026
    More actions

    This is actually a problem, GPT 5.4 especially loves to delegate work to subagents and it never stops.

    Reacted by Cole, wishiweresaitama and 修昊
  5. github-actions commented on May 9, 2026

    @github-actions
    github-actionsBot
    on May 9, 2026 – with GitHub Actions
    Contributor
    More actions

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

  6. github-actions
    closed this as not plannedon May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.