/pool
Manage agent pool for scaling
> /plugin marketplace add ruvnet/claude-flowHow 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
/pool
Context preview
What this command does when you run it.
Manage agent pool for scaling
Command definition
pool.mdname: pool
description: Manage agent pool for scaling
type: command
Agent Pool Command
Manage the agent pool for automatic scaling and resource optimization.
Usage
npx claude-flow agent pool [options]
Options
| Option | Short | Description | Default | |--------|-------|-------------|---------| | `--size` | `-s` | Set pool size | Current | | `--min` | | Minimum pool size | 1 | | `--max` | | Maximum pool size | 10 | | `--auto-scale` | | Enable auto-scaling | true | | `--warmup` | | Pre-warm agents | false |
Examples
# View current pool status
npx claude-flow agent pool
# Set pool size
npx claude-flow agent pool --size 5
# Configure auto-scaling
npx claude-flow agent pool --min 2 --max 15 --auto-scale
# Pre-warm agents for fast response
npx claude-flow agent pool --warmup
# Disable auto-scaling
npx claude-flow agent pool --auto-scale false
Output
Agent Pool Configuration
+----------------+----------+
| Setting | Value |
+----------------+----------+
| Current Size | 3 |
| Min Size | 1 |
| Max Size | 10 |
| Auto-Scale | enabled |
| Warmup | disabled |
+----------------+----------+
Pool Status
+------------+--------+------+-------+
| Type | Active | Idle | Total |
+------------+--------+------+-------+
| coder | 1 | 1 | 2 |
| researcher | 1 | 0 | 1 |
+------------+--------+------+-------+
Auto-Scale Rules
- Scale up when: Queue > 5 tasks
- Scale down when: Idle > 5 minutes
- Cooldown: 60 seconds
Auto-Scaling Behavior
Scale Up Triggers
- Task queue exceeds threshold
- Response time increases
- Error rate increases
Scale Down Triggers
- Agents idle for extended period
- Task queue empty
- Resource pressure
Pre-Warming
Pre-warm agents to reduce cold-start latency:
npx claude-flow agent pool --warmup
# Pre-warms default agent types:
# - coder (2 instances)
# - researcher (1 instance)
# - tester (1 instance)
Pool Configuration File
Configure in `.claude-flow/config.yaml`:
agent:
pool:
minSize: 2
maxSize: 15
autoScale: true
warmup:
enabled: true
types:
- type: coder
count: 2
- type: researcher
count: 1
scaleRules:
scaleUpThreshold: 5
scaleDownIdleTime: 300
cooldownPeriod: 60Related Commands
- `npx claude-flow agent spawn` - Manual agent spawning
- `npx claude-flow agent list` - View active agents
- `npx claude-flow swarm scale` - Swarm-level scaling
Read more
name: pool description: Manage agent pool for scaling type: command
Agent Pool Command
Manage the agent pool for automatic scaling and resource optimization.
Usage
npx claude-flow agent pool [options]
Options
| Option | Short | Description | Default | |--------|-------|-------------|---------| | `--size` | `-s` | Set pool size | Current | | `--min` | | Minimum pool size | 1 | | `--max` | | Maximum pool size | 10 | | `--auto-scale` | | Enable auto-scaling | true | | `--warmup` | | Pre-warm agents | false |
Examples
# View current pool status npx claude-flow agent pool # Set pool size npx claude-flow agent pool --size 5 # Configure auto-scaling npx claude-flow agent pool --min 2 --max 15 --auto-scale # Pre-warm agents for fast response npx claude-flow agent pool --warmup # Disable auto-scaling npx claude-flow agent pool --auto-scale false
Output
Agent Pool Configuration +----------------+----------+ | Setting | Value | +----------------+----------+ | Current Size | 3 | | Min Size | 1 | | Max Size | 10 | | Auto-Scale | enabled | | Warmup | disabled | +----------------+----------+ Pool Status +------------+--------+------+-------+ | Type | Active | Idle | Total | +------------+--------+------+-------+ | coder | 1 | 1 | 2 | | researcher | 1 | 0 | 1 | +------------+--------+------+-------+ Auto-Scale Rules - Scale up when: Queue > 5 tasks - Scale down when: Idle > 5 minutes - Cooldown: 60 seconds
Auto-Scaling Behavior
Scale Up Triggers
- Task queue exceeds threshold
- Response time increases
- Error rate increases
Scale Down Triggers
- Agents idle for extended period
- Task queue empty
- Resource pressure
Pre-Warming
Pre-warm agents to reduce cold-start latency:
npx claude-flow agent pool --warmup # Pre-warms default agent types: # - coder (2 instances) # - researcher (1 instance) # - tester (1 instance)
Pool Configuration File
Configure in `.claude-flow/config.yaml`:
agent:
pool:
minSize: 2
maxSize: 15
autoScale: true
warmup:
enabled: true
types:
- type: coder
count: 2
- type: researcher
count: 1
scaleRules:
scaleUpThreshold: 5
scaleDownIdleTime: 300
cooldownPeriod: 60Related Commands
- `npx claude-flow agent spawn` - Manual agent spawning
- `npx claude-flow agent list` - View active agents
- `npx claude-flow swarm scale` - Swarm-level scaling
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.
Repo: ruvnet/claude-flow
Other commands on claude-flow.
- /agent-capabilities
Matrix of agent capabilities and their specializations.
Open command - /agent-coordination
Coordination patterns for multi-agent collaboration.
Open command - /agent-spawning
Guide to spawning agents with Claude Code's Task tool.
Open command - /agent-types
Complete guide to all 54 available agent types in Claude Flow.
Open command - /COMMAND_COMPLIANCE_REPORT
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools (preferred) - `npx claude-flow` commands (as fallback) - No direct implementation calls
Open command - /bottleneck-detect
Analyze performance bottlenecks in swarm operations and suggest optimizations.
Open command

