fix: add allowed-tools: Task to 14 agent-dispatch commands#10
Open
xiaolai wants to merge 1 commit intowebdevtodayjason:mainfrom
Open
fix: add allowed-tools: Task to 14 agent-dispatch commands#10xiaolai wants to merge 1 commit intowebdevtodayjason:mainfrom
xiaolai wants to merge 1 commit intowebdevtodayjason:mainfrom
Conversation
Agent-dispatch commands that omit allowed-tools give Claude no guidance on which tools are permitted. The 6 non-agent commands in this repo already use allowed-tools: Task as the correct pattern; this PR brings the 14 agent-dispatch commands into line. Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
14 of the command files in
commands/dispatch to a sub-agent (they have anagent:key in frontmatter) but omitallowed-tools. The other 6 commands in the same directory —debug.md,document.md,refactor.md,review.md,security-scan.md, andtest.md— already correctly declareallowed-tools: Task.When
allowed-toolsis absent, Claude Code has no declared guidance on which tools the command may invoke. Addingallowed-tools: Taskexplicitly permits theTasktool (used to spawn sub-agents), matching the pattern already established by the non-agent commands in this repo.Fix
Added
allowed-tools: Taskto the frontmatter of all 14 affected agent-dispatch commands:api-docs.md,api.md,content.md,deploy.md,devops.md,frontend.md,marketing.md,plan.md,product.md,requirements.md,shadcn.md,tdd.md,test-first.md,ui.mdNo body text was changed.