Skip to content

fix(advise): use both advisors inside a subagent when it can start one - #29

Merged
GauranshMathur merged 1 commit into
mainfrom
fix/advise-nested-subagent
Oct 4, 2026
Merged

GauranshMathur merged 1 commit into
mainfrom
fix/advise-nested-subagent

Conversation

@GauranshMathur

Copy link
Copy Markdown
Owner

Closes #28

Why

The README and the advise skill said "a subagent cannot start another subagent", so inside a subagent the skill always skipped the Fable advisor and ran Codex alone. That is wrong. The Claude Code docs say: "By default, a subagent can spawn subagents of its own, up to three layers below the main conversation." The Agent tool is withheld only at that limit, or when the subagent's definition leaves it out.

Changes

  • skills/advise/SKILL.md: inside a subagent, the skill dispatches the Fable advisor as usual when it has the Agent tool. It runs Codex alone, and reports Fable as skipped, only when it does not.
  • README.md: the paragraph under the subagent example says the same.

Unchanged: the skill never uses AskUserQuestion inside a subagent, which the docs confirm is removed from every subagent, and it hands any disagreement back to the parent. The ask-first rule is untouched.

Verification

  • claude plugin validate . --strict passes
  • pytest: 50 passed
  • Not tested in a live subagent run. The change follows the docs page quoted above.

The skill and the README said a subagent cannot start another subagent, so the skill always skipped the Fable advisor there. Claude Code lets a subagent start its own subagents up to three layers deep, and withholds the Agent tool only at that limit or when the definition leaves it out.

Inside a subagent the skill now dispatches the Fable advisor when it has the Agent tool, and runs Codex alone only when it does not. It still never uses AskUserQuestion there, and hands any disagreement back to the parent.

Closes #28
@GauranshMathur
GauranshMathur merged commit b4bbedc into main Oct 4, 2026
1 check passed
@GauranshMathur
GauranshMathur deleted the fix/advise-nested-subagent branch October 4, 2026 11:00
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.

advise says a subagent cannot start another subagent, which is wrong

1 participant