Agents are the workers inside every Ruflo swarm. Each agent is typed, specialised, and managed — typed because it carries a declared capability (coder, tester, architect, etc.), specialised because its system prompt and tool allowlist are tuned for exactly that role, and managed because the swarm coordinator is responsible for spawning, monitoring, and retiring agents automatically as work arrives. You interact with agents either through the CLI, the MCP server from Claude Code, or by letting the hive-mind handle everything for you.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ruvnet/ruflo/llms.txt
Use this file to discover all available pages before exploring further.
Agent Types
Ruflo ships agents across eight categories. Key types and their roles:| Type | Category | Purpose |
|---|---|---|
coder | Core Development | Writes and modifies code; primary implementation agent |
tester | Core Development | Generates tests, runs coverage analysis, detects test gaps |
reviewer | Core Development | Code review, style checks, PR feedback |
architect | Core Development | System design, ADR authoring, bounded-context planning |
researcher | Core Development | Gathers context, reads docs, summarises findings |
docs | Core Development | Documentation generation and drift detection |
devops | Core Development | CI/CD workflow automation and infrastructure management |
analyzer | Core Development | Code analysis, pattern detection, and context extraction |
queen-coordinator | V3 Specialised | Hierarchical orchestrator; validates all worker outputs against the goal |
security | V3 Specialised | Vulnerability scanning, CVE triage, prompt injection analysis |
security-architect | V3 Specialised | Security design, threat modelling, compliance review |
memory-specialist | V3 Specialised | Memory optimisation, HNSW tuning, embedding pipeline management |
hierarchical-coordinator | Swarm Coordination | Manages queen-worker topology |
mesh-coordinator | Swarm Coordination | Peer-to-peer coordination in a mesh topology |
adaptive-coordinator | Swarm Coordination | Real-time topology switching based on workload signals |
byzantine-coordinator | Consensus & Distributed | Fault-tolerant coordination when some agents may fail or return bad data |
raft-manager | Consensus & Distributed | Leader-based state management; no conflicting decisions |
perf-analyzer | Performance | Profiling, bottleneck detection, optimisation suggestions |
pr-manager | GitHub & Repository | PR creation, description generation, reviewer assignment |
backend-dev | Specialised Dev | Backend service implementation |
ml-developer | Specialised Dev | ML pipeline and model integration work |
cicd-engineer | Specialised Dev | CI/CD workflow automation |
Agent Lifecycle
Every agent moves through four states:Spawn
The swarm coordinator (or a direct CLI/MCP call) creates the agent, assigns it a unique ID, loads its capability profile, and registers it in the
AgentPool. The agent is now live but not yet processing work.Active
The agent has been assigned a task and is running. It can call LLM providers, read and write memory, coordinate with peer agents over the message bus, and fire hooks.
Idle
The agent has finished its current task and is waiting for the next assignment. Idle agents are kept alive for
idleTimeoutMs (default 5 minutes) before the pool reclaims them, reducing the cost of re-spawning for hot workloads.Spawning Agents via CLI
Agent Pool Management
TheAgentPool manages the full agent lifecycle automatically. It maintains a minimum number of warm agents, scales up when the queue grows, and reclaims idle agents to free memory.
claude-flow.config.json or via npx ruflo config set):
| Setting | Default | Description |
|---|---|---|
minAgents | 1 | Agents kept warm even when idle |
maxAgents | 15 | Hard ceiling for the pool |
idleTimeoutMs | 300000 (5 min) | How long an idle agent lives before reclaim |
maxAgents boundary strictly — it will queue tasks rather than spawn beyond the limit. For large parallel workloads, raise maxAgents in your swarm configuration.
Metrics and Health
MCP Tools for Agents
When Ruflo is registered as an MCP server, Claude Code can call agent tools directly during a session:| Tool | Description |
|---|---|
agent_spawn | Spawn a new agent of a given type and name |
agent_list | List all active agents with their current status |
agent_metrics | Retrieve per-agent performance metrics by name |
npx ruflo@latest mcp start. They are not available when using the lightweight Claude Code Plugin path — you need the full CLI install (npx ruflo init) for MCP tools to work.