enhance_swarm 1.0.0 → 2.0.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/.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 +404 -0
- data/.enhance_swarm/user_patterns.json +5 -5
- data/DEPLOYMENT.md +344 -0
- data/README.md +183 -820
- data/debug_agent_spawner.rb +99 -0
- data/debug_cli_spawn.rb +95 -0
- data/debug_fixes.rb +209 -0
- data/debug_script_execution.rb +124 -0
- data/debug_session_issue.rb +87 -0
- data/debug_spawn.rb +113 -0
- data/debug_spawn_step_by_step.rb +190 -0
- data/debug_worktree.rb +77 -0
- data/enhance_swarm-0.1.1.gem +0 -0
- data/enhance_swarm-1.0.0.gem +0 -0
- data/final_validation_test.rb +199 -0
- data/lib/enhance_swarm/agent_spawner.rb +5 -1
- data/lib/enhance_swarm/cli.rb +42 -9
- 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 +1050 -0
- data/lib/enhance_swarm/version.rb +1 -1
- data/lib/enhance_swarm/visual_dashboard.rb +2 -1
- data/test_blog_app/.enhance_swarm/archives/session_1751187575_e119ea73_20250629_105935.json +16 -0
- data/test_blog_app/.enhance_swarm/archives/session_1751187637_7fda97dd_20250629_110037.json +32 -0
- data/test_blog_app/.enhance_swarm/archives/session_1751190527_4c99147e_20250629_114847.json +32 -0
- data/test_blog_app/.enhance_swarm/archives/session_1751190541_8dc83406_20250629_114901.json +16 -0
- data/test_blog_app/.ruby-version +1 -0
- data/test_blog_app/Gemfile +18 -0
- data/test_blog_app/Gemfile.lock +206 -0
- data/test_blog_app/README.md +24 -0
- data/test_blog_app/Rakefile +6 -0
- data/test_blog_app/app/assets/images/.keep +0 -0
- data/test_blog_app/app/assets/stylesheets/application.css +10 -0
- data/test_blog_app/app/controllers/application_controller.rb +4 -0
- data/test_blog_app/app/controllers/concerns/.keep +0 -0
- data/test_blog_app/app/helpers/application_helper.rb +2 -0
- data/test_blog_app/app/models/application_record.rb +3 -0
- data/test_blog_app/app/models/concerns/.keep +0 -0
- data/test_blog_app/app/views/layouts/application.html.erb +27 -0
- data/test_blog_app/app/views/pwa/manifest.json.erb +22 -0
- data/test_blog_app/app/views/pwa/service-worker.js +26 -0
- data/test_blog_app/bin/dev +2 -0
- data/test_blog_app/bin/rails +4 -0
- data/test_blog_app/bin/rake +4 -0
- data/test_blog_app/bin/setup +34 -0
- data/test_blog_app/config/application.rb +42 -0
- data/test_blog_app/config/boot.rb +3 -0
- data/test_blog_app/config/credentials.yml.enc +1 -0
- data/test_blog_app/config/database.yml +32 -0
- data/test_blog_app/config/environment.rb +5 -0
- data/test_blog_app/config/environments/development.rb +51 -0
- data/test_blog_app/config/environments/production.rb +67 -0
- data/test_blog_app/config/environments/test.rb +42 -0
- data/test_blog_app/config/initializers/assets.rb +7 -0
- data/test_blog_app/config/initializers/content_security_policy.rb +25 -0
- data/test_blog_app/config/initializers/filter_parameter_logging.rb +8 -0
- data/test_blog_app/config/initializers/inflections.rb +16 -0
- data/test_blog_app/config/locales/en.yml +31 -0
- data/test_blog_app/config/master.key +1 -0
- data/test_blog_app/config/puma.rb +38 -0
- data/test_blog_app/config/routes.rb +14 -0
- data/test_blog_app/config.ru +6 -0
- data/test_blog_app/db/seeds.rb +9 -0
- data/test_blog_app/lib/tasks/.keep +0 -0
- data/test_blog_app/log/.keep +0 -0
- data/test_blog_app/public/400.html +114 -0
- data/test_blog_app/public/404.html +114 -0
- data/test_blog_app/public/406-unsupported-browser.html +114 -0
- data/test_blog_app/public/422.html +114 -0
- data/test_blog_app/public/500.html +114 -0
- data/test_blog_app/public/icon.png +0 -0
- data/test_blog_app/public/icon.svg +3 -0
- data/test_blog_app/public/robots.txt +1 -0
- data/test_blog_app/script/.keep +0 -0
- data/test_blog_app/storage/.keep +0 -0
- data/test_blog_app/test/controllers/.keep +0 -0
- data/test_blog_app/test/fixtures/files/.keep +0 -0
- data/test_blog_app/test/helpers/.keep +0 -0
- data/test_blog_app/test/integration/.keep +0 -0
- data/test_blog_app/test/models/.keep +0 -0
- data/test_blog_app/test/test_helper.rb +15 -0
- data/test_blog_app/test_enhance_swarm_e2e.rb +244 -0
- data/test_blog_app/test_realistic_workflow.rb +292 -0
- data/test_blog_app/tmp/.keep +0 -0
- data/test_blog_app/tmp/pids/.keep +0 -0
- data/test_blog_app/tmp/storage/.keep +0 -0
- data/test_blog_app/vendor/.keep +0 -0
- data/test_complete_system.rb +267 -0
- metadata +99 -1
data/README.md
CHANGED
@@ -1,905 +1,268 @@
|
|
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
|
-
echo 'gem "enhance_swarm", git: "https://github.com/todddickerson/enhance_swarm.git"' >> Gemfile
|
79
|
-
bundle install
|
80
|
-
|
81
|
-
# Initialize in your project
|
82
|
-
bundle exec enhance-swarm init
|
83
|
-
```
|
84
|
-
|
85
|
-
#### Option 3: Global Installation from Source
|
86
|
-
|
87
|
-
```bash
|
88
|
-
# Clone and install globally
|
89
|
-
git clone https://github.com/todddickerson/enhance_swarm.git
|
90
|
-
cd enhance_swarm
|
91
|
-
bundle install && rake install
|
92
|
-
|
93
|
-
# Use anywhere
|
25
|
+
cd your_project
|
94
26
|
enhance-swarm init
|
95
27
|
```
|
96
28
|
|
97
|
-
|
98
|
-
|
29
|
+
### Run Intelligent Multi-Agent Development
|
99
30
|
```bash
|
100
|
-
#
|
101
|
-
|
102
|
-
```
|
31
|
+
# Orchestrate a complete feature with specialized agents
|
32
|
+
enhance-swarm orchestrate "Add user authentication with email verification"
|
103
33
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
EnhanceSwarm v1.0 introduces **authentic Claude agent spawning** using your local Claude CLI:
|
109
|
-
|
110
|
-
```bash
|
111
|
-
# Real Claude agents with specialized prompts
|
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
|
34
|
+
# Or use the enhanced ENHANCE protocol
|
35
|
+
enhance-swarm enhance
|
36
|
+
# Then enter: "Build a todo management system with real-time updates"
|
117
37
|
```
|
118
38
|
|
119
|
-
|
39
|
+
## 🎯 How It Works
|
120
40
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
# ✅ Configures optimal agent roles
|
128
|
-
# ✅ Sets up framework-specific commands
|
129
|
-
# ✅ Generates intelligent code standards
|
130
|
-
```
|
41
|
+
### Intelligent Task Delegation
|
42
|
+
1. **Control Agent** analyzes your request and project context
|
43
|
+
2. **Task Decomposition** breaks complex features into specialized subtasks
|
44
|
+
3. **Smart Coordination** assigns tasks to specialist agents with dependencies
|
45
|
+
4. **Quality Assurance** QA agent reviews each implementation
|
46
|
+
5. **Integration** Lead agent merges everything seamlessly
|
131
47
|
|
132
|
-
###
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
## 🎯 Getting Started
|
141
|
-
|
142
|
-
### 1. Initialize Your Project
|
48
|
+
### Agent Specialization
|
49
|
+
| Agent | Role | Responsibilities |
|
50
|
+
|-------|------|------------------|
|
51
|
+
| **Backend** | API & Logic Developer | Models, APIs, business logic, database design |
|
52
|
+
| **Frontend** | UI/UX Developer | Components, styling, user experience, interactions |
|
53
|
+
| **QA** | Quality Engineer | Testing, validation, security, edge cases |
|
54
|
+
| **Integration** | Tech Lead | Merging, refining, final polish, deployment prep |
|
143
55
|
|
56
|
+
### Smart Coordination Example
|
144
57
|
```bash
|
145
|
-
|
146
|
-
enhance-swarm init
|
58
|
+
enhance-swarm orchestrate "Add contact management to the app"
|
147
59
|
```
|
148
60
|
|
149
|
-
**
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
- `PERSONAS.md` - Agent personality definitions
|
156
|
-
- Git hooks for quality control
|
157
|
-
|
158
|
-
### 2. Configure Your Stack
|
159
|
-
|
160
|
-
Edit `.enhance_swarm.yml`:
|
161
|
-
```yaml
|
162
|
-
project:
|
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
|
-
|
171
|
-
orchestration:
|
172
|
-
max_concurrent_agents: 4
|
173
|
-
monitor_timeout: 120
|
174
|
-
```
|
61
|
+
**Behind the scenes:**
|
62
|
+
1. 🎯 Control agent creates specialized subtasks
|
63
|
+
2. 🔧 Backend agent: Creates Contact model, API endpoints, validations
|
64
|
+
3. 🎨 Frontend agent: Builds contact forms, list views, search functionality
|
65
|
+
4. 🧪 QA agent: Creates comprehensive test suites for all features
|
66
|
+
5. 🔗 Integration agent: Merges everything, resolves conflicts, final polish
|
175
67
|
|
176
|
-
|
68
|
+
## 📋 Command Reference
|
177
69
|
|
70
|
+
### Core Commands
|
178
71
|
```bash
|
179
|
-
#
|
180
|
-
enhance-swarm
|
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
|
-
```
|
72
|
+
# Intelligent multi-agent orchestration (recommended)
|
73
|
+
enhance-swarm orchestrate "your feature description"
|
194
74
|
|
195
|
-
|
75
|
+
# Enhanced protocol with smart coordination
|
76
|
+
enhance-swarm enhance
|
196
77
|
|
197
|
-
|
78
|
+
# Manual single agent (for specific tasks)
|
79
|
+
enhance-swarm spawn --role backend "Create user authentication API"
|
198
80
|
|
199
|
-
|
200
|
-
# Start the visual dashboard
|
81
|
+
# Monitor all agents in real-time
|
201
82
|
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:**
|
220
|
-
|
221
|
-
```
|
222
|
-
🎛️ Control Agent Coordination
|
223
|
-
Phase: Backend Implementation
|
224
|
-
Progress: 45%
|
225
|
-
|
226
|
-
🔄 Active Agents:
|
227
|
-
• backend-auth-20250628-1432
|
228
|
-
|
229
|
-
✅ Completed Agents:
|
230
|
-
• analysis-requirements-20250628-1431
|
231
|
-
|
232
|
-
📝 Status: Backend agent implementing User model with bcrypt authentication
|
233
|
-
|
234
|
-
⏱️ Estimated completion: 20:45:30 (12m remaining)
|
235
|
-
```
|
236
|
-
|
237
|
-
## 📡 Live Agent Streaming
|
238
|
-
|
239
|
-
Watch your agents work in real-time:
|
240
|
-
|
241
|
-
```bash
|
242
|
-
enhance-swarm spawn "implement login API" --role backend --follow
|
243
|
-
```
|
244
|
-
|
245
|
-
**Live output display:**
|
246
|
-
|
247
|
-
```
|
248
|
-
⠋ [█████████░░] 45% Spawning backend agent... [2m15s/4m30s]
|
249
|
-
┌─ 🔧 BACKEND Agent (2m15s) backend-auth-123 ──────────────┐
|
250
|
-
│ ● 🔍 Analyzing existing auth system... │
|
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
|
-
```
|
263
83
|
|
264
|
-
|
265
|
-
|
266
|
-
Track all agent work across your project:
|
267
|
-
|
268
|
-
```bash
|
269
|
-
# Check overall status
|
84
|
+
# Check status and progress
|
270
85
|
enhance-swarm status
|
271
|
-
|
272
|
-
# Get detailed JSON status
|
273
|
-
enhance-swarm status --json
|
274
|
-
|
275
|
-
# Monitor running agents
|
276
|
-
enhance-swarm monitor --interval 30
|
277
|
-
```
|
278
|
-
|
279
|
-
**Status output:**
|
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
86
|
```
|
301
87
|
|
302
|
-
|
303
|
-
|
304
|
-
Stay informed about agent progress with intelligent notifications:
|
305
|
-
|
306
|
-
```bash
|
307
|
-
# Enable notifications with enhance command
|
308
|
-
enhance-swarm enhance "implement auth system" --notifications
|
309
|
-
|
310
|
-
# Manage notification settings
|
311
|
-
enhance-swarm notifications --enable
|
312
|
-
enhance-swarm notifications --test
|
313
|
-
```
|
314
|
-
|
315
|
-
**Notification Features:**
|
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
|
339
|
-
```
|
340
|
-
|
341
|
-
|
342
|
-
## 💬 Quick Agent Communication
|
343
|
-
|
344
|
-
Seamless communication between you and running agents:
|
345
|
-
|
88
|
+
### Project Management
|
346
89
|
```bash
|
347
|
-
#
|
348
|
-
enhance-swarm
|
349
|
-
|
350
|
-
# Demo communication features
|
351
|
-
enhance-swarm communicate --demo
|
352
|
-
|
353
|
-
# Show communication status with details
|
354
|
-
enhance-swarm communicate --status
|
355
|
-
```
|
356
|
-
|
357
|
-
**Communication Features:**
|
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:**
|
367
|
-
|
368
|
-
```bash
|
369
|
-
💬 Agent Communication Status:
|
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...
|
378
|
-
```
|
379
|
-
|
380
|
-
## 🖥️ Visual Agent Dashboard
|
381
|
-
|
382
|
-
Real-time monitoring with an interactive visual dashboard:
|
383
|
-
|
384
|
-
```bash
|
385
|
-
# Start dashboard for all running agents
|
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
|
439
|
-
```
|
440
|
-
|
441
|
-
## 🧠 Smart Defaults & Auto-Actions
|
442
|
-
|
443
|
-
Intelligent project analysis and automation:
|
444
|
-
|
445
|
-
```bash
|
446
|
-
# Get smart suggestions for next actions
|
447
|
-
enhance-swarm suggest
|
448
|
-
|
449
|
-
# Show context-aware suggestions
|
450
|
-
enhance-swarm suggest --context "need to improve performance"
|
451
|
-
```
|
452
|
-
|
453
|
-
**Smart Features:**
|
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:**
|
463
|
-
|
464
|
-
```bash
|
465
|
-
🧠 Analyzing project and generating smart suggestions...
|
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
|
90
|
+
# Initialize smart defaults for your project
|
91
|
+
enhance-swarm init
|
605
92
|
|
606
|
-
#
|
93
|
+
# Check system and project configuration
|
607
94
|
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
95
|
|
621
|
-
|
622
|
-
|
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
|
96
|
+
# Validate system setup
|
97
|
+
enhance-swarm doctor
|
650
98
|
|
99
|
+
# Clean up completed work
|
100
|
+
enhance-swarm cleanup
|
101
|
+
```
|
102
|
+
|
103
|
+
## 🎭 Agent Roles & Specializations
|
104
|
+
|
105
|
+
### Backend Agent
|
106
|
+
**Focus**: Server-side logic, APIs, database design
|
107
|
+
- Implements secure business logic and data models
|
108
|
+
- Creates efficient API endpoints with proper validation
|
109
|
+
- Designs database schemas and migrations
|
110
|
+
- Follows framework best practices (Rails, Django, etc.)
|
111
|
+
- Ensures proper error handling and security
|
112
|
+
|
113
|
+
### Frontend Agent
|
114
|
+
**Focus**: User interfaces, styling, user experience
|
115
|
+
- Creates intuitive and responsive interfaces
|
116
|
+
- Maintains consistent design patterns and components
|
117
|
+
- Implements modern CSS and JavaScript best practices
|
118
|
+
- Ensures accessibility and cross-browser compatibility
|
119
|
+
- Integrates seamlessly with backend APIs
|
120
|
+
|
121
|
+
### QA Agent
|
122
|
+
**Focus**: Testing, validation, quality assurance
|
123
|
+
- Creates comprehensive test suites (unit, integration, system)
|
124
|
+
- Validates functionality against requirements
|
125
|
+
- Checks for security vulnerabilities and edge cases
|
126
|
+
- Provides actionable feedback for improvements
|
127
|
+
- Ensures code quality and maintainability
|
128
|
+
|
129
|
+
### Integration Agent
|
130
|
+
**Focus**: Merging, coordination, final polish
|
131
|
+
- Intelligently merges work from all specialist agents
|
132
|
+
- Resolves conflicts and ensures system cohesion
|
133
|
+
- Performs final refactoring and optimization
|
134
|
+
- Validates complete feature functionality
|
135
|
+
- Prepares implementation for deployment
|
136
|
+
|
137
|
+
## 🏗️ Project Type Support
|
138
|
+
|
139
|
+
EnhanceSwarm automatically detects your project type and provides specialized coordination:
|
140
|
+
|
141
|
+
- **Rails**: Service objects, strong validations, Rails conventions
|
142
|
+
- **React/Next.js**: Component architecture, hooks, modern patterns
|
143
|
+
- **Django**: MVT patterns, Django REST framework, security
|
144
|
+
- **Vue**: Composition API, Vuex/Pinia, component design
|
145
|
+
- **And more**: Intelligent defaults for any framework
|
146
|
+
|
147
|
+
## 🔧 Configuration
|
148
|
+
|
149
|
+
### Smart Defaults
|
150
|
+
EnhanceSwarm automatically configures itself based on your project:
|
651
151
|
```yaml
|
652
|
-
# .enhance_swarm.yml
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
security_specialist:
|
659
|
-
focus: "Security audits, vulnerability scanning"
|
660
|
-
trigger_keywords: ["security", "auth", "permission", "encrypt"]
|
661
|
-
```
|
662
|
-
|
663
|
-
### Environment Variables
|
664
|
-
|
665
|
-
```bash
|
666
|
-
# Logging
|
667
|
-
export ENHANCE_SWARM_LOG_LEVEL=debug
|
668
|
-
export ENHANCE_SWARM_JSON_LOGS=true
|
152
|
+
# .enhance_swarm.yml (auto-generated)
|
153
|
+
orchestration:
|
154
|
+
max_concurrent_agents: 4
|
155
|
+
coordination_enabled: true
|
156
|
+
smart_handoffs: true
|
669
157
|
|
670
|
-
|
671
|
-
|
158
|
+
agents:
|
159
|
+
backend:
|
160
|
+
specialization: "APIs, models, business logic"
|
161
|
+
best_practices: ["Rails conventions", "Service objects", "Strong validations"]
|
162
|
+
frontend:
|
163
|
+
specialization: "UI/UX, components, styling"
|
164
|
+
best_practices: ["Responsive design", "Component reuse", "Accessibility"]
|
672
165
|
```
|
673
166
|
|
674
|
-
###
|
675
|
-
|
167
|
+
### Resource Management
|
676
168
|
```yaml
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
169
|
+
resources:
|
170
|
+
max_memory_mb: 2048
|
171
|
+
max_disk_mb: 1024
|
172
|
+
max_concurrent_agents: 10
|
681
173
|
```
|
682
174
|
|
683
|
-
## 🛡️
|
175
|
+
## 🛡️ Production Features
|
684
176
|
|
685
|
-
###
|
177
|
+
### Security
|
178
|
+
- Command injection protection with comprehensive input sanitization
|
179
|
+
- Role-based agent validation and secure execution environments
|
180
|
+
- Automatic vulnerability scanning and security best practices
|
686
181
|
|
687
|
-
|
688
|
-
-
|
689
|
-
-
|
690
|
-
-
|
691
|
-
- **Secure Defaults**: Principle of least privilege, secure by default
|
182
|
+
### Resource Management
|
183
|
+
- Intelligent resource limits with automatic cleanup
|
184
|
+
- Memory, disk, and CPU monitoring per agent
|
185
|
+
- Graceful degradation when limits are reached
|
692
186
|
|
693
187
|
### Quality Assurance
|
188
|
+
- 100% test coverage for core functionality
|
189
|
+
- Comprehensive security testing framework
|
190
|
+
- Production validation and deployment readiness
|
694
191
|
|
695
|
-
|
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
|
709
|
-
```
|
710
|
-
|
711
|
-
### Smart Cleanup
|
192
|
+
## 🎯 Real-World Examples
|
712
193
|
|
194
|
+
### Add Authentication System
|
713
195
|
```bash
|
714
|
-
|
715
|
-
# - Stale git worktrees
|
716
|
-
# - Abandoned agent processes
|
717
|
-
# - Temporary communication files
|
718
|
-
# - Failed operation artifacts
|
719
|
-
enhance-swarm cleanup --all
|
196
|
+
enhance-swarm orchestrate "Add user authentication with JWT tokens and email verification"
|
720
197
|
```
|
198
|
+
**Result**: Complete auth system with backend APIs, frontend forms, email templates, and comprehensive tests.
|
721
199
|
|
722
|
-
###
|
723
|
-
|
200
|
+
### Build Todo Management
|
724
201
|
```bash
|
725
|
-
|
726
|
-
enhance-swarm doctor --detailed --json
|
727
|
-
# → Validates git, claude-swarm, ruby, dependencies with version checks
|
202
|
+
enhance-swarm orchestrate "Create todo management with categories, due dates, and real-time updates"
|
728
203
|
```
|
204
|
+
**Result**: Full-stack todo system with database models, REST APIs, interactive UI, and real-time features.
|
729
205
|
|
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
|
740
|
-
|
206
|
+
### E-commerce Integration
|
741
207
|
```bash
|
742
|
-
|
743
|
-
⠋ [█████████░░] 45% Spawning agents... [1,250/3,000 tokens (42%)]
|
208
|
+
enhance-swarm orchestrate "Add shopping cart and checkout flow with Stripe integration"
|
744
209
|
```
|
210
|
+
**Result**: Complete e-commerce functionality with payment processing, order management, and secure checkout.
|
745
211
|
|
746
|
-
##
|
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
|
755
|
-
|
756
|
-
### Common Issues
|
212
|
+
## 📊 Monitoring & Debugging
|
757
213
|
|
214
|
+
### Real-time Dashboard
|
758
215
|
```bash
|
759
|
-
|
760
|
-
enhance-swarm doctor
|
761
|
-
# → Validates git, Ruby, and optional tools
|
762
|
-
|
763
|
-
# Agent coordination issues
|
764
|
-
enhance-swarm status
|
765
|
-
# → Shows agent sessions and process status
|
766
|
-
|
767
|
-
# Interactive troubleshooting
|
768
|
-
enhance-swarm troubleshoot
|
769
|
-
# → Guided problem diagnosis and system health checks
|
216
|
+
enhance-swarm dashboard
|
770
217
|
```
|
218
|
+
- Live agent status and progress
|
219
|
+
- Resource usage monitoring
|
220
|
+
- Task coordination visualization
|
221
|
+
- Interactive controls and logs
|
771
222
|
|
772
|
-
###
|
773
|
-
|
223
|
+
### Status Tracking
|
774
224
|
```bash
|
775
|
-
|
776
|
-
ENHANCE_SWARM_LOG_LEVEL=debug enhance-swarm enhance "test task"
|
777
|
-
|
778
|
-
# JSON logs for parsing
|
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"
|
809
|
-
```
|
810
|
-
|
811
|
-
### Python Projects
|
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 ."
|
225
|
+
enhance-swarm status
|
823
226
|
```
|
227
|
+
- Active agents and their specializations
|
228
|
+
- Task dependencies and completion status
|
229
|
+
- Git worktree isolation and branch tracking
|
230
|
+
- Session management and progress metrics
|
824
231
|
|
825
|
-
##
|
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
|
232
|
+
## 🚦 Troubleshooting
|
843
233
|
|
844
|
-
|
845
|
-
-
|
846
|
-
-
|
847
|
-
-
|
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
|
234
|
+
### Common Issues
|
235
|
+
- **No Claude CLI**: Install from [Claude Code](https://claude.ai/code)
|
236
|
+
- **Permission Errors**: Ensure git repository is initialized
|
237
|
+
- **Resource Limits**: Adjust limits in `.enhance_swarm.yml`
|
238
|
+
- **Agent Conflicts**: Use `enhance-swarm cleanup` to reset state
|
856
239
|
|
240
|
+
### Debug Mode
|
857
241
|
```bash
|
858
|
-
|
859
|
-
enhance-swarm enhance "implement user profiles" --follow
|
860
|
-
# → Watch agents coordinate in real-time
|
861
|
-
|
862
|
-
# Monitor periodically
|
863
|
-
enhance-swarm status
|
864
|
-
# → Check overall progress
|
865
|
-
|
866
|
-
# Use visual dashboard
|
867
|
-
enhance-swarm dashboard
|
868
|
-
# → Real-time visual monitoring
|
869
|
-
|
870
|
-
# Get smart suggestions
|
871
|
-
enhance-swarm suggest
|
872
|
-
# → Context-aware next actions
|
242
|
+
ENHANCE_SWARM_DEBUG=true enhance-swarm orchestrate "your task"
|
873
243
|
```
|
874
244
|
|
875
|
-
##
|
876
|
-
|
877
|
-
EnhanceSwarm represents the future of AI-assisted development:
|
245
|
+
## 🤝 Contributing
|
878
246
|
|
879
|
-
|
880
|
-
- **Intelligent Coordination**: Control Agent makes smart decisions
|
881
|
-
- **Real-time Visibility**: Never wonder what your agents are doing
|
882
|
-
- **Production Ready**: Security, reliability, and error recovery built-in
|
247
|
+
EnhanceSwarm is designed for production use and community contributions:
|
883
248
|
|
884
|
-
**
|
249
|
+
1. **Report Issues**: [GitHub Issues](https://github.com/todddickerson/enhance_swarm/issues)
|
250
|
+
2. **Request Features**: Orchestration improvements, new agent types, project support
|
251
|
+
3. **Submit PRs**: Agent specializations, coordination algorithms, integrations
|
885
252
|
|
886
|
-
|
887
|
-
# Get started in 30 seconds
|
888
|
-
echo 'gem "enhance_swarm", git: "https://github.com/todddickerson/enhance_swarm.git"' >> Gemfile
|
889
|
-
bundle install
|
890
|
-
bundle exec enhance-swarm init
|
891
|
-
```
|
253
|
+
## 📈 Roadmap
|
892
254
|
|
893
|
-
|
255
|
+
- **v1.1**: Advanced agent communication protocols
|
256
|
+
- **v1.2**: Visual workflow designer and task dependencies
|
257
|
+
- **v1.3**: Custom agent types and specialization training
|
258
|
+
- **v1.4**: Multi-project coordination and team templates
|
894
259
|
|
895
260
|
## 📄 License
|
896
261
|
|
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.
|
262
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
902
263
|
|
903
264
|
---
|
904
265
|
|
905
|
-
**Transform your development
|
266
|
+
**EnhanceSwarm v1.0** - Transform Claude into your intelligent development team. Built for production, optimized for collaboration, designed for the future of AI-powered development.
|
267
|
+
|
268
|
+
🚀 **Ready to revolutionize your development workflow?** `gem install enhance_swarm`
|