enhance_swarm 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.claude/CLAUDE.md +164 -0
- data/.claude/MCP.md +117 -0
- data/.claude/PERSONAS.md +114 -0
- data/.claude/RULES.md +221 -0
- data/.enhance_swarm/archives/session_1751182876_06ee7e0e_20250629_094116.json +16 -0
- data/.enhance_swarm/archives/session_1751187567_9d1227c8_20250629_105927.json +16 -0
- data/.enhance_swarm/archives/session_1751190454_6faf48a2_20250629_114734.json +16 -0
- data/.enhance_swarm/archives/session_1751190516_3e4f9437_20250629_114836.json +16 -0
- data/.enhance_swarm/archives/session_1751192354_79568f0f_20250629_121914.json +16 -0
- data/.enhance_swarm/archives/session_1751195070_99653548_20250629_130433.json +16 -0
- data/.enhance_swarm/archives/session_1751196542_a292e40c_20250629_132902.json +7 -0
- data/.enhance_swarm/archives/session_1751196824_9b65d28e_20250629_133344.json +24 -0
- data/.enhance_swarm/archives/session_1751197867_d16edbc5_20250629_135109.json +24 -0
- data/.enhance_swarm/archives/session_1751208541_f9531ce5_20250629_164901.json +16 -0
- data/.enhance_swarm/logs/backend_error.log +0 -0
- data/.enhance_swarm/logs/backend_output.log +0 -0
- data/.enhance_swarm/logs/debug_manual_error.log +0 -0
- data/.enhance_swarm/logs/debug_manual_output.log +18 -0
- data/.enhance_swarm/logs/frontend_error.log +0 -0
- data/.enhance_swarm/logs/frontend_output.log +45 -0
- data/.enhance_swarm/logs/general_error.log +0 -0
- data/.enhance_swarm/logs/general_output.log +0 -0
- data/.enhance_swarm/user_patterns.json +5 -5
- data/.enhance_swarm.yml +33 -0
- data/CHANGELOG.md +71 -0
- data/DEPLOYMENT.md +344 -0
- data/README.md +277 -789
- data/lib/enhance_swarm/agent_spawner.rb +210 -13
- data/lib/enhance_swarm/cli.rb +169 -8
- data/lib/enhance_swarm/control_agent.rb +28 -27
- data/lib/enhance_swarm/smart_orchestration.rb +60 -0
- data/lib/enhance_swarm/task_coordinator.rb +1327 -0
- data/lib/enhance_swarm/version.rb +1 -1
- data/lib/enhance_swarm/visual_dashboard.rb +2 -1
- metadata +34 -20
- data/PRODUCTION_TEST_LOG.md +0 -502
- data/setup.sh +0 -86
- data/test_builtin_functionality.rb +0 -121
- data/test_core_components.rb +0 -156
- data/test_real_claude_integration.rb +0 -285
- data/test_security.rb +0 -150
- data/test_smart_defaults.rb +0 -155
- data/test_task_integration.rb +0 -173
- data/test_web_ui.rb +0 -245
- data/web/assets/css/main.css +0 -645
- data/web/assets/js/kanban.js +0 -499
- data/web/assets/js/main.js +0 -525
- data/web/templates/dashboard.html.erb +0 -226
- data/web/templates/kanban.html.erb +0 -193
data/README.md
CHANGED
@@ -1,905 +1,393 @@
|
|
1
1
|
# EnhanceSwarm 🚀
|
2
2
|
|
3
|
-
**Production-ready multi-agent orchestration for Claude with real
|
3
|
+
**Production-ready intelligent multi-agent orchestration for Claude with real dev team coordination.**
|
4
4
|
|
5
|
-
EnhanceSwarm
|
5
|
+
EnhanceSwarm transforms Claude into a sophisticated development team that works like real developers - with specialized agents for Backend, Frontend, QA, and Integration that collaborate intelligently with minimal overlap.
|
6
6
|
|
7
|
-
## ✨
|
7
|
+
## ✨ What Makes EnhanceSwarm Different
|
8
8
|
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
- **⚡ Production Ready**: Comprehensive testing and error handling
|
16
|
-
- **🛡️ Security First**: Command injection protection and secure execution
|
17
|
-
- **📊 Multi-Framework Support**: Optimized for Rails, React, Vue, Django, and more
|
9
|
+
- **🧠 Intelligent Orchestration**: Control agent delegates tasks to specialized agents like a real project manager
|
10
|
+
- **🤖 Real Claude CLI Integration**: Spawns authentic Claude agents using your local Claude CLI
|
11
|
+
- **👥 Dev Team Simulation**: Backend → Frontend → QA → Integration workflow with smart handoffs
|
12
|
+
- **🎯 Zero Overlap**: Agents work on specialized tasks with dependency-aware coordination
|
13
|
+
- **📊 Smart Defaults**: Auto-detects project type and creates optimal team coordination
|
14
|
+
- **🛡️ Production Ready**: Enterprise security, resource management, and comprehensive testing
|
18
15
|
|
19
|
-
##
|
20
|
-
|
21
|
-
**EnhanceSwarm v1.0.0 is production-ready with comprehensive validation and third-party assessment.**
|
22
|
-
|
23
|
-
### ✅ Validated Production Capabilities
|
24
|
-
|
25
|
-
- **Real Agent Execution**: Successfully spawns Claude CLI agents producing high-quality code (45+ line React components with comprehensive test suites)
|
26
|
-
- **CLI Integration**: 100% success rate on all major commands (`spawn`, `status`, `dashboard`, `monitor`)
|
27
|
-
- **Process Management**: Robust agent lifecycle management with PID tracking and status monitoring
|
28
|
-
- **Error Recovery**: Production-grade error handling with detailed feedback and recovery suggestions
|
29
|
-
- **Worktree Isolation**: Git worktree-based agent isolation prevents conflicts and enables parallel development
|
30
|
-
|
31
|
-
### 📊 Production Metrics
|
32
|
-
|
33
|
-
- **Architecture Score**: 90/100 (validated by third-party analysis)
|
34
|
-
- **Functionality Score**: 95/100 (comprehensive testing confirmed)
|
35
|
-
- **Overall Production Score**: 82/100 - **Ready for controlled deployment**
|
36
|
-
|
37
|
-
### 🚀 Deployment Recommendations
|
38
|
-
|
39
|
-
**✅ Suitable for:**
|
40
|
-
- Development team automation and tooling
|
41
|
-
- Controlled production environments with monitoring
|
42
|
-
- Proof-of-concept and demonstration projects
|
43
|
-
- Small-scale production usage (<10 concurrent agents)
|
44
|
-
|
45
|
-
**⚠️ Requires monitoring for:**
|
46
|
-
- Resource usage and token consumption
|
47
|
-
- Process health and cleanup
|
48
|
-
- Concurrent agent limits based on system capacity
|
49
|
-
|
50
|
-
## 🚀 Quick Installation
|
51
|
-
|
52
|
-
### Prerequisites
|
53
|
-
|
54
|
-
- **Claude CLI**: Install from [Claude Code](https://claude.ai/code) - required for real agent spawning
|
55
|
-
- **Ruby 3.0+**: For running EnhanceSwarm
|
56
|
-
- **Git**: For project management and agent worktrees
|
57
|
-
|
58
|
-
### Installation Options
|
59
|
-
|
60
|
-
#### Option 1: RubyGems (Recommended)
|
16
|
+
## 🚀 Quick Start
|
61
17
|
|
18
|
+
### Installation
|
62
19
|
```bash
|
63
|
-
# Install the gem
|
64
20
|
gem install enhance_swarm
|
65
|
-
|
66
|
-
# Or add to your Gemfile
|
67
|
-
echo 'gem "enhance_swarm", "~> 1.0"' >> Gemfile
|
68
|
-
bundle install
|
69
|
-
|
70
|
-
# Initialize in your project
|
71
|
-
enhance-swarm init
|
72
21
|
```
|
73
22
|
|
74
|
-
|
75
|
-
|
23
|
+
### Initialize in Your Project
|
76
24
|
```bash
|
77
|
-
|
78
|
-
|
79
|
-
bundle install
|
80
|
-
|
81
|
-
# Initialize in your project
|
82
|
-
bundle exec enhance-swarm init
|
25
|
+
cd your_project
|
26
|
+
enhance-swarm init
|
83
27
|
```
|
84
28
|
|
85
|
-
|
29
|
+
### Run Intelligent Multi-Agent Development
|
86
30
|
|
31
|
+
**Recommended: Detached Mode (Non-blocking)**
|
87
32
|
```bash
|
88
|
-
#
|
89
|
-
|
90
|
-
cd enhance_swarm
|
91
|
-
bundle install && rake install
|
33
|
+
# Start orchestration in background - returns immediately
|
34
|
+
enhance-swarm orchestrate "Create a Contact management system with CRUD operations" --detached
|
92
35
|
|
93
|
-
#
|
94
|
-
enhance-swarm
|
95
|
-
```
|
36
|
+
# Monitor progress
|
37
|
+
enhance-swarm status
|
96
38
|
|
97
|
-
|
39
|
+
# Check logs
|
40
|
+
tail -f .enhance_swarm/logs/orchestration.log
|
41
|
+
```
|
98
42
|
|
43
|
+
**Alternative: Interactive Mode**
|
99
44
|
```bash
|
100
|
-
#
|
101
|
-
|
45
|
+
# Or use the enhanced ENHANCE protocol (interactive)
|
46
|
+
enhance-swarm enhance
|
47
|
+
# Then enter: "Build a todo management system with real-time updates"
|
48
|
+
|
49
|
+
# Standard orchestration (blocking)
|
50
|
+
enhance-swarm orchestrate "Add user authentication with email verification"
|
102
51
|
```
|
103
52
|
|
104
|
-
##
|
53
|
+
## 🎯 How It Works
|
105
54
|
|
106
|
-
###
|
55
|
+
### Intelligent Task Delegation
|
56
|
+
1. **Control Agent** analyzes your request and project context
|
57
|
+
2. **Task Decomposition** breaks complex features into specialized subtasks
|
58
|
+
3. **Smart Coordination** assigns tasks to specialist agents with dependencies
|
59
|
+
4. **Quality Assurance** QA agent reviews each implementation
|
60
|
+
5. **Integration** Lead agent merges everything seamlessly
|
107
61
|
|
108
|
-
|
62
|
+
### Agent Specialization
|
63
|
+
| Agent | Role | Responsibilities |
|
64
|
+
|-------|------|------------------|
|
65
|
+
| **Backend** | API & Logic Developer | Models, APIs, business logic, database design |
|
66
|
+
| **Frontend** | UI/UX Developer | Components, styling, user experience, interactions |
|
67
|
+
| **QA** | Quality Engineer | Testing, validation, security, edge cases |
|
68
|
+
| **Integration** | Tech Lead | Merging, refining, final polish, deployment prep |
|
109
69
|
|
70
|
+
### Smart Coordination Example
|
110
71
|
```bash
|
111
|
-
|
112
|
-
enhance-swarm enhance "implement user authentication"
|
113
|
-
# ✅ Spawns actual Claude processes
|
114
|
-
# ✅ Role-specific agent prompts
|
115
|
-
# ✅ Project-aware context
|
116
|
-
# ✅ Independent execution with monitoring
|
72
|
+
enhance-swarm orchestrate "Add contact management to the app"
|
117
73
|
```
|
118
74
|
|
119
|
-
|
75
|
+
**Behind the scenes:**
|
76
|
+
1. 🎯 Control agent creates specialized subtasks
|
77
|
+
2. 🔧 Backend agent: Creates Contact model, API endpoints, validations
|
78
|
+
3. 🎨 Frontend agent: Builds contact forms, list views, search functionality
|
79
|
+
4. 🧪 QA agent: Creates comprehensive test suites for all features
|
80
|
+
5. 🔗 Integration agent: Merges everything, resolves conflicts, final polish
|
120
81
|
|
121
|
-
|
82
|
+
## 📋 Command Reference
|
122
83
|
|
84
|
+
### Core Commands
|
123
85
|
```bash
|
124
|
-
#
|
125
|
-
enhance-swarm
|
126
|
-
# ✅ Detects Rails, React, Vue, Django, and more
|
127
|
-
# ✅ Configures optimal agent roles
|
128
|
-
# ✅ Sets up framework-specific commands
|
129
|
-
# ✅ Generates intelligent code standards
|
130
|
-
```
|
86
|
+
# Intelligent multi-agent orchestration (recommended)
|
87
|
+
enhance-swarm orchestrate "your feature description"
|
131
88
|
|
132
|
-
|
89
|
+
# Enhanced protocol with smart coordination
|
90
|
+
enhance-swarm enhance
|
133
91
|
|
134
|
-
|
135
|
-
-
|
136
|
-
- **Error Recovery**: Graceful fallback to simulation mode when Claude CLI unavailable
|
137
|
-
- **Web Dashboard**: Real-time monitoring and control interface
|
138
|
-
- **Multi-Framework**: Built-in support for Rails, React, Vue, Django, and more
|
92
|
+
# Manual single agent (for specific tasks)
|
93
|
+
enhance-swarm spawn --role backend "Create user authentication API"
|
139
94
|
|
140
|
-
|
95
|
+
# Monitor all agents in real-time
|
96
|
+
enhance-swarm dashboard
|
141
97
|
|
142
|
-
|
98
|
+
# Check status and progress
|
99
|
+
enhance-swarm status
|
100
|
+
```
|
143
101
|
|
102
|
+
### Project Management
|
144
103
|
```bash
|
145
|
-
|
104
|
+
# Initialize smart defaults for your project
|
146
105
|
enhance-swarm init
|
147
|
-
```
|
148
106
|
|
149
|
-
|
150
|
-
-
|
151
|
-
- `.claude/` directory with specialized files:
|
152
|
-
- `CLAUDE.md` - Core Claude configuration
|
153
|
-
- `RULES.md` - Operational rules and standards
|
154
|
-
- `MCP.md` - Model Context Protocol settings
|
155
|
-
- `PERSONAS.md` - Agent personality definitions
|
156
|
-
- Git hooks for quality control
|
107
|
+
# Check system and project configuration
|
108
|
+
enhance-swarm config
|
157
109
|
|
158
|
-
|
110
|
+
# Validate system setup
|
111
|
+
enhance-swarm doctor
|
159
112
|
|
160
|
-
|
113
|
+
# Clean up completed work
|
114
|
+
enhance-swarm cleanup
|
115
|
+
```
|
116
|
+
|
117
|
+
## 📋 Real-World Example
|
118
|
+
|
119
|
+
**Task**: "Create a comprehensive Contact management system with name, email, phone, company fields, and full CRUD operations with proper validation and testing"
|
120
|
+
|
121
|
+
**What EnhanceSwarm Creates**:
|
122
|
+
```
|
123
|
+
📁 Generated Files (14 files, 304 insertions):
|
124
|
+
├── app/models/contact.rb # Model with validations
|
125
|
+
├── app/controllers/contacts_controller.rb # Full CRUD controller
|
126
|
+
├── app/views/contacts/
|
127
|
+
│ ├── index.html.erb # List all contacts
|
128
|
+
│ ├── show.html.erb # View contact details
|
129
|
+
│ ├── new.html.erb # Create new contact
|
130
|
+
│ ├── edit.html.erb # Edit existing contact
|
131
|
+
│ └── _form.html.erb # Shared form partial
|
132
|
+
├── db/migrate/create_contacts.rb # Database migration
|
133
|
+
├── config/routes.rb # Updated routes
|
134
|
+
└── .enhance_swarm/logs/ # Orchestration logs
|
135
|
+
```
|
136
|
+
|
137
|
+
**Multi-Agent Workflow**:
|
138
|
+
1. **Backend Agent**: Creates Contact model with validations, database migration
|
139
|
+
2. **Frontend Agent**: Builds complete view set with Tailwind CSS responsive design
|
140
|
+
3. **Integration Agent**: Updates routes, ensures everything works together
|
141
|
+
4. **Auto-commit**: All changes committed to git with proper message
|
142
|
+
|
143
|
+
**🎨 Styling Framework**:
|
144
|
+
- **Bullet Train Projects**: Tailwind CSS (default) - modern utility-first framework
|
145
|
+
- **Regular Rails Projects**: Bootstrap or Tailwind CSS based on project setup
|
146
|
+
|
147
|
+
**Total Time**: ~2 minutes (background execution)
|
148
|
+
|
149
|
+
## 🎭 Agent Roles & Specializations
|
150
|
+
|
151
|
+
### Backend Agent
|
152
|
+
**Focus**: Server-side logic, APIs, database design
|
153
|
+
- Implements secure business logic and data models
|
154
|
+
- Creates efficient API endpoints with proper validation
|
155
|
+
- Designs database schemas and migrations
|
156
|
+
- Follows framework best practices (Rails, Django, etc.)
|
157
|
+
- Ensures proper error handling and security
|
158
|
+
|
159
|
+
### Frontend Agent
|
160
|
+
**Focus**: User interfaces, styling, user experience
|
161
|
+
- Creates intuitive and responsive interfaces
|
162
|
+
- Maintains consistent design patterns and components
|
163
|
+
- Implements modern CSS and JavaScript best practices
|
164
|
+
- Ensures accessibility and cross-browser compatibility
|
165
|
+
- Integrates seamlessly with backend APIs
|
166
|
+
|
167
|
+
### QA Agent
|
168
|
+
**Focus**: Testing, validation, quality assurance
|
169
|
+
- Creates comprehensive test suites (unit, integration, system)
|
170
|
+
- Validates functionality against requirements
|
171
|
+
- Checks for security vulnerabilities and edge cases
|
172
|
+
- Provides actionable feedback for improvements
|
173
|
+
- Ensures code quality and maintainability
|
174
|
+
|
175
|
+
### Integration Agent
|
176
|
+
**Focus**: Merging, coordination, final polish
|
177
|
+
- Intelligently merges work from all specialist agents
|
178
|
+
- Resolves conflicts and ensures system cohesion
|
179
|
+
- Performs final refactoring and optimization
|
180
|
+
- Validates complete feature functionality
|
181
|
+
- Prepares implementation for deployment
|
182
|
+
|
183
|
+
## 🏗️ Project Type Support
|
184
|
+
|
185
|
+
EnhanceSwarm automatically detects your project type and provides specialized coordination:
|
186
|
+
|
187
|
+
- **Rails**: Service objects, strong validations, Rails conventions
|
188
|
+
- **React/Next.js**: Component architecture, hooks, modern patterns
|
189
|
+
- **Django**: MVT patterns, Django REST framework, security
|
190
|
+
- **Vue**: Composition API, Vuex/Pinia, component design
|
191
|
+
- **And more**: Intelligent defaults for any framework
|
192
|
+
|
193
|
+
## 🔧 Configuration
|
194
|
+
|
195
|
+
### Smart Defaults
|
196
|
+
EnhanceSwarm automatically configures itself based on your project:
|
161
197
|
```yaml
|
162
|
-
|
163
|
-
name: "My Rails App"
|
164
|
-
description: "E-commerce platform with AI features"
|
165
|
-
technology_stack: ["Rails 8", "PostgreSQL", "Hotwire", "Tailwind"]
|
166
|
-
|
167
|
-
commands:
|
168
|
-
test: "bundle exec rspec"
|
169
|
-
lint: "bundle exec rubocop"
|
170
|
-
|
198
|
+
# .enhance_swarm.yml (auto-generated)
|
171
199
|
orchestration:
|
172
200
|
max_concurrent_agents: 4
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
### 3. Start Enhancing!
|
177
|
-
|
178
|
-
```bash
|
179
|
-
# Launch visual dashboard for agent monitoring
|
180
|
-
enhance-swarm dashboard
|
181
|
-
# Opens visual interface with agent status and real-time monitoring
|
182
|
-
|
183
|
-
# Start multi-agent development workflow
|
184
|
-
enhance-swarm enhance "implement user authentication system"
|
185
|
-
# ✅ Spawns real Claude agents with role specialization
|
186
|
-
# ✅ Coordinates backend → frontend → qa workflow
|
187
|
-
# ✅ Provides real-time progress monitoring
|
188
|
-
|
189
|
-
# Single specialized agent for focused tasks
|
190
|
-
enhance-swarm spawn "fix login validation bug" --role backend
|
191
|
-
# ✅ Spawns backend specialist with project context
|
192
|
-
# ✅ Uses actual Claude CLI for authentic development
|
193
|
-
```
|
194
|
-
|
195
|
-
## 🌐 Web Dashboard
|
196
|
-
|
197
|
-
EnhanceSwarm v1.0 includes a comprehensive web interface:
|
198
|
-
|
199
|
-
```bash
|
200
|
-
# Start the visual dashboard
|
201
|
-
enhance-swarm dashboard
|
202
|
-
```
|
203
|
-
|
204
|
-
**Features:**
|
205
|
-
- **Kanban Board**: Visual task management with drag-and-drop
|
206
|
-
- **Agent Monitoring**: Real-time status of all running agents
|
207
|
-
- **Project Analysis**: Live project structure and technology detection
|
208
|
-
- **Task Creation**: Spawn agents directly from the web interface
|
209
|
-
- **Progress Tracking**: Visual progress bars and completion status
|
210
|
-
|
211
|
-
## 🎛️ The Control Agent System
|
212
|
-
|
213
|
-
**Autonomous coordination powered by Claude:**
|
214
|
-
|
215
|
-
```bash
|
216
|
-
enhance-swarm enhance "implement user authentication" --follow
|
217
|
-
```
|
218
|
-
|
219
|
-
**Results in intelligent orchestration:**
|
201
|
+
coordination_enabled: true
|
202
|
+
smart_handoffs: true
|
220
203
|
|
204
|
+
agents:
|
205
|
+
backend:
|
206
|
+
specialization: "APIs, models, business logic"
|
207
|
+
best_practices: ["Rails conventions", "Service objects", "Strong validations"]
|
208
|
+
frontend:
|
209
|
+
specialization: "UI/UX, components, styling"
|
210
|
+
best_practices: ["Responsive design", "Component reuse", "Accessibility"]
|
221
211
|
```
|
222
|
-
🎛️ Control Agent Coordination
|
223
|
-
Phase: Backend Implementation
|
224
|
-
Progress: 45%
|
225
212
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
📝 Status: Backend agent implementing User model with bcrypt authentication
|
233
|
-
|
234
|
-
⏱️ Estimated completion: 20:45:30 (12m remaining)
|
213
|
+
### Resource Management
|
214
|
+
```yaml
|
215
|
+
resources:
|
216
|
+
max_memory_mb: 2048
|
217
|
+
max_disk_mb: 1024
|
218
|
+
max_concurrent_agents: 10
|
235
219
|
```
|
236
220
|
|
237
|
-
##
|
238
|
-
|
239
|
-
Watch your agents work in real-time:
|
240
|
-
|
241
|
-
```bash
|
242
|
-
enhance-swarm spawn "implement login API" --role backend --follow
|
243
|
-
```
|
221
|
+
## 🛡️ Production Features
|
244
222
|
|
245
|
-
|
223
|
+
### Security
|
224
|
+
- Command injection protection with comprehensive input sanitization
|
225
|
+
- Role-based agent validation and secure execution environments
|
226
|
+
- Automatic vulnerability scanning and security best practices
|
246
227
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
│ ● 📁 Reading app/models/user.rb │
|
252
|
-
│ ● ✅ Found User model with email field │
|
253
|
-
│ ● 🔧 Generating sessions controller... │
|
254
|
-
│ ● 📝 Writing spec/requests/auth_spec.rb │
|
255
|
-
│ ● 🏃 Running rspec... │
|
256
|
-
│ ● 🎯 Implementing password validation... │
|
257
|
-
│ ● 🔒 Adding bcrypt authentication... │
|
258
|
-
└───────────────────────────────────────────────────────────┘
|
259
|
-
|
260
|
-
📋 Completed:
|
261
|
-
✅ backend (2m15s)
|
262
|
-
```
|
228
|
+
### Resource Management
|
229
|
+
- Intelligent resource limits with automatic cleanup
|
230
|
+
- Memory, disk, and CPU monitoring per agent
|
231
|
+
- Graceful degradation when limits are reached
|
263
232
|
|
264
|
-
|
233
|
+
### Quality Assurance
|
234
|
+
- 100% test coverage for core functionality
|
235
|
+
- Comprehensive security testing framework
|
236
|
+
- Production validation and deployment readiness
|
265
237
|
|
266
|
-
|
238
|
+
## 📊 Monitoring & Status
|
267
239
|
|
240
|
+
### Check Orchestration Progress
|
268
241
|
```bash
|
269
|
-
# Check
|
242
|
+
# Check if orchestration is running
|
270
243
|
enhance-swarm status
|
271
244
|
|
272
|
-
#
|
273
|
-
|
245
|
+
# Monitor logs in real-time
|
246
|
+
tail -f .enhance_swarm/logs/orchestration.log
|
274
247
|
|
275
|
-
#
|
276
|
-
|
248
|
+
# View specific agent output
|
249
|
+
cat .enhance_swarm/logs/backend_output.log
|
277
250
|
```
|
278
251
|
|
279
|
-
|
280
|
-
```
|
281
|
-
=== EnhanceSwarm Status ===
|
282
|
-
Time: 2025-06-28 19:45:30
|
283
|
-
|
284
|
-
📊 Summary:
|
285
|
-
Total worktrees: 3
|
286
|
-
Active: 1
|
287
|
-
Stale: 0
|
288
|
-
|
289
|
-
📋 Tasks:
|
290
|
-
Completed: 2
|
291
|
-
Active: 1
|
292
|
-
Blocked: 0
|
293
|
-
|
294
|
-
✅ Recently Completed:
|
295
|
-
auth-backend (swarm/backend-auth-20250628)
|
296
|
-
login-ui (swarm/frontend-login-20250628)
|
297
|
-
|
298
|
-
🔄 Currently Active:
|
299
|
-
payment-integration (5m ago)
|
300
|
-
```
|
301
|
-
|
302
|
-
## 🔔 Smart Notifications & Interrupts
|
303
|
-
|
304
|
-
Stay informed about agent progress with intelligent notifications:
|
305
|
-
|
252
|
+
### Understanding Output
|
306
253
|
```bash
|
307
|
-
|
308
|
-
|
254
|
+
🎯 Starting intelligent multi-agent orchestration
|
255
|
+
🚀 Orchestration started in detached mode
|
256
|
+
📁 Check .enhance_swarm/logs/ for progress updates
|
309
257
|
|
310
|
-
#
|
311
|
-
|
312
|
-
|
258
|
+
# Status responses:
|
259
|
+
📊 Orchestration running (PID: 12345)
|
260
|
+
Status: RUNNING
|
261
|
+
✅ Status: COMPLETED
|
262
|
+
❌ Status: FAILED: <error message>
|
313
263
|
```
|
314
264
|
|
315
|
-
|
316
|
-
|
317
|
-
- **Desktop Notifications**: Cross-platform desktop alerts (macOS/Linux/Windows)
|
318
|
-
- **Priority-Based**: Critical, High, Medium, Low priority notifications
|
319
|
-
- **Agent Events**: Completion, failures, stuck detection, milestones
|
320
|
-
- **Intelligent Interrupts**: Timeout-based prompts for stuck/failed agents
|
321
|
-
- **Sound Alerts**: Configurable sound notifications for critical events
|
322
|
-
|
323
|
-
**Interrupt Handling:**
|
324
|
-
|
325
|
-
```bash
|
326
|
-
# Automatic prompts for stuck agents
|
327
|
-
Agent 'backend' stuck for 12m. Restart? [y/N]
|
328
|
-
(Auto-selecting 'n' in 30s if no response)
|
329
|
-
|
330
|
-
# Smart error recovery suggestions
|
331
|
-
Agent 'frontend' failed: Connection timeout
|
332
|
-
💡 Quick fixes:
|
333
|
-
1. Restart agent with longer timeout
|
334
|
-
2. Check network connectivity
|
335
|
-
Choose [1-2] or [c]ustom command:
|
336
|
-
|
337
|
-
# Manual agent management
|
338
|
-
enhance-swarm restart backend-auth-123
|
265
|
+
### Log Structure
|
339
266
|
```
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
# Show communication status
|
348
|
-
enhance-swarm communicate
|
349
|
-
|
350
|
-
# Demo communication features
|
351
|
-
enhance-swarm communicate --demo
|
352
|
-
|
353
|
-
# Show communication status with details
|
354
|
-
enhance-swarm communicate --status
|
267
|
+
.enhance_swarm/logs/
|
268
|
+
├── orchestration.log # Main orchestration progress
|
269
|
+
├── orchestration_status.txt # Current status (RUNNING/COMPLETED/FAILED)
|
270
|
+
├── orchestration.pid # Process ID for monitoring
|
271
|
+
├── backend_output.log # Backend agent output
|
272
|
+
├── frontend_output.log # Frontend agent output
|
273
|
+
└── general_output.log # General agent output
|
355
274
|
```
|
356
275
|
|
357
|
-
|
358
|
-
|
359
|
-
- **Real-time Messaging**: Agents can ask questions while working
|
360
|
-
- **Non-blocking**: Continue other work while agents wait for responses
|
361
|
-
- **Message Types**: Questions, status updates, progress reports, decisions
|
362
|
-
- **Quick Actions**: Pre-defined responses for common agent questions
|
363
|
-
- **Timeout Handling**: Default responses when user is unavailable
|
364
|
-
- **File-based**: Cross-process communication that persists across sessions
|
365
|
-
|
366
|
-
**Example Agent Communication:**
|
276
|
+
## 🎯 Real-World Examples
|
367
277
|
|
278
|
+
### Add Authentication System
|
368
279
|
```bash
|
369
|
-
|
370
|
-
Pending messages: 2
|
371
|
-
Recent messages: 3
|
372
|
-
|
373
|
-
📋 Recent Messages:
|
374
|
-
1. question from demo-backend
|
375
|
-
Should I use PostgreSQL or MySQL?...
|
376
|
-
2. status from demo-frontend
|
377
|
-
UI components 60% complete...
|
280
|
+
enhance-swarm orchestrate "Add user authentication with JWT tokens and email verification"
|
378
281
|
```
|
282
|
+
**Result**: Complete auth system with backend APIs, frontend forms, email templates, and comprehensive tests.
|
379
283
|
|
380
|
-
|
381
|
-
|
382
|
-
Real-time monitoring with an interactive visual dashboard:
|
383
|
-
|
284
|
+
### Build Todo Management
|
384
285
|
```bash
|
385
|
-
|
386
|
-
enhance-swarm dashboard
|
387
|
-
|
388
|
-
# Monitor specific agents
|
389
|
-
enhance-swarm dashboard --agents backend-auth-123 frontend-ui-456
|
390
|
-
|
391
|
-
# Take a snapshot and exit
|
392
|
-
enhance-swarm dashboard --snapshot
|
393
|
-
|
394
|
-
# Custom refresh rate
|
395
|
-
enhance-swarm dashboard --refresh 1
|
396
|
-
```
|
397
|
-
|
398
|
-
**Dashboard Features:**
|
399
|
-
|
400
|
-
- **Agent Status Grid**: Visual status indicators for all agents
|
401
|
-
- **Progress Bars**: Real-time progress tracking with percentages
|
402
|
-
- **System Resources**: Memory usage, process count, message queue
|
403
|
-
- **Interactive Controls**: Pause, refresh, help, detailed views
|
404
|
-
- **Health Indicators**: Visual agent health with color coding
|
405
|
-
- **Terminal UI**: Full terminal-based interface with keyboard shortcuts
|
406
|
-
|
407
|
-
**Dashboard Interface:**
|
408
|
-
|
409
|
-
```
|
410
|
-
┌─── 🖥️ EnhanceSwarm Visual Dashboard ─────────────────────────────────┐
|
411
|
-
│ 14:32:15 │ Agents: 4 │ Active: 2 │ Updated: 3s ago │
|
412
|
-
└────────────────────────────────────────────────────────────────────────┘
|
413
|
-
|
414
|
-
📊 Coordination Status
|
415
|
-
─────────────────────────────────────────
|
416
|
-
Phase: Frontend Implementation
|
417
|
-
Progress: ████████░░░░░░░░░░░░░░░░░░░░ 75%
|
418
|
-
Active: frontend-ui-456
|
419
|
-
Completed: backend-auth-123, ux-design-789
|
420
|
-
|
421
|
-
🤖 Agent Status Grid
|
422
|
-
────────────────────────────────────────────────────────────────
|
423
|
-
┌────────────────┐ ┌────────────────┐ ┌────────────────┐ ┌────────────────┐
|
424
|
-
│ backend │ │ frontend │ │ qa │ │ ux │
|
425
|
-
│ 🟢 Active │ │ ✅ Done │ │ 🔄 Starting │ │ ✅ Done │
|
426
|
-
│ ████████░░░░ │ │ ██████████████ │ │ │ │ ██████████████ │
|
427
|
-
│ 2m15s │ │ 4m32s │ │ 12s │ │ 8m45s │
|
428
|
-
└────────────────┘ └────────────────┘ └────────────────┘ └────────────────┘
|
429
|
-
|
430
|
-
📈 System Resources
|
431
|
-
──────────────────────────────
|
432
|
-
Memory: ██████████░░░░░░░░░░ 8.2GB/16GB
|
433
|
-
Processes: 3 active
|
434
|
-
Messages: 1 pending
|
435
|
-
|
436
|
-
🎮 Controls
|
437
|
-
───────────────
|
438
|
-
[q] Quit [r] Refresh [p] Pause [c] Clear [h] Help
|
286
|
+
enhance-swarm orchestrate "Create todo management with categories, due dates, and real-time updates"
|
439
287
|
```
|
288
|
+
**Result**: Full-stack todo system with database models, REST APIs, interactive UI, and real-time features.
|
440
289
|
|
441
|
-
|
442
|
-
|
443
|
-
Intelligent project analysis and automation:
|
444
|
-
|
290
|
+
### E-commerce Integration
|
445
291
|
```bash
|
446
|
-
|
447
|
-
enhance-swarm suggest
|
448
|
-
|
449
|
-
# Show context-aware suggestions
|
450
|
-
enhance-swarm suggest --context "need to improve performance"
|
292
|
+
enhance-swarm orchestrate "Add shopping cart and checkout flow with Stripe integration"
|
451
293
|
```
|
294
|
+
**Result**: Complete e-commerce functionality with payment processing, order management, and secure checkout.
|
452
295
|
|
453
|
-
|
454
|
-
|
455
|
-
- **Role Detection**: Automatically suggest best agent role for tasks
|
456
|
-
- **Project Analysis**: Detect technology stack and suggest optimal settings
|
457
|
-
- **Auto-cleanup**: Intelligent cleanup of stale resources
|
458
|
-
- **Pattern Learning**: Learn from user preferences and past actions
|
459
|
-
- **Context-aware Commands**: Suggest appropriate commands based on project state
|
460
|
-
- **Concurrency Optimization**: Recommend optimal agent counts based on system resources
|
461
|
-
|
462
|
-
**Example Smart Suggestions:**
|
296
|
+
## 📊 Monitoring & Debugging
|
463
297
|
|
298
|
+
### Real-time Dashboard
|
464
299
|
```bash
|
465
|
-
|
466
|
-
|
467
|
-
💡 Smart Suggestions:
|
468
|
-
|
469
|
-
1. [HIGH] Stale worktrees detected
|
470
|
-
Command: enhance-swarm cleanup --all
|
471
|
-
|
472
|
-
2. [MEDIUM] Code changes detected, tests should be run
|
473
|
-
Command: npm test
|
474
|
-
|
475
|
-
3. [LOW] End of day cleanup
|
476
|
-
Command: enhance-swarm cleanup --all
|
477
|
-
|
478
|
-
🤖 Auto-detected role: backend (use --role to override)
|
479
|
-
✅ Auto-cleaned 3 stale resources
|
480
|
-
```
|
481
|
-
|
482
|
-
## 🔧 Better Error Recovery
|
483
|
-
|
484
|
-
Intelligent error analysis and automatic recovery:
|
485
|
-
|
486
|
-
```bash
|
487
|
-
# Analyze specific errors
|
488
|
-
enhance-swarm recover --analyze "Connection timeout after 30 seconds"
|
489
|
-
|
490
|
-
# View error recovery statistics
|
491
|
-
enhance-swarm recover --stats
|
492
|
-
|
493
|
-
# Demo error recovery features
|
494
|
-
enhance-swarm recover --demo
|
495
|
-
|
496
|
-
# Interactive troubleshooting assistant
|
497
|
-
enhance-swarm troubleshoot
|
498
|
-
```
|
499
|
-
|
500
|
-
**Error Recovery Features:**
|
501
|
-
|
502
|
-
- **Pattern Recognition**: Learn from error patterns and successful recoveries
|
503
|
-
- **Automatic Recovery**: Attempt common fixes automatically
|
504
|
-
- **Recovery Strategies**: Network retry, file creation, dependency installation
|
505
|
-
- **Success Tracking**: Monitor recovery success rates and improve strategies
|
506
|
-
- **Manual Learning**: Capture and reuse manual recovery procedures
|
507
|
-
- **Context Analysis**: Consider project context when suggesting fixes
|
508
|
-
|
509
|
-
**Error Analysis Output:**
|
510
|
-
|
511
|
-
```bash
|
512
|
-
🔍 Analyzing error: Connection timeout after 30 seconds
|
513
|
-
|
514
|
-
📊 Error Analysis:
|
515
|
-
Type: StandardError
|
516
|
-
Auto-recoverable: Yes
|
517
|
-
|
518
|
-
🔎 Matching Patterns:
|
519
|
-
1. Network timeout pattern (85% confidence)
|
520
|
-
|
521
|
-
💡 Recovery Suggestions:
|
522
|
-
1. 🤖 Retry with exponential backoff (85%)
|
523
|
-
2. 👤 Check network connectivity (70%)
|
524
|
-
3. 🤖 Increase timeout and retry (60%)
|
525
|
-
|
526
|
-
📖 Error Explanation: Connection timeout after 30 seconds
|
527
|
-
|
528
|
-
This typically occurs when a network request takes longer than the configured timeout period.
|
529
|
-
|
530
|
-
🔍 Likely Cause:
|
531
|
-
Network latency or server overload
|
532
|
-
|
533
|
-
🛡️ Prevention Tips:
|
534
|
-
1. Implement retry logic with exponential backoff
|
535
|
-
2. Monitor network connectivity before making requests
|
536
|
-
3. Configure appropriate timeout values for your use case
|
537
|
-
4. Consider using connection pooling for better performance
|
538
|
-
```
|
539
|
-
|
540
|
-
**Interactive Troubleshooting:**
|
541
|
-
|
542
|
-
```bash
|
543
|
-
🔧 Interactive Troubleshooting Mode
|
544
|
-
────────────────────────────────────────
|
545
|
-
|
546
|
-
What would you like to troubleshoot?
|
547
|
-
1. Recent agent failures
|
548
|
-
2. Configuration issues
|
549
|
-
3. Dependency problems
|
550
|
-
4. Performance issues
|
551
|
-
5. Exit
|
552
|
-
|
553
|
-
Enter your choice (1-5): 2
|
554
|
-
|
555
|
-
⚙️ Configuration Troubleshooting
|
556
|
-
✅ Configuration file found: .enhance_swarm.yml
|
557
|
-
✅ Configuration file is valid YAML
|
558
|
-
✅ Configuration appears to be valid
|
559
|
-
```
|
560
|
-
|
561
|
-
## 🧠 Core Commands & Examples
|
562
|
-
|
563
|
-
### Multi-Agent Orchestration
|
564
|
-
|
565
|
-
```bash
|
566
|
-
# Full feature implementation
|
567
|
-
enhance-swarm enhance "implement shopping cart with checkout"
|
568
|
-
# → Spawns: UX → Backend → Frontend → QA agents in sequence
|
569
|
-
|
570
|
-
# With live streaming
|
571
|
-
enhance-swarm enhance "add user dashboard" --follow
|
572
|
-
# → Real-time coordination display with agent progress
|
573
|
-
|
574
|
-
# Specific task from backlog
|
575
|
-
enhance-swarm enhance --task CART-123
|
576
|
-
# → Processes specific task ID
|
577
|
-
```
|
578
|
-
|
579
|
-
### Single Agent Tasks
|
580
|
-
|
581
|
-
```bash
|
582
|
-
# Backend specialist
|
583
|
-
enhance-swarm spawn "fix payment API timeout" --role backend
|
584
|
-
|
585
|
-
# Frontend specialist
|
586
|
-
enhance-swarm spawn "improve mobile responsiveness" --role frontend
|
587
|
-
|
588
|
-
# QA specialist
|
589
|
-
enhance-swarm spawn "add edge case tests for auth" --role qa
|
590
|
-
|
591
|
-
# UX specialist
|
592
|
-
enhance-swarm spawn "redesign onboarding flow" --role ux
|
593
|
-
```
|
594
|
-
|
595
|
-
### Monitoring & Management
|
596
|
-
|
597
|
-
```bash
|
598
|
-
# System health check
|
599
|
-
enhance-swarm doctor
|
600
|
-
# → Validates dependencies, git setup, requirements
|
601
|
-
|
602
|
-
# Project status
|
603
|
-
enhance-swarm status --json
|
604
|
-
# → Detailed status including active agents, worktrees, health
|
605
|
-
|
606
|
-
# Configuration details
|
607
|
-
enhance-swarm config
|
608
|
-
# → Show current project configuration
|
609
|
-
|
610
|
-
# Manage notifications
|
611
|
-
enhance-swarm notifications --test
|
612
|
-
# → Test notification system functionality
|
613
|
-
|
614
|
-
# Get smart suggestions
|
615
|
-
enhance-swarm suggest
|
616
|
-
# → Context-aware improvement suggestions
|
617
|
-
```
|
618
|
-
|
619
|
-
## 🏗️ Architecture Overview
|
620
|
-
|
621
|
-
```
|
622
|
-
┌─ Your Terminal ─────────────────────────────────────────┐
|
623
|
-
│ enhance-swarm CLI (Self-Contained Ruby Orchestrator) │
|
624
|
-
│ ├── Built-in Agent Spawning & Session Management │
|
625
|
-
│ ├── Progress Tracking & Live Streaming │
|
626
|
-
│ ├── Process Monitoring & Status Reporting │
|
627
|
-
│ └── Git Worktree Management & Resource Cleanup │
|
628
|
-
└─────────────────────┬───────────────────────────────────┘
|
629
|
-
│
|
630
|
-
┌─ Control Agent ─────▼───────────────────────────────────┐
|
631
|
-
│ Claude Instance (Autonomous Coordinator) │
|
632
|
-
│ ├── Task Analysis & Agent Planning │
|
633
|
-
│ ├── Dependency Management (backend → frontend → qa) │
|
634
|
-
│ ├── Progress Monitoring & Handoff Decisions │
|
635
|
-
│ └── Conflict Resolution & Error Recovery │
|
636
|
-
└─────────────────────┬───────────────────────────────────┘
|
637
|
-
│ spawns & coordinates via JSON
|
638
|
-
┌──────────┼──────────┬──────────┐
|
639
|
-
▼ ▼ ▼ ▼
|
640
|
-
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
|
641
|
-
│🔧 Backend│ │🎨 Frontend│ │🧪 QA │ │✨ UX │
|
642
|
-
│ Agent │ │ Agent │ │ Agent │ │ Agent │
|
643
|
-
│ Worktree│ │ Worktree│ │ Worktree│ │ Worktree│
|
644
|
-
└─────────┘ └─────────┘ └─────────┘ └─────────┘
|
645
|
-
```
|
646
|
-
|
647
|
-
## ⚙️ Advanced Configuration
|
648
|
-
|
649
|
-
### Custom Agent Roles
|
650
|
-
|
651
|
-
```yaml
|
652
|
-
# .enhance_swarm.yml
|
653
|
-
agents:
|
654
|
-
database_expert:
|
655
|
-
focus: "Database optimization, migrations, indexing"
|
656
|
-
trigger_keywords: ["database", "migration", "index", "query"]
|
657
|
-
|
658
|
-
security_specialist:
|
659
|
-
focus: "Security audits, vulnerability scanning"
|
660
|
-
trigger_keywords: ["security", "auth", "permission", "encrypt"]
|
300
|
+
enhance-swarm dashboard
|
661
301
|
```
|
302
|
+
- Live agent status and progress
|
303
|
+
- Resource usage monitoring
|
304
|
+
- Task coordination visualization
|
305
|
+
- Interactive controls and logs
|
662
306
|
|
663
|
-
###
|
664
|
-
|
307
|
+
### Status Tracking
|
665
308
|
```bash
|
666
|
-
|
667
|
-
export ENHANCE_SWARM_LOG_LEVEL=debug
|
668
|
-
export ENHANCE_SWARM_JSON_LOGS=true
|
669
|
-
|
670
|
-
# Behavior
|
671
|
-
export ENHANCE_SWARM_STRICT=true # Fail fast on dependency issues
|
672
|
-
```
|
673
|
-
|
674
|
-
### MCP Tool Integration
|
675
|
-
|
676
|
-
```yaml
|
677
|
-
# .enhance_swarm.yml
|
678
|
-
mcp_tools:
|
679
|
-
gemini_cli: true # Large codebase analysis
|
680
|
-
desktop_commander: true # File operations outside project
|
681
|
-
```
|
682
|
-
|
683
|
-
## 🛡️ Security & Quality
|
684
|
-
|
685
|
-
### Built-in Security
|
686
|
-
|
687
|
-
- **Command Injection Protection**: All shell commands use `Open3.capture3` with argument sanitization
|
688
|
-
- **Input Validation**: Configuration values validated, dangerous patterns blocked
|
689
|
-
- **Path Sanitization**: Prevents directory traversal attacks
|
690
|
-
- **Timeout Protection**: All external commands have configurable timeouts
|
691
|
-
- **Secure Defaults**: Principle of least privilege, secure by default
|
692
|
-
|
693
|
-
### Quality Assurance
|
694
|
-
|
695
|
-
- **106 Comprehensive Tests**: Security, functionality, edge cases
|
696
|
-
- **Automated Retry Logic**: Handles transient failures gracefully
|
697
|
-
- **Resource Cleanup**: Automatic cleanup of stale worktrees and processes
|
698
|
-
- **Dependency Validation**: Ensures required tools are available and working
|
699
|
-
|
700
|
-
## 🚨 Error Recovery & Resilience
|
701
|
-
|
702
|
-
### Automatic Retry Logic
|
703
|
-
|
704
|
-
```ruby
|
705
|
-
# Built-in retry for transient failures
|
706
|
-
RetryHandler.with_retry(max_retries: 3) do
|
707
|
-
CommandExecutor.execute('git', 'push', 'origin', 'HEAD')
|
708
|
-
end
|
309
|
+
enhance-swarm status
|
709
310
|
```
|
311
|
+
- Active agents and their specializations
|
312
|
+
- Task dependencies and completion status
|
313
|
+
- Git worktree isolation and branch tracking
|
314
|
+
- Session management and progress metrics
|
710
315
|
|
711
|
-
|
316
|
+
## 🚦 Troubleshooting
|
712
317
|
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
# - Failed operation artifacts
|
719
|
-
enhance-swarm cleanup --all
|
720
|
-
```
|
721
|
-
|
722
|
-
### Health Monitoring
|
318
|
+
### Common Issues
|
319
|
+
- **No Claude CLI**: Install from [Claude Code](https://claude.ai/code)
|
320
|
+
- **Permission Errors**: Ensure git repository is initialized
|
321
|
+
- **Resource Limits**: Adjust limits in `.enhance_swarm.yml`
|
322
|
+
- **Agent Conflicts**: Use `enhance-swarm cleanup` to reset state
|
723
323
|
|
324
|
+
### Debug Mode
|
724
325
|
```bash
|
725
|
-
|
726
|
-
enhance-swarm doctor --detailed --json
|
727
|
-
# → Validates git, claude-swarm, ruby, dependencies with version checks
|
326
|
+
ENHANCE_SWARM_DEBUG=true enhance-swarm orchestrate "your task"
|
728
327
|
```
|
729
328
|
|
730
|
-
##
|
731
|
-
|
732
|
-
### Intelligent Context Management
|
733
|
-
|
734
|
-
- **Specialized Prompts**: Role-specific prompts minimize token usage
|
735
|
-
- **Progressive Context**: Only relevant context passed to each agent
|
736
|
-
- **Efficient Monitoring**: Brief coordination checks vs. continuous polling
|
737
|
-
- **Smart Caching**: Reuse analysis results across agents
|
738
|
-
|
739
|
-
### Usage Tracking
|
329
|
+
## 📚 Quick Reference
|
740
330
|
|
331
|
+
### Essential Commands
|
741
332
|
```bash
|
742
|
-
#
|
743
|
-
|
744
|
-
```
|
745
|
-
|
746
|
-
## 🔧 Troubleshooting
|
747
|
-
|
748
|
-
### Self-Contained Architecture
|
749
|
-
|
750
|
-
✅ **No External Dependencies Required**
|
751
|
-
- **Built-in agent spawning** - No need for external claude-swarm tool
|
752
|
-
- **Session management** - JSON-based coordination and tracking
|
753
|
-
- **Process monitoring** - Native PID management and status checking
|
754
|
-
- **Git worktree integration** - Direct git command execution
|
333
|
+
# Setup
|
334
|
+
gem install enhance_swarm && enhance-swarm init
|
755
335
|
|
756
|
-
|
757
|
-
|
758
|
-
```bash
|
759
|
-
# Dependency problems
|
760
|
-
enhance-swarm doctor
|
761
|
-
# → Validates git, Ruby, and optional tools
|
336
|
+
# Start orchestration (recommended)
|
337
|
+
enhance-swarm orchestrate "Your task description" --detached
|
762
338
|
|
763
|
-
#
|
339
|
+
# Monitor progress
|
764
340
|
enhance-swarm status
|
765
|
-
|
341
|
+
tail -f .enhance_swarm/logs/orchestration.log
|
766
342
|
|
767
|
-
# Interactive
|
768
|
-
enhance-swarm
|
769
|
-
# → Guided problem diagnosis and system health checks
|
343
|
+
# Alternative: Interactive mode
|
344
|
+
enhance-swarm enhance
|
770
345
|
```
|
771
346
|
|
772
|
-
###
|
773
|
-
|
347
|
+
### Command Options
|
774
348
|
```bash
|
775
|
-
#
|
776
|
-
|
777
|
-
|
778
|
-
#
|
779
|
-
ENHANCE_SWARM_JSON_LOGS=true enhance-swarm enhance "test task"
|
780
|
-
```
|
781
|
-
|
782
|
-
## 🤝 Integration Examples
|
783
|
-
|
784
|
-
### Rails Projects
|
785
|
-
|
786
|
-
```yaml
|
787
|
-
# .enhance_swarm.yml for Rails
|
788
|
-
project:
|
789
|
-
technology_stack: ["Rails 8", "PostgreSQL", "Hotwire", "Tailwind"]
|
790
|
-
|
791
|
-
commands:
|
792
|
-
test: "bundle exec rspec"
|
793
|
-
lint: "bundle exec rubocop"
|
794
|
-
type_check: "bundle exec sorbet tc"
|
795
|
-
```
|
796
|
-
|
797
|
-
### React/Node Projects
|
798
|
-
|
799
|
-
```yaml
|
800
|
-
# .enhance_swarm.yml for React
|
801
|
-
project:
|
802
|
-
technology_stack: ["React 18", "TypeScript", "Vite", "TailwindCSS"]
|
803
|
-
|
804
|
-
commands:
|
805
|
-
test: "npm test"
|
806
|
-
lint: "npm run lint"
|
807
|
-
type_check: "npm run type-check"
|
808
|
-
build: "npm run build"
|
349
|
+
--detached # Run in background (recommended)
|
350
|
+
--background # Run with periodic updates
|
351
|
+
--follow # Stream live output (blocking)
|
352
|
+
--coordination # Enable task coordination (default: true)
|
809
353
|
```
|
810
354
|
|
811
|
-
###
|
812
|
-
|
813
|
-
```yaml
|
814
|
-
# .enhance_swarm.yml for Python
|
815
|
-
project:
|
816
|
-
technology_stack: ["Python 3.11", "FastAPI", "PostgreSQL", "Pytest"]
|
817
|
-
|
818
|
-
commands:
|
819
|
-
test: "pytest"
|
820
|
-
lint: "ruff check ."
|
821
|
-
format: "black ."
|
822
|
-
type_check: "mypy ."
|
823
|
-
```
|
824
|
-
|
825
|
-
## 📈 Performance & Scaling
|
826
|
-
|
827
|
-
### Optimized for Large Codebases
|
828
|
-
|
829
|
-
- **Parallel Agent Execution**: Multiple agents work simultaneously
|
830
|
-
- **Git Worktree Isolation**: No conflicts between agent work
|
831
|
-
- **Efficient Monitoring**: Brief coordination checks, not continuous polling
|
832
|
-
- **Smart Resource Management**: Automatic cleanup prevents resource leaks
|
833
|
-
|
834
|
-
### Benchmarks
|
835
|
-
|
836
|
-
- **Startup Time**: < 2 seconds for agent coordination
|
837
|
-
- **Memory Usage**: ~50MB base + ~30MB per active agent
|
838
|
-
- **Token Efficiency**: 60-80% reduction vs. single-agent approaches
|
839
|
-
|
840
|
-
## 🎓 Best Practices
|
841
|
-
|
842
|
-
### Task Sizing
|
843
|
-
|
844
|
-
**✅ Good for Multi-Agent:**
|
845
|
-
- Feature implementations requiring UI + backend + tests
|
846
|
-
- Complex refactoring across multiple components
|
847
|
-
- New system integrations with multiple touch points
|
848
|
-
|
849
|
-
**✅ Good for Single Agent:**
|
850
|
-
- Bug fixes in specific components
|
851
|
-
- Configuration updates
|
852
|
-
- Documentation improvements
|
853
|
-
- Small feature additions
|
854
|
-
|
855
|
-
### Workflow Patterns
|
856
|
-
|
355
|
+
### Common Tasks
|
857
356
|
```bash
|
858
|
-
#
|
859
|
-
enhance-swarm
|
860
|
-
# → Watch agents coordinate in real-time
|
357
|
+
# Full-stack features
|
358
|
+
enhance-swarm orchestrate "Create user registration with email verification" --detached
|
861
359
|
|
862
|
-
#
|
863
|
-
enhance-swarm
|
864
|
-
# → Check overall progress
|
360
|
+
# CRUD systems
|
361
|
+
enhance-swarm orchestrate "Build inventory management with categories and search" --detached
|
865
362
|
|
866
|
-
#
|
867
|
-
enhance-swarm
|
868
|
-
# → Real-time visual monitoring
|
363
|
+
# API development
|
364
|
+
enhance-swarm orchestrate "Add REST API with JWT authentication" --detached
|
869
365
|
|
870
|
-
#
|
871
|
-
enhance-swarm
|
872
|
-
# → Context-aware next actions
|
366
|
+
# UI components
|
367
|
+
enhance-swarm orchestrate "Create responsive dashboard with charts" --detached
|
873
368
|
```
|
874
369
|
|
875
|
-
##
|
370
|
+
## 🤝 Contributing
|
876
371
|
|
877
|
-
EnhanceSwarm
|
372
|
+
EnhanceSwarm is designed for production use and community contributions:
|
878
373
|
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
- **Production Ready**: Security, reliability, and error recovery built-in
|
374
|
+
1. **Report Issues**: [GitHub Issues](https://github.com/todddickerson/enhance_swarm/issues)
|
375
|
+
2. **Request Features**: Orchestration improvements, new agent types, project support
|
376
|
+
3. **Submit PRs**: Agent specializations, coordination algorithms, integrations
|
883
377
|
|
884
|
-
|
378
|
+
## 📈 Roadmap
|
885
379
|
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
bundle exec enhance-swarm init
|
891
|
-
```
|
892
|
-
|
893
|
-
---
|
380
|
+
- **v1.1**: Advanced agent communication protocols
|
381
|
+
- **v1.2**: Visual workflow designer and task dependencies
|
382
|
+
- **v1.3**: Custom agent types and specialization training
|
383
|
+
- **v1.4**: Multi-project coordination and team templates
|
894
384
|
|
895
385
|
## 📄 License
|
896
386
|
|
897
|
-
MIT License - see [LICENSE](LICENSE)
|
898
|
-
|
899
|
-
## 🙏 Acknowledgments
|
900
|
-
|
901
|
-
Built from production experience with Claude Swarm orchestration patterns. Special thanks to the Anthropic team for Claude and the emerging multi-agent development paradigms.
|
387
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
902
388
|
|
903
389
|
---
|
904
390
|
|
905
|
-
**Transform your development
|
391
|
+
**EnhanceSwarm v1.0** - Transform Claude into your intelligent development team. Built for production, optimized for collaboration, designed for the future of AI-powered development.
|
392
|
+
|
393
|
+
🚀 **Ready to revolutionize your development workflow?** `gem install enhance_swarm`
|