Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

docs/config: subagent_depth defaults to 1 and is undocumented, so subagents can't delegate

Open Beginner friendly
#59,826 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start with the V2 agents and config documentation pages and search the config schema for experimental.subagent_depth, the only place the issue says its setting is documented. Explain the default and how to configure a nested delegation depth; done when users can find this guidance in the V2 docs. The issue does not name documentation file paths or tests.

Written by the indexing model from the issue text.

Description

Summary

experimental.subagent_depth defaults to 1 in 2.1.4, so a subagent cannot spawn another subagent ("Subagent depth limit reached (1)"). The default and the setting are not mentioned in the V2 docs (agents / config pages), so agent designs that delegate one level down (for example a coder subagent spawning explore) fail with no documented fix.

Environment

  • opencode version: 2.1.4
  • OS: Darwin 25.6.0 (darwin arm64); also Linux
  • Install/channel: latest (official installer)
  • Active plugins: not required to reproduce

Reproduction

  1. Define a subagent coder whose permissions allow subagent on explore.
  2. From the main session, spawn coder and ask it to delegate a search to explore.

Expected Behavior

Either a documented default and setting, or a default that allows at least one nested level (common pattern: main → specialist → explore).

Actual Behavior

The nested spawn fails with Subagent depth limit reached (1). Setting experimental.subagent_depth: 3 in opencode.json fixes it; the only place we found the setting was the config schema.

Additional Context

Related closed issues on depth-2 behaviour: #49342, #39112.

Dominant language
TypeScript
Stars
221k
Forks
29.6k
Avg merge
4h 55m
Merged PRs (30d)
500

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anomalyco/opencode

All issues in anomalyco/opencode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.