Power Mode
Power Mode
Section titled “Power Mode”Power Mode enables parallel agent collaboration for complex tasks requiring multiple specialized agents working together.
What is Power Mode?
Section titled “What is Power Mode?”Power Mode orchestrates multiple agents simultaneously to tackle complex workflows that would be too slow or cumbersome with a single agent.
Use Cases:
- Large-scale refactoring across many files
- Comprehensive security audits
- Multi-component feature development
- Architecture analysis and migration
Modes of Operation
Section titled “Modes of Operation”Native Async Mode (Recommended)
Section titled “Native Async Mode (Recommended)”Requirements: Claude Code 2.1.33+ (tested through 2.1.79)
Features:
- Zero setup required
- 5+ agents via Background Task tool
- Event-driven agent lifecycle management
- Graceful shutdown with configurable timeout
- Action tracking for dashboard state
- Best for most use cases
Activation:
/popkit-core:power startRedis Mode (Advanced)
Section titled “Redis Mode (Advanced)”Requirements: Redis server, Claude Code 2.1.33+ (tested through 2.1.79)
Features:
- 10+ agents with persistent coordination
- Best for very complex workflows
- Requires Redis setup
Setup:
# Install Redis# Configure connection in .popkit/config.json
/popkit-core:power start --redisFile-Based Mode (Legacy)
Section titled “File-Based Mode (Legacy)”Requirements: None
Features:
- 2 agents sequential
- Fallback for older Claude Code versions
- No external dependencies
Activation: Automatic fallback
Using Power Mode
Section titled “Using Power Mode”1. Check Status
Section titled “1. Check Status”/popkit-core:power statusThis shows:
- Current mode (Native/Redis/File)
- Active agents
- Performance metrics
2. Start Power Mode
Section titled “2. Start Power Mode”/popkit-core:power start3. Run Workflows
Section titled “3. Run Workflows”# Feature development with multiple agents/popkit-dev:dev "Implement OAuth2" --power
# Comprehensive security audit/popkit-ops:security scan --power
# Architecture analysis/popkit-core:project analyze --power4. Monitor Progress
Section titled “4. Monitor Progress”/popkit-core:power metricsShows:
- Agents active
- Tasks in progress
- Completion status
5. Stop Power Mode
Section titled “5. Stop Power Mode”/popkit-core:power stopPerformance Comparison
Section titled “Performance Comparison”| Mode | Agents | Setup | Use Case |
|---|---|---|---|
| Native Async | 5+ | None | Most workflows (recommended) |
| Redis | 10+ | Redis | Very complex workflows |
| File-Based | 2 | None | Simple workflows, legacy |
Best Practices
Section titled “Best Practices”- Start with Native Async: Works for 95% of use cases
- Use Redis for Scale: Only when you need 10+ agents
- Monitor Performance: Check metrics to optimize
- Stop When Done: Free resources after completion
Troubleshooting
Section titled “Troubleshooting”Power Mode Won’t Start
Section titled “Power Mode Won’t Start”Symptom: power start fails
Solutions:
- Check Claude Code version (need 2.1.33+, tested through 2.1.79)
- Verify Redis is running (for Redis mode)
- Check logs:
/popkit-core:power status --verbose
Agents Not Responding
Section titled “Agents Not Responding”Symptom: Tasks stuck in progress
Solutions:
- Check individual agent logs
- Restart Power Mode
- Reduce agent count
Performance Issues
Section titled “Performance Issues”Symptom: Slow responses
Solutions:
- Switch to Native Async mode
- Reduce concurrent agents
- Check system resources
Next Steps
Section titled “Next Steps”- Learn about Feature Development
- Explore Git Workflows
- Understand Routines