diff options
| author | Matt Pocock <mattpocockvoice@gmail.com> | 2026-10-06 13:53:57 +0100 |
|---|---|---|
| committer | Matt Pocock <mattpocockvoice@gmail.com> | 2026-10-06 13:53:57 +0100 |
| commit | 4d04daaee3b71d4f81c37dba2d0a7dc2a611ebfb (patch) | |
| tree | 03a0291531ee138b26f7d8ee8796973a6eff9d0e | |
| parent | 93497a80710a496b07a335b842fdbb0388d67296 (diff) | |
docs(scope): subagent recursion is the harness's job, not skills'out-of-scope-subagent-recursion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | .out-of-scope/subagent-recursion.md | 14 | ||||
| -rw-r--r-- | SCOPE.md | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/.out-of-scope/subagent-recursion.md b/.out-of-scope/subagent-recursion.md new file mode 100644 index 0000000..7363704 --- /dev/null +++ b/.out-of-scope/subagent-recursion.md @@ -0,0 +1,14 @@ +# Guards against sub-agents recursing into skills + +Skills do not add guards against sub-agents recursively invoking skills or spawning nested agents (a `/code-review` sub-agent re-invoking `/code-review`, a `/research` agent spawning another agent). Requests to add leaf-agent instructions, depth limits or "do not invoke this skill" lines are out of scope. + +## Why this is out of scope + +The harness should be responsible for stopping infinite subagent loops, not skills. The harness decides which tools and skills a sub-agent can reach and how deep nesting can go, so a limit set there holds for every skill at once. A guard written into one skill's prose covers only that skill, costs tokens on every run, and still depends on the model choosing to obey it. + +If a sub-agent recurses or fans out without bound, report it to the harness. + +## Prior requests + +- #530: "research skill: spawned background agent can recursively re-spawn another agent (uncontrolled nesting)" +- #573: "code-review sub-agents recursively invoke /code-review and fan out" (PR #1186, "code-review: make the Standards and Spec sub-agents leaf reviewers", closed) @@ -28,6 +28,7 @@ Each file in [`.out-of-scope/`](./.out-of-scope/) records one rejected concept a - [`new-skills.md`](./.out-of-scope/new-skills.md) - [`question-limits.md`](./.out-of-scope/question-limits.md) - [`setup-skill-verify-mode.md`](./.out-of-scope/setup-skill-verify-mode.md) +- [`subagent-recursion.md`](./.out-of-scope/subagent-recursion.md) ## Unclear issues |
