fix(agents): add Task to verify-agent tools array#32
Open
xiaolai wants to merge 1 commit into
Open
Conversation
The agent body and Configuration table both document Task as required for spawning the security-reviewer subagent at effort:max, but the frontmatter tools array omitted it. Without Task in the array the subagent spawn silently fails. Co-Authored-By: Claude Code <noreply@anthropic.com>
This was referenced Apr 20, 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.
Bug
agents/verify-agent.mddeclaresTaskas a required tool in two places — the<Tool_Usage>section and the Configuration table — but the frontmattertoolsarray omits it:Why it matters
At
effort:max,verify-agentis supposed to spawnsecurity-revieweras a subagent viaTask. WithoutTaskdeclared in thetoolsarray, the runtime cannot grant that permission and the spawn silently fails. Any handoff-verify invocation with--securityoreffort:maxwill reach Step 6 and produce no security review result.The cross-component analysis in the audit confirms:
commands/handoff-verify.mdincludesTaskin its ownallowed-toolsand explicitly dispatches toagents/verify-agent.md, but the agent itself cannot complete the delegation.Fix
One-line addition of
"Task"to the frontmatter tools array, matching what the agent body and Configuration table already document as required.