Skip to content

docs(agents): explain nested subagent depth - #59905

Open
nateEc wants to merge 1 commit into
anomalyco:devfrom
nateEc:subagent-depth-docs
Open

nateEc wants to merge 1 commit into
anomalyco:devfrom
nateEc:subagent-depth-docs

Conversation

@nateEc

@nateEc nateEc commented Oct 28, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #59826

Type of change

  • Documentation

What does this PR do?

Document the default depth limit on the agents page, show how to allow one nested subagent, and explain that delegation still requires permission.

How did you verify your code works?

  • bun typecheck and bun run build in services/www
  • bun run check at the repository root with Bun 1.4.4

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Related: #53356, #50539, #58489

说明默认深度限制并提供嵌套配置示例。

提示子代理权限要求,并验证网站类型检查和构建。

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I checked the new section against the code: the default depth of 1 and the depth-check logic in packages/core/src/tool/plugin/subagent.ts match the text, the built-in general agent does deny subagent by default (packages/core/src/plugin/agent.ts), and the /config#subagent-depth link points to an existing heading. No concerns.

Public API: unchanged (documentation only).

Related: #53356, #50539, #58489

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant