jonny@neuromatch.social ("jonny (nonvenomous)") wrote:
i'm pretty sure the bug here is that the
spawnDepthordepthparameters are never actually used for anything or checked against a limit. i believe i have followed all assignments and accesses in 2.1.172, and checked for string constant accesses, but i am not finding any place where they are used.it's important to remember that there isn't really such a thing as "controlling how agents are spawned" in claude code. Agents can spawn from the agent tool, but agents also have the agent tool. there is even a note in some new migration prompt that i hadn't seen before that says specifically that Opus 4.6 (the model used by the person raising the issue) loves to recursively spawn subagents. that was present before the "feature" of allowing recursive subagents was added in 2.1.172, because technically there wasn't really anything preventing agents from spawning subagents before either - the
checkPermissionsmethod from theAgentToolis hardcoded to "allow", or at least it was, i don't have time to align and apply the mapfile to new release versions today.