claude-flow 1.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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +612 -0
  3. package/bin/claude-flow +0 -0
  4. package/bin/claude-flow-simple +0 -0
  5. package/bin/claude-flow-typecheck +0 -0
  6. package/deno.json +84 -0
  7. package/package.json +45 -0
  8. package/scripts/check-links.ts +274 -0
  9. package/scripts/check-performance-regression.ts +168 -0
  10. package/scripts/claude-sparc.sh +562 -0
  11. package/scripts/coverage-report.ts +692 -0
  12. package/scripts/demo-task-system.ts +224 -0
  13. package/scripts/install.js +72 -0
  14. package/scripts/test-batch-tasks.ts +29 -0
  15. package/scripts/test-coordination-features.ts +238 -0
  16. package/scripts/test-mcp.ts +251 -0
  17. package/scripts/test-runner.ts +571 -0
  18. package/scripts/validate-examples.ts +288 -0
  19. package/src/cli/cli-core.ts +273 -0
  20. package/src/cli/commands/agent.ts +83 -0
  21. package/src/cli/commands/config.ts +442 -0
  22. package/src/cli/commands/help.ts +765 -0
  23. package/src/cli/commands/index.ts +963 -0
  24. package/src/cli/commands/mcp.ts +191 -0
  25. package/src/cli/commands/memory.ts +74 -0
  26. package/src/cli/commands/monitor.ts +403 -0
  27. package/src/cli/commands/session.ts +595 -0
  28. package/src/cli/commands/start.ts +156 -0
  29. package/src/cli/commands/status.ts +345 -0
  30. package/src/cli/commands/task.ts +79 -0
  31. package/src/cli/commands/workflow.ts +763 -0
  32. package/src/cli/completion.ts +553 -0
  33. package/src/cli/formatter.ts +310 -0
  34. package/src/cli/index.ts +211 -0
  35. package/src/cli/main.ts +23 -0
  36. package/src/cli/repl.ts +1050 -0
  37. package/src/cli/simple-cli.js +211 -0
  38. package/src/cli/simple-cli.ts +211 -0
  39. package/src/coordination/README.md +400 -0
  40. package/src/coordination/advanced-scheduler.ts +487 -0
  41. package/src/coordination/circuit-breaker.ts +366 -0
  42. package/src/coordination/conflict-resolution.ts +490 -0
  43. package/src/coordination/dependency-graph.ts +475 -0
  44. package/src/coordination/index.ts +63 -0
  45. package/src/coordination/manager.ts +460 -0
  46. package/src/coordination/messaging.ts +290 -0
  47. package/src/coordination/metrics.ts +585 -0
  48. package/src/coordination/resources.ts +322 -0
  49. package/src/coordination/scheduler.ts +390 -0
  50. package/src/coordination/work-stealing.ts +224 -0
  51. package/src/core/config.ts +627 -0
  52. package/src/core/event-bus.ts +186 -0
  53. package/src/core/json-persistence.ts +183 -0
  54. package/src/core/logger.ts +262 -0
  55. package/src/core/orchestrator-fixed.ts +312 -0
  56. package/src/core/orchestrator.ts +1234 -0
  57. package/src/core/persistence.ts +276 -0
  58. package/src/mcp/auth.ts +438 -0
  59. package/src/mcp/claude-flow-tools.ts +1280 -0
  60. package/src/mcp/load-balancer.ts +510 -0
  61. package/src/mcp/router.ts +240 -0
  62. package/src/mcp/server.ts +548 -0
  63. package/src/mcp/session-manager.ts +418 -0
  64. package/src/mcp/tools.ts +180 -0
  65. package/src/mcp/transports/base.ts +21 -0
  66. package/src/mcp/transports/http.ts +457 -0
  67. package/src/mcp/transports/stdio.ts +254 -0
  68. package/src/memory/backends/base.ts +22 -0
  69. package/src/memory/backends/markdown.ts +283 -0
  70. package/src/memory/backends/sqlite.ts +329 -0
  71. package/src/memory/cache.ts +238 -0
  72. package/src/memory/indexer.ts +238 -0
  73. package/src/memory/manager.ts +572 -0
  74. package/src/terminal/adapters/base.ts +29 -0
  75. package/src/terminal/adapters/native.ts +504 -0
  76. package/src/terminal/adapters/vscode.ts +340 -0
  77. package/src/terminal/manager.ts +308 -0
  78. package/src/terminal/pool.ts +271 -0
  79. package/src/terminal/session.ts +250 -0
  80. package/src/terminal/vscode-bridge.ts +242 -0
  81. package/src/utils/errors.ts +231 -0
  82. package/src/utils/helpers.ts +476 -0
  83. package/src/utils/types.ts +493 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 rUv
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,612 @@
1
+ # 🚀 Claude-Flow: Multi-Terminal Claude-Code Agent Orchestration Platform
2
+
3
+ <div align="center">
4
+
5
+ [![🌟 Star on GitHub](https://img.shields.io/github/stars/ruvnet/claude-code-flow?style=for-the-badge&logo=github&color=gold)](https://github.com/ruvnet/claude-code-flow)
6
+ [![📦 NPX Ready](https://img.shields.io/npm/v/claude-flow?style=for-the-badge&logo=npm&color=blue&label=NPX%20INSTALL)](https://www.npmjs.com/package/claude-flow)
7
+ [![✅ 95% Test Coverage](https://img.shields.io/badge/coverage-95%25-brightgreen?style=for-the-badge&logo=codecov)](./test-results/coverage-html/index.html)
8
+ [![🦕 Deno Powered](https://img.shields.io/badge/deno-v1.40+-blue?style=for-the-badge&logo=deno)](https://deno.land/)
9
+ [![⚡ TypeScript](https://img.shields.io/badge/TypeScript-Strict-blue?style=for-the-badge&logo=typescript)](https://www.typescriptlang.org/)
10
+ [![📖 Documentation](https://img.shields.io/badge/docs-comprehensive-green?style=for-the-badge&logo=gitbook)](./docs/)
11
+ [![🛡️ MIT License](https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge&logo=opensourceinitiative)](https://opensource.org/licenses/MIT)
12
+
13
+ </div>
14
+
15
+ <div align="center">
16
+ <img src="https://github.com/ruvnet/claude-code-flow/raw/main/assets/claude-flow-banner.png" alt="Claude-Flow Banner" width="800" />
17
+ </div>
18
+
19
+ ## 🎯 **Transform Your Development Workflow**
20
+
21
+ **Claude-Flow** is the ultimate multi-terminal orchestration platform that revolutionizes how you work with Claude Code. Imagine coordinating **dozens of AI agents** simultaneously, each working on different aspects of your project while sharing knowledge through an intelligent memory bank.
22
+
23
+ > 🔥 **One command to rule them all**: `npx claude-flow` - Deploy a full AI agent coordination system in seconds!
24
+
25
+ ### 🌟 **Why Claude-Flow?**
26
+
27
+ - **🚀 10x Faster Development**: Parallel AI agent execution with intelligent task distribution
28
+ - **🧠 Persistent Memory**: Agents learn and share knowledge across sessions
29
+ - **🔄 Zero Configuration**: Works out-of-the-box with sensible defaults
30
+ - **⚡ VSCode Native**: Seamless integration with your favorite IDE
31
+ - **🔒 Enterprise Ready**: Production-grade security, monitoring, and scaling
32
+ - **🌐 MCP Compatible**: Full Model Context Protocol support for tool integration
33
+
34
+ ## 🎬 **See It In Action**
35
+
36
+ <div align="center">
37
+
38
+ [![Demo Video](https://img.shields.io/badge/🎥%20Watch%20Demo-Claude--Flow%20in%20Action-red?style=for-the-badge)](https://youtu.be/demo-video)
39
+ [![Live Demo](https://img.shields.io/badge/🌐%20Try%20Live%20Demo-Interactive%20Playground-blue?style=for-the-badge)](https://demo.claude-flow.dev)
40
+
41
+ </div>
42
+
43
+ ```bash
44
+ # 🚀 Get started in 30 seconds
45
+ npx claude-flow init
46
+ npx claude-flow start
47
+
48
+ # 🤖 Spawn a research team
49
+ claude-flow agent spawn researcher --name "Senior Researcher"
50
+ claude-flow agent spawn analyst --name "Data Analyst"
51
+ claude-flow agent spawn implementer --name "Code Developer"
52
+
53
+ # 📋 Create and execute tasks
54
+ claude-flow task create research "Research AI optimization techniques"
55
+ claude-flow task list
56
+
57
+ # 📊 Monitor in real-time
58
+ claude-flow status
59
+ claude-flow monitor
60
+ ```
61
+
62
+ ## 🏗️ **Core Features**
63
+
64
+ <table>
65
+ <tr>
66
+ <td width="33%" align="center">
67
+
68
+ ### 🤖 **Multi-Agent Orchestration**
69
+ Coordinate dozens of AI agents with different specializations, each running in isolated terminal sessions with intelligent load balancing.
70
+
71
+ </td>
72
+ <td width="33%" align="center">
73
+
74
+ ### 🧠 **Intelligent Memory Bank**
75
+ Advanced CRDT-based memory system with SQLite performance and Markdown readability. Agents learn and share knowledge across sessions.
76
+
77
+ </td>
78
+ <td width="33%" align="center">
79
+
80
+ ### ⚡ **Terminal Virtualization**
81
+ Native VSCode integration with terminal pooling, session recycling, and cross-platform shell support (Bash, Zsh, PowerShell, CMD).
82
+
83
+ </td>
84
+ </tr>
85
+ <tr>
86
+ <td width="33%" align="center">
87
+
88
+ ### 🎯 **Smart Task Scheduling**
89
+ Priority-based task queues with dependency resolution, deadlock detection, and automatic retry with exponential backoff.
90
+
91
+ </td>
92
+ <td width="33%" align="center">
93
+
94
+ ### 🔒 **Enterprise Security**
95
+ Token-based authentication, rate limiting, circuit breakers, audit logging, and role-based access control.
96
+
97
+ </td>
98
+ <td width="33%" align="center">
99
+
100
+ ### 🌐 **MCP Integration**
101
+ Full Model Context Protocol support with stdio and HTTP transports, enabling seamless integration with external tools.
102
+
103
+ </td>
104
+ </tr>
105
+ </table>
106
+
107
+ ## ⚡ **Quick Start**
108
+
109
+ ### 🎯 **Option 1: NPX (Recommended)**
110
+ ```bash
111
+ # Install and run in one command
112
+ npx claude-flow
113
+
114
+ # Or install globally for repeated use
115
+ npm install -g claude-flow
116
+ claude-flow --version
117
+ ```
118
+
119
+ ### 🦕 **Option 2: Deno (For Developers)**
120
+ ```bash
121
+ # Install via Deno
122
+ deno install --allow-all --name claude-flow \
123
+ https://raw.githubusercontent.com/ruvnet/claude-code-flow/main/src/cli/index.ts
124
+
125
+ # Or run directly
126
+ deno run --allow-all \
127
+ https://raw.githubusercontent.com/ruvnet/claude-code-flow/main/src/cli/index.ts
128
+ ```
129
+
130
+ ### 🔧 **Option 3: From Source (For Contributors)**
131
+ ```bash
132
+ git clone https://github.com/ruvnet/claude-code-flow.git
133
+ cd claude-code-flow
134
+ deno task build && deno task install
135
+ ```
136
+
137
+ ## 📚 **Documentation**
138
+
139
+ Comprehensive documentation is available to help you get the most out of Claude-Flow:
140
+
141
+ - **[Getting Started Guide](./docs/01-getting-started.md)** - Quick setup and first steps
142
+ - **[Architecture Overview](./docs/02-architecture-overview.md)** - System design and components
143
+ - **[Configuration Guide](./docs/03-configuration-guide.md)** - Detailed configuration options
144
+ - **[Agent Management](./docs/04-agent-management.md)** - Working with AI agents
145
+ - **[Task Coordination](./docs/05-task-coordination.md)** - Task scheduling and workflows
146
+ - **[Memory Bank Usage](./docs/06-memory-bank-usage.md)** - Persistent memory system
147
+ - **[MCP Integration](./docs/07-mcp-integration.md)** - Model Context Protocol tools
148
+ - **[Terminal Management](./docs/08-terminal-management.md)** - Terminal pooling and sessions
149
+ - **[Troubleshooting](./docs/09-troubleshooting.md)** - Common issues and solutions
150
+ - **[Advanced Usage](./docs/10-advanced-usage.md)** - Power user features
151
+ - **[CLI Reference](./docs/cli-reference.md)** - Complete command documentation
152
+
153
+ ## 💡 **Quick Start Guide**
154
+
155
+ ### 1. **Initialize Claude Code Integration**
156
+ ```bash
157
+ npx claude-flow init
158
+ ```
159
+ This creates:
160
+ - `CLAUDE.md` - Claude Code configuration
161
+ - `memory-bank.md` - Memory system documentation
162
+ - `coordination.md` - Agent coordination documentation
163
+ - Memory folder structure with placeholders
164
+
165
+ ### 2. **Start the Orchestrator**
166
+ ```bash
167
+ npx claude-flow start
168
+ # Or run as daemon
169
+ npx claude-flow start --daemon
170
+ ```
171
+
172
+ ### 3. **Spawn Agents**
173
+ ```bash
174
+ # Spawn different agent types
175
+ npx claude-flow agent spawn researcher --name "Research Assistant"
176
+ npx claude-flow agent spawn implementer --name "Code Developer"
177
+ npx claude-flow agent spawn coordinator --name "Project Manager"
178
+ ```
179
+
180
+ ### 4. **Create and Execute Tasks**
181
+ ```bash
182
+ # Create tasks with priorities
183
+ npx claude-flow task create research "Analyze market trends" --priority 8
184
+ npx claude-flow task create code "Implement authentication" --priority 9
185
+
186
+ # List active tasks
187
+ npx claude-flow task list --verbose
188
+ ```
189
+
190
+ ### 5. **Monitor System Status**
191
+ ```bash
192
+ # Check system health
193
+ npx claude-flow status
194
+
195
+ # Real-time monitoring
196
+ npx claude-flow monitor
197
+
198
+ # View MCP tools
199
+ npx claude-flow mcp tools
200
+ ```
201
+
202
+ ## Architecture
203
+
204
+ Claude-Flow uses a modular architecture with the following components:
205
+
206
+ - **Orchestrator**: Central coordinator managing all system components
207
+ - **Terminal Manager**: Handles terminal sessions with pooling and recycling
208
+ - **Memory Manager**: Persistent storage with caching and indexing
209
+ - **Coordination Manager**: Task scheduling and resource management
210
+ - **MCP Server**: Tool integration via Model Context Protocol
211
+
212
+ ## Configuration
213
+
214
+ Default configuration file (`claude-flow.config.json`):
215
+
216
+ ```json
217
+ {
218
+ "orchestrator": {
219
+ "maxConcurrentAgents": 10,
220
+ "taskQueueSize": 100,
221
+ "healthCheckInterval": 30000,
222
+ "shutdownTimeout": 30000
223
+ },
224
+ "terminal": {
225
+ "type": "auto",
226
+ "poolSize": 5,
227
+ "recycleAfter": 10,
228
+ "healthCheckInterval": 60000,
229
+ "commandTimeout": 300000
230
+ },
231
+ "memory": {
232
+ "backend": "hybrid",
233
+ "cacheSizeMB": 100,
234
+ "syncInterval": 5000,
235
+ "conflictResolution": "crdt",
236
+ "retentionDays": 30
237
+ },
238
+ "coordination": {
239
+ "maxRetries": 3,
240
+ "retryDelay": 1000,
241
+ "deadlockDetection": true,
242
+ "resourceTimeout": 60000,
243
+ "messageTimeout": 30000
244
+ },
245
+ "mcp": {
246
+ "transport": "stdio",
247
+ "port": 3000,
248
+ "tlsEnabled": false
249
+ },
250
+ "logging": {
251
+ "level": "info",
252
+ "format": "json",
253
+ "destination": "console"
254
+ }
255
+ }
256
+ ```
257
+
258
+ ## Agent Types
259
+
260
+ Claude-Flow supports multiple agent types:
261
+
262
+ - **Coordinator**: Plans and delegates tasks to other agents
263
+ - **Researcher**: Gathers and analyzes information
264
+ - **Implementer**: Writes code and creates solutions
265
+ - **Analyst**: Identifies patterns and generates insights
266
+ - **Custom**: User-defined agent types
267
+
268
+ ## 🛠️ **CLI Commands**
269
+
270
+ Claude-Flow provides a comprehensive CLI for managing your AI orchestration system. For detailed command documentation, see the [CLI Reference](./docs/cli-reference.md).
271
+
272
+ ### 🌐 **Global Options**
273
+ - `-c, --config <path>`: Path to configuration file
274
+ - `-v, --verbose`: Enable verbose logging
275
+ - `--log-level <level>`: Set log level (debug, info, warn, error)
276
+ - `--version`: Show version information
277
+ - `--help`: Show help for any command
278
+
279
+ ### 📋 **Core Commands**
280
+
281
+ #### `init` - Initialize Claude Code Integration
282
+ ```bash
283
+ npx claude-flow init [options]
284
+ -f, --force Overwrite existing files
285
+ -m, --minimal Create minimal configuration files
286
+ ```
287
+ Creates CLAUDE.md, memory-bank.md, coordination.md, and folder structure.
288
+
289
+ #### `start` - Start Orchestration System
290
+ ```bash
291
+ npx claude-flow start [options]
292
+ -d, --daemon Run as daemon in background
293
+ -p, --port <port> MCP server port (default: 3000)
294
+ ```
295
+
296
+ #### `status` - Show System Status
297
+ ```bash
298
+ npx claude-flow status [options]
299
+ -v, --verbose Show detailed status information
300
+ ```
301
+
302
+ #### `agent` - Manage AI Agents
303
+ ```bash
304
+ npx claude-flow agent <subcommand>
305
+ spawn <type> Spawn a new agent (researcher/implementer/analyst/coordinator)
306
+ --name <name> Agent name
307
+ --priority <1-10> Agent priority
308
+ --max-tasks <n> Max concurrent tasks
309
+ list List all active agents
310
+ info <agent-id> Get detailed agent information
311
+ terminate <agent-id> Terminate an agent
312
+ ```
313
+
314
+ #### `task` - Manage Tasks
315
+ ```bash
316
+ npx claude-flow task <subcommand>
317
+ create <type> <desc> Create a new task
318
+ --priority <1-10> Task priority
319
+ --deps <task-ids> Comma-separated dependency IDs
320
+ list List all tasks
321
+ --verbose Show task descriptions
322
+ status <task-id> Get task status
323
+ cancel <task-id> Cancel a task
324
+ workflow <file> Execute workflow from file
325
+ --async Run workflow asynchronously
326
+ ```
327
+
328
+ #### `memory` - Manage Memory Bank
329
+ ```bash
330
+ npx claude-flow memory <subcommand>
331
+ query <search> Search memory entries
332
+ --namespace <ns> Filter by namespace
333
+ --limit <n> Limit results
334
+ store <key> <value> Store information
335
+ --namespace <ns> Target namespace
336
+ export <file> Export memory to file
337
+ import <file> Import memory from file
338
+ stats Show memory statistics
339
+ cleanup Clean up old entries
340
+ --days <n> Entries older than n days
341
+ ```
342
+
343
+ #### `mcp` - MCP Server Management
344
+ ```bash
345
+ npx claude-flow mcp <subcommand>
346
+ status Show MCP server status
347
+ tools List available MCP tools
348
+ config Show MCP configuration
349
+ logs View MCP server logs
350
+ --lines <n> Number of log lines (default: 50)
351
+ ```
352
+
353
+ #### `monitor` - Real-time Monitoring
354
+ ```bash
355
+ npx claude-flow monitor [options]
356
+ --interval <ms> Update interval (default: 5000)
357
+ --metrics Show performance metrics
358
+ ```
359
+
360
+ #### `config` - Configuration Management
361
+ ```bash
362
+ npx claude-flow config <subcommand>
363
+ show Show current configuration
364
+ get <path> Get specific config value
365
+ set <path> <value> Set config value
366
+ init [file] Initialize config file
367
+ validate <file> Validate config file
368
+ ```
369
+
370
+ #### `session` - Session Management
371
+ ```bash
372
+ npx claude-flow session <subcommand>
373
+ list List active sessions
374
+ info <session-id> Get session information
375
+ terminate <session-id> End a session
376
+ ```
377
+
378
+ #### `workflow` - Workflow Execution
379
+ ```bash
380
+ npx claude-flow workflow <file> [options]
381
+ --validate Validate workflow without executing
382
+ --async Run workflow asynchronously
383
+ --watch Watch workflow progress
384
+ ```
385
+
386
+ #### `help` - Get Help
387
+ ```bash
388
+ npx claude-flow help [command]
389
+ ```
390
+
391
+ ### 🎯 **Common Use Cases**
392
+
393
+ **Research Project Setup:**
394
+ ```bash
395
+ npx claude-flow init
396
+ npx claude-flow start --daemon
397
+ npx claude-flow agent spawn researcher --name "Senior Researcher" --priority 8
398
+ npx claude-flow agent spawn analyst --name "Data Analyst" --priority 7
399
+ npx claude-flow task create research "Analyze competitor landscape" --priority 9
400
+ npx claude-flow monitor
401
+ ```
402
+
403
+ **Code Development Workflow:**
404
+ ```bash
405
+ npx claude-flow agent spawn implementer --name "Backend Dev" --max-tasks 3
406
+ npx claude-flow agent spawn implementer --name "Frontend Dev" --max-tasks 3
407
+ npx claude-flow agent spawn coordinator --name "Tech Lead"
408
+ npx claude-flow workflow development-pipeline.json --watch
409
+ ```
410
+
411
+ **Memory Operations:**
412
+ ```bash
413
+ npx claude-flow memory store "project-requirements" "Authentication using JWT" --namespace project
414
+ npx claude-flow memory query "authentication" --namespace project
415
+ npx claude-flow memory export project-knowledge.json
416
+ ```
417
+
418
+ ## Workflow Example
419
+
420
+ Create a workflow file (`example-workflow.json`):
421
+
422
+ ```json
423
+ {
424
+ "name": "Research and Analysis Workflow",
425
+ "tasks": [
426
+ {
427
+ "id": "research-1",
428
+ "type": "research",
429
+ "description": "Research quantum computing basics",
430
+ "assignTo": "researcher"
431
+ },
432
+ {
433
+ "id": "analyze-1",
434
+ "type": "analysis",
435
+ "description": "Analyze research findings",
436
+ "dependencies": ["research-1"],
437
+ "assignTo": "analyst"
438
+ },
439
+ {
440
+ "id": "report-1",
441
+ "type": "report",
442
+ "description": "Generate summary report",
443
+ "dependencies": ["analyze-1"],
444
+ "assignTo": "coordinator"
445
+ }
446
+ ]
447
+ }
448
+ ```
449
+
450
+ Execute the workflow:
451
+ ```bash
452
+ claude-flow task workflow example-workflow.json
453
+ ```
454
+
455
+ ## Development
456
+
457
+ ### Prerequisites
458
+ - Deno 1.38+ or Node.js 16+
459
+ - Git
460
+
461
+ ### Setup
462
+ ```bash
463
+ git clone https://github.com/ruvnet/claude-code-flow.git
464
+ cd claude-flow
465
+ deno task dev
466
+ ```
467
+
468
+ ### Testing
469
+ ```bash
470
+ deno task test
471
+ ```
472
+
473
+ ### Building
474
+ ```bash
475
+ deno task build
476
+ ```
477
+
478
+ ## API Usage
479
+
480
+ Claude-Flow can also be used programmatically:
481
+
482
+ ```typescript
483
+ import { Orchestrator } from 'claude-flow';
484
+
485
+ const orchestrator = new Orchestrator(config);
486
+ await orchestrator.initialize();
487
+
488
+ // Spawn an agent
489
+ const sessionId = await orchestrator.spawnAgent({
490
+ id: 'agent-1',
491
+ name: 'Research Agent',
492
+ type: 'researcher',
493
+ // ... other properties
494
+ });
495
+
496
+ // Create and assign a task
497
+ await orchestrator.assignTask({
498
+ id: 'task-1',
499
+ type: 'research',
500
+ description: 'Research AI trends',
501
+ // ... other properties
502
+ });
503
+ ```
504
+
505
+ ## Contributing
506
+
507
+ Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details.
508
+
509
+ ## License
510
+
511
+ MIT License - see [LICENSE](LICENSE) file for details.
512
+
513
+ ## 🔌 **Integration with Claude Code**
514
+
515
+ Claude-Flow seamlessly integrates with Claude Code through the `CLAUDE.md` file created by `npx claude-flow init`. This enables:
516
+
517
+ - **Automatic Context Loading**: Claude Code reads your project configuration
518
+ - **Build Command Integration**: All build/test commands are available to Claude
519
+ - **Memory Persistence**: Claude remembers context across sessions
520
+ - **SPARC Methodology**: Built-in support for structured AI development
521
+
522
+ Use with Claude Code:
523
+ ```bash
524
+ # Initialize integration
525
+ npx claude-flow init
526
+
527
+ # Use with Claude Code SDK
528
+ claude --dangerously-skip-permissions
529
+
530
+ # Claude will automatically use the configuration from CLAUDE.md
531
+ ```
532
+
533
+ ## 🏢 **Enterprise Features**
534
+
535
+ - **🔐 Security**: Token-based auth, rate limiting, audit logging
536
+ - **📊 Monitoring**: Real-time metrics, performance tracking, health checks
537
+ - **🔄 Reliability**: Circuit breakers, automatic retries, graceful degradation
538
+ - **📈 Scalability**: Horizontal scaling, load balancing, resource pooling
539
+ - **🛡️ Compliance**: Audit trails, data retention policies, access controls
540
+
541
+ ## 📖 **Resources**
542
+
543
+ ### Documentation
544
+ - **[Complete Documentation](./docs/)** - All guides and references
545
+ - **[API Documentation](./docs/api/)** - Programmatic usage
546
+ - **[Examples](./examples/)** - Sample configurations and workflows
547
+ - **[Memory System Docs](./memory/docs/)** - In-depth memory bank documentation
548
+
549
+ ### Community & Support
550
+ - **[GitHub Issues](https://github.com/ruvnet/claude-code-flow/issues)** - Bug reports and feature requests
551
+ - **[GitHub Discussions](https://github.com/ruvnet/claude-code-flow/discussions)** - Community forum
552
+ - **[Discord Server](https://discord.gg/claude-flow)** - Real-time chat and support
553
+ - **[Stack Overflow](https://stackoverflow.com/questions/tagged/claude-flow)** - Q&A
554
+
555
+ ### Tutorials & Guides
556
+ - **[Video Tutorials](https://youtube.com/claude-flow)** - Step-by-step video guides
557
+ - **[Blog Posts](https://claude-flow.dev/blog)** - Tips, tricks, and use cases
558
+ - **[Case Studies](https://claude-flow.dev/case-studies)** - Real-world implementations
559
+
560
+ ## 🚀 **Roadmap**
561
+
562
+ ### Q1 2025
563
+ - [x] Initial release with core orchestration
564
+ - [x] Memory bank implementation
565
+ - [x] MCP integration
566
+ - [x] Claude Code integration (`init` command)
567
+ - [ ] Web UI for visual orchestration
568
+ - [ ] Plugin system for custom agent types
569
+
570
+ ### Q2 2025
571
+ - [ ] Distributed orchestration support
572
+ - [ ] Enhanced monitoring dashboard
573
+ - [ ] Integration with more AI models
574
+ - [ ] Workflow templates library
575
+ - [ ] Cloud deployment options
576
+
577
+ ### Q3 2025
578
+ - [ ] Enterprise SSO integration
579
+ - [ ] Advanced analytics and reporting
580
+ - [ ] Multi-tenant support
581
+ - [ ] GraphQL API
582
+ - [ ] Mobile app for monitoring
583
+
584
+ ## 🤝 **Contributing**
585
+
586
+ We welcome contributions! See our [Contributing Guide](CONTRIBUTING.md) for:
587
+ - Code of Conduct
588
+ - Development setup
589
+ - Submission guidelines
590
+ - Coding standards
591
+ - Testing requirements
592
+
593
+ ## 📄 **License**
594
+
595
+ MIT License - see [LICENSE](LICENSE) file for details.
596
+
597
+ ## 🙏 **Acknowledgments**
598
+
599
+ - Built on top of Claude Code and Anthropic's Claude AI
600
+ - Inspired by the SPARC methodology
601
+ - Thanks to all contributors and the Claude community
602
+
603
+ ## 📊 **Stats**
604
+
605
+ ![GitHub stars](https://img.shields.io/github/stars/ruvnet/claude-code-flow?style=social)
606
+ ![npm downloads](https://img.shields.io/npm/dm/claude-flow)
607
+ ![Contributors](https://img.shields.io/github/contributors/ruvnet/claude-code-flow)
608
+ ![Last commit](https://img.shields.io/github/last-commit/ruvnet/claude-code-flow)
609
+
610
+ ---
611
+
612
+ Built with ❤️ by [rUv](https://github.com/ruvnet) for the Claude community
Binary file
Binary file
Binary file