Skip to content

[FEATURE]:can subagent create subagent?my context is low and task is heavy #50539

Closed

Description

@Pressten

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

can subagent create subagent?my context is low and task is heavy,I want subagent can create subagent

Activity

  1. github-actions commented on Sep 22, 2026

    @github-actions
    Contributor

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

    Please review that issue and add a comment there if you have additional context or a different use case in mind.

  2. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the request, @Pressten!

    You'd like subagents to be able to start their own subagents, so a heavy task can be split up without filling one context.

    OpenCode v2 can already do this, but it's off by default: experimental.subagent_depth defaults to 1, so only the main agent can start subagents. To allow nesting, raise it in your opencode.json:

    {
      "$schema": "https://opencode.ai/config.json",
      "experimental": { "subagent_depth": 2 }
    }

    2 allows main → subagent → subagent. Higher values allow deeper chains. The subagent also needs permission to use the subagent tool. In v2 the setting has to go under experimental. The config docs currently show it at the top level, which v2 doesn't accept.

    Related issues:

    If this doesn't cover what you need, please reply with more detail. Maintainers will take that into account.

  3. Tarquinen commented on Nov 2, 2026

    @Tarquinen
    Member

    Thanks for the request! This is already possible: set experimental.subagent_depth above 1 in your config to let subagents start their own subagents. Closing this issue.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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