flow-nexus-swarm
Flow Nexus Swarms enables deployment and management of coordinated AI agent teams in cloud environments. Use this command to initialize swarms with specific topologies, spawn agents with defined capabilities, orchestrate parallel or sequential tasks across multiple agents, and monitor swarm performance through status checks and scaling operations.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ruvnet/agentic-flow/HEAD/.claude/commands/flow-nexus/swarm.md -o ~/.claude/commands/flow-nexus-swarm.mdswarm.md
# Flow Nexus Swarms
Deploy and manage AI agent swarms in the cloud.
## Initialize Swarm
```javascript
mcp__flow-nexus__swarm_init({
topology: "hierarchical", // mesh, ring, star, hierarchical
maxAgents: 8,
strategy: "balanced" // balanced, specialized, adaptive
})
```
## Spawn Agents
```javascript
mcp__flow-nexus__agent_spawn({
type: "researcher", // coder, analyst, optimizer, coordinator
name: "Lead Researcher",
capabilities: ["web_search", "analysis", "summarization"]
})
```
## Orchestrate Tasks
```javascript
mcp__flow-nexus__task_orchestrate({
task: "Build a REST API with authentication",
strategy: "parallel", // parallel, sequential, adaptive
maxAgents: 5,
priority: "high"
})
```
## Monitor Swarm
```javascript
// Get swarm status
mcp__flow-nexus__swarm_status()
// List active swarms
mcp__flow-nexus__swarm_list({ status: "active" })
// Scale swarm
mcp__flow-nexus__swarm_scale({ target_agents: 10 })
// Destroy swarm
mcp__flow-nexus__swarm_destroy({ swarm_id: "id" })
```
## Templates
```javascript
// Use pre-built swarm template
mcp__flow-nexus__swarm_create_from_template({
template_name: "full-stack-dev",
overrides: {
maxAgents: 6,
strategy: "specialized"
}
})
// List available templates
mcp__flow-nexus__swarm_templates_list({
category: "quickstart" // specialized, enterprise, custom
})
```
## Common Swarm Patterns
### Research Swarm
```javascript
mcp__flow-nexus__swarm_init({ topology: "mesh", maxAgents: 5 })
mcp__flow-nexus__agent_spawn({ type: "researcher", name: "Lead" })
mcp__flow-nexus__agent_spawn({ type: "analyst", name: "Data Analyst" })
mcp__flow-nexus__task_orchestrate({ task: "Research ML trends" })
```
### Development Swarm
```javascript
mcp__flow-nexus__swarm_init({ topology: "hierarchical", maxAgents: 8 })
mcp__flow-nexus__agent_spawn({ type: "coordinator", name: "PM" })
mcp__flow-nexus__agent_spawn({ type: "coder", name: "Backend Dev" })
mcp__flow-nexus__agent_spawn({ type: "coder", name: "Frontend Dev" })
mcp__flow-nexus__task_orchestrate({ task: "Build e-commerce platform" })
```Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized. Examples: <example>Context: User needs to start a new React component and wants a solid foundation. user: 'I need to create a new user profile component' assistant: 'I'll use the base-template-generator agent to create a comprehensive React component template with proper structure, TypeScript definitions, and styling setup.' <commentary>Since the user needs a foundational template for a new component, use the base-template-generator agent to create a well-structured starting point.</commentary></example> <example>Context: User is setting up a new API endpoint and needs a template. user: 'Can you help me set up a new REST API endpoint for user management?' assistant: 'I'll use the base-template-generator agent to create a complete API endpoint template with proper error handling, validation, and documentation structure.' <commentary>The user needs a foundational template for an API endpoint, so use the base-template-generator agent to provide a comprehensive starting point.</commentary></example>
Show Claude-Flow commands and usage
Interact with Claude-Flow memory system
Coordinate multi-agent swarms for complex tasks
Browse, publish, and deploy applications
Coding challenges, achievements, and leaderboards
Flow Nexus authentication and user management
Train and deploy neural networks in distributed sandboxes