A2A Check

EX-03: The nesting depth of subagents is not fixed

Area: Exceptions and conflicts · Severity: notice · Catalogue version 1.104.0

Why it matters

Without a fixed value the default of the provider applies, and it can change with a new version.

Before (example)

Example: in versions 2.1.217 and 2.1.218 a subagent could not start subagents of its own, from version 2.1.219 three layers are allowed.

How to fix it

Enter the depth you want in the env block of the settings file. With the value 1 subagents start no subagents of their own.

After (example)

Before: "env": {}
After: "env": {"CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH": "3"}

Check it yourself

If the folder .claude/agents holds files, open the settings file of your project and look in its block env for the entry CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH; without it, the provider's default decides how deep subagents may nest.

All rules