727 B
727 B
agent-spawning
Guide to spawning agents with Claude Code's Task tool.
Using Claude Code's Task Tool
CRITICAL: Always use Claude Code's Task tool for actual agent execution:
// Spawn ALL agents in ONE message
Task("Researcher", "Analyze requirements...", "researcher")
Task("Coder", "Implement features...", "coder")
Task("Tester", "Create tests...", "tester")
MCP Coordination Setup (Optional)
MCP tools are ONLY for coordination:
mcp__claude-flow__swarm_init { topology: "mesh" }
mcp__claude-flow__agent_spawn { type: "researcher" }
Best Practices
- Always spawn agents concurrently
- Use Task tool for execution
- MCP only for coordination
- Batch all operations