-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Category
Improve existing agent
What would you like?
In Claude Code, orchestrator agents (web-accessibility-wizard, document-accessibility-wizard, accessibility-lead, developer-hub, markdown-a11y-assistant) describe detailed sub-agent delegation models in their instructions, but cannot actually delegate at runtime. When spawned as sub-agents via the Agent tool, they only receive filesystem tools (Read, Write, Edit, Bash, Grep, Glob). The Task tool is not available to them regardless of what the tools: frontmatter declares.
This was confirmed through diagnostic testing: even accessibility-lead, which declares Task in its frontmatter, reports only Read, Glob, and Grep at runtime. The orchestrator agents end up doing all work inline rather than delegating to specialists.
Note: This issue is specific to the Claude Code runtime. Other supported platforms (e.g., GitHub Copilot) have different delegation mechanisms and may not be affected.
Use case
Any workflow that requires coordination across multiple accessibility domains is affected. For example:
/audit(web-accessibility-wizard) is supposed to delegate to aria-specialist, keyboard-navigator, forms-specialist, contrast-master, etc. — but currently does everything inline/document(document-accessibility-wizard) is supposed to delegate to word-accessibility, pdf-accessibility, etc. — but currently does everything inlineaccessibility-leadis supposed to coordinate the full specialist team for any UI task — but currently can only read and search files
The result is that orchestrator agents produce lower-quality output than they would if they could actually leverage specialist agents, and the elaborate delegation models in their instructions are never executed.
Examples
Diagnostic test
Spawning document-accessibility-wizard and asking it to list its available tools:
Tools available: Read, Write, Edit, Bash, Grep, Glob
Task tool: No
Agent tool: No
The agent's instructions describe delegating to word-accessibility via Task, but it has no mechanism to do so.
Same result for accessibility-lead (which declares Task in frontmatter):
Tools available: Read, Glob, Grep
Task tool: No
Impact
The tools: frontmatter is read by the agent registry for display purposes, but the Claude Code runtime does not inject Task or Agent into spawned sub-agents. Sub-agents cannot spawn sub-agents — only the top-level conversation has access to the Agent tool.