Skip to content
Development
Command

/agent-spawning

Guide to spawning agents with Claude Code's Task tool.

From plugin
claude-flow
67k194 skills157 agents194 commands1 MCP
Install
> /plugin marketplace add ruvnet/ruflo

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/agent-spawning

Context preview

What this command does when you run it.

Guide to spawning agents with Claude Code's Task tool.

Command definition

agent-spawning.md

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

1. Always spawn agents concurrently 2. Use Task tool for execution 3. MCP only for coordination 4. Batch all operations

Ships withclaude-flow

An agent meta-harness for Claude Code and Codex. Agent = Model + Harness. The model writes; the harness gives it tools, memory, loops, sandboxes, and controls so it can actually work.

Get the whole plugin