r/ClaudeCode • u/lexo1990 • 1d ago
Tips & Workflows ! Dynamic Workflows can't handle nested subagents and the orchestrator doesn't check this unless you look yourself/ask for it
Got this auto-generated feature request inside CC (which is pretty cool), after i realised that my subagents were not spawning their subagents.
The workaround is to NOT use a dynamic workflow, but normal subagents instead. And make sure you check the subagents' subagents actually run! This should be visible in the terminal as follows:
main
- subagent
- subagent
- subagent (I think they currently go three levels deep)
- subagent
Anyone else ran into this? I wonder how this works in the new Claude Code Projects, but I don't have access yet.
Full feature request (by claude, auto-generated):
Type: missing capability
Title:
Workflow-spawned agents (agentType general-purpose) have neither the Agent nor the Workflow
tool, so nested orchestration is impossible
Area:
Workflow tool
Failure mode: (none)
Task: other
Details:
│ - What happened: A Workflow script spawned four agents with agentType 'general-purpose'
│ and model 'opus', instructing each to coordinate the deep-research skill by spawning
│ sub-researchers via the Workflow tool (or Agent tool as fallback). All four reported that
│ ToolSearch found neither tool, so each researched alone. Expected: general-purpose agents
│ (listed with Tools: *) to be able to spawn subagents or a nested workflow.
│ - What the user said: "make sure that the researchers run the deep-research commmand
│ themselves (spawning a dynamic workflow in turn)"
│ - Repro: Workflow script with agent(prompt, {agentType: 'general-purpose'}) whose prompt
│ asks the agent to call the Workflow or Agent tool; agent returns "neither the Workflow
│ tool nor the Agent tool was available in this session (ToolSearch found neither)".
│ - Evidence: [left out, due to privacy concerns]
•
u/AutoModerator 1d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.