@claude-flow/cli 3.1.0-alpha.2 → 3.1.0-alpha.21
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.
- package/.claude/helpers/auto-memory-hook.mjs +350 -0
- package/.claude/helpers/hook-handler.cjs +185 -0
- package/.claude/settings.json +86 -141
- package/README.md +603 -353
- package/bin/cli.js +6 -2
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +209 -2
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +190 -4
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +12 -2
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/init/executor.d.ts +8 -2
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +247 -5
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +146 -14
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +10 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +11 -0
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +4 -1
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts +1 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +14 -9
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/services/headless-worker-executor.js +3 -3
- package/dist/src/services/headless-worker-executor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# 🌊
|
|
1
|
+
# 🌊 Ruflo v3: Enterprise AI Orchestration Platform
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
[](https://github.com/ruvnet/claude-flow)
|
|
10
|
-
[](https://www.npmjs.com/package/ruflo)
|
|
11
|
+
[](https://www.npmjs.com/package/ruflo)
|
|
12
12
|
[](https://ruv.io)
|
|
13
13
|
[](https://discord.com/invite/dfxmpwkG2D)
|
|
14
14
|
[](https://github.com/ruvnet/claude-flow)
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
|
|
26
26
|
## Getting into the Flow
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Ruflo is a comprehensive AI agent orchestration framework that transforms Claude Code into a powerful multi-agent development platform. It enables teams to deploy, coordinate, and optimize specialized AI agents working together on complex software engineering tasks.
|
|
29
29
|
|
|
30
30
|
### Self-Learning/Self-Optimizing Agent Architecture
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
User →
|
|
33
|
+
User → Ruflo (CLI/MCP) → Router → Swarm → Agents → Memory → LLM Providers
|
|
34
34
|
↑ ↓
|
|
35
35
|
└──── Learning Loop ←──────┘
|
|
36
36
|
```
|
|
@@ -141,8 +141,8 @@ flowchart TB
|
|
|
141
141
|
# Install RuVector standalone
|
|
142
142
|
npx ruvector
|
|
143
143
|
|
|
144
|
-
# Or use via
|
|
145
|
-
npx
|
|
144
|
+
# Or use via Ruflo
|
|
145
|
+
npx ruflo@v3alpha hooks intelligence --status
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
</details>
|
|
@@ -157,7 +157,7 @@ curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.s
|
|
|
157
157
|
curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.sh | bash -s -- --full
|
|
158
158
|
|
|
159
159
|
# Or via npx
|
|
160
|
-
npx
|
|
160
|
+
npx ruflo@alpha init --wizard
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
---
|
|
@@ -171,7 +171,7 @@ npx claude-flow@alpha init --wizard
|
|
|
171
171
|
|
|
172
172
|
🔌 **Works With Any LLM** - Switch between Claude, GPT, Gemini, Cohere, or local models like Llama. Automatic failover if one provider is unavailable. Smart routing picks the cheapest option that meets quality requirements.
|
|
173
173
|
|
|
174
|
-
⚡ **Plugs Into Claude Code** - Native integration via MCP (Model Context Protocol). Use
|
|
174
|
+
⚡ **Plugs Into Claude Code** - Native integration via MCP (Model Context Protocol). Use ruflo commands directly in your Claude Code sessions with full tool access.
|
|
175
175
|
|
|
176
176
|
🔒 **Production-Ready Security** - Built-in protection against prompt injection, input validation, path traversal prevention, command injection blocking, and safe credential handling.
|
|
177
177
|
|
|
@@ -219,11 +219,14 @@ Agents organize into swarms led by queens that coordinate work, prevent drift, a
|
|
|
219
219
|
<details>
|
|
220
220
|
<summary>🧠 <strong>Intelligence & Memory</strong> — How the system learns and remembers</summary>
|
|
221
221
|
|
|
222
|
-
The system stores successful patterns in vector memory, learns from outcomes via neural networks, and adapts routing based on what works best.
|
|
222
|
+
The system stores successful patterns in vector memory, builds a knowledge graph for structural understanding, learns from outcomes via neural networks, and adapts routing based on what works best.
|
|
223
223
|
|
|
224
224
|
| Layer | Components | What It Does |
|
|
225
225
|
|-------|------------|--------------|
|
|
226
226
|
| Memory | HNSW, AgentDB, Cache | Stores and retrieves patterns 150x faster |
|
|
227
|
+
| Knowledge Graph | MemoryGraph, PageRank, Communities | Identifies influential insights, detects clusters (ADR-049) |
|
|
228
|
+
| Self-Learning | LearningBridge, SONA, ReasoningBank | Triggers learning from insights, confidence lifecycle (ADR-049) |
|
|
229
|
+
| Agent Scopes | AgentMemoryScope, 3-scope dirs | Per-agent isolation + cross-agent knowledge transfer (ADR-049) |
|
|
227
230
|
| Embeddings | ONNX Runtime, MiniLM | Local vectors without API calls (75x faster) |
|
|
228
231
|
| Learning | SONA, MoE, ReasoningBank | Self-improves from results (<0.05ms adaptation) |
|
|
229
232
|
| Fine-tuning | MicroLoRA, EWC++ | Lightweight adaptation without full retraining |
|
|
@@ -346,7 +349,7 @@ const config = optimizer.getOptimalConfig(agentCount);
|
|
|
346
349
|
<details>
|
|
347
350
|
<summary>🛡️ <strong>Anti-Drift Swarm Configuration</strong> — Prevent goal drift in multi-agent work</summary>
|
|
348
351
|
|
|
349
|
-
Complex swarms can drift from their original goals.
|
|
352
|
+
Complex swarms can drift from their original goals. Ruflo V3 includes anti-drift defaults that prevent agents from going off-task.
|
|
350
353
|
|
|
351
354
|
**Recommended Configuration:**
|
|
352
355
|
|
|
@@ -388,18 +391,20 @@ swarm_init({
|
|
|
388
391
|
|
|
389
392
|
</details>
|
|
390
393
|
|
|
391
|
-
### Claude Code: With vs Without
|
|
394
|
+
### Claude Code: With vs Without Ruflo
|
|
392
395
|
|
|
393
|
-
| Capability | Claude Code Alone | Claude Code +
|
|
396
|
+
| Capability | Claude Code Alone | Claude Code + Ruflo |
|
|
394
397
|
|------------|-------------------|---------------------------|
|
|
395
398
|
| **Agent Collaboration** | Agents work in isolation, no shared context | Agents collaborate via swarms with shared memory and consensus |
|
|
396
399
|
| **Coordination** | Manual orchestration between tasks | Queen-led hierarchy with 5 consensus algorithms (Raft, Byzantine, Gossip) |
|
|
397
400
|
| **Hive Mind** | ⛔ Not available | 🐝 Queen-led swarms with collective intelligence, 3 queen types, 8 worker types |
|
|
398
401
|
| **Consensus** | ⛔ No multi-agent decisions | Byzantine fault-tolerant voting (f < n/3), weighted, majority |
|
|
399
|
-
| **Memory** | Session-only, no persistence | HNSW vector memory with 150x-12,500x faster retrieval |
|
|
402
|
+
| **Memory** | Session-only, no persistence | HNSW vector memory with 150x-12,500x faster retrieval + knowledge graph |
|
|
400
403
|
| **Vector Database** | ⛔ No native support | 🐘 RuVector PostgreSQL with 77+ SQL functions, ~61µs search, 16,400 QPS |
|
|
404
|
+
| **Knowledge Graph** | ⛔ Flat insight lists | PageRank + community detection identifies influential insights (ADR-049) |
|
|
401
405
|
| **Collective Memory** | ⛔ No shared knowledge | Shared knowledge base with LRU cache, SQLite persistence, 8 memory types |
|
|
402
|
-
| **Learning** | Static behavior, no adaptation | SONA self-learning with <0.05ms adaptation,
|
|
406
|
+
| **Learning** | Static behavior, no adaptation | SONA self-learning with <0.05ms adaptation, LearningBridge for insights |
|
|
407
|
+
| **Agent Scoping** | Single project scope | 3-scope agent memory (project/local/user) with cross-agent transfer |
|
|
403
408
|
| **Task Routing** | You decide which agent to use | Intelligent routing based on learned patterns (89% accuracy) |
|
|
404
409
|
| **Complex Tasks** | Manual breakdown required | Automatic decomposition across 5 domains (Security, Core, Integration, Support) |
|
|
405
410
|
| **Background Workers** | Nothing runs automatically | 12 context-triggered workers auto-dispatch on file changes, patterns, sessions |
|
|
@@ -475,69 +480,216 @@ curl ... | bash -s -- --full
|
|
|
475
480
|
|
|
476
481
|
```bash
|
|
477
482
|
# Quick start (no install needed)
|
|
478
|
-
npx
|
|
483
|
+
npx ruflo@alpha init
|
|
479
484
|
|
|
480
485
|
# Or install globally
|
|
481
|
-
npm install -g
|
|
482
|
-
|
|
486
|
+
npm install -g ruflo@alpha
|
|
487
|
+
ruflo init
|
|
483
488
|
|
|
484
489
|
# With Bun (faster)
|
|
485
|
-
bunx
|
|
490
|
+
bunx ruflo@alpha init
|
|
486
491
|
```
|
|
487
492
|
|
|
488
493
|
#### Install Profiles
|
|
489
494
|
|
|
490
495
|
| Profile | Size | Use Case |
|
|
491
496
|
|---------|------|----------|
|
|
492
|
-
| `--omit=optional` | ~
|
|
493
|
-
| Default | ~340MB |
|
|
497
|
+
| `--omit=optional` | ~45MB | Core CLI only (fastest) |
|
|
498
|
+
| Default | ~340MB | Full install with ML/embeddings |
|
|
494
499
|
|
|
495
500
|
```bash
|
|
496
501
|
# Minimal install (skip ML/embeddings)
|
|
497
|
-
npm install -g
|
|
502
|
+
npm install -g ruflo@alpha --omit=optional
|
|
498
503
|
```
|
|
499
504
|
|
|
505
|
+
<details>
|
|
506
|
+
<summary>🤖 <strong>OpenAI Codex CLI Support</strong> — Full Codex integration with self-learning</summary>
|
|
507
|
+
|
|
508
|
+
Ruflo supports both **Claude Code** and **OpenAI Codex CLI** via the [@claude-flow/codex](https://www.npmjs.com/package/@claude-flow/codex) package, following the [Agentics Foundation](https://agentics.org) standard.
|
|
509
|
+
|
|
510
|
+
### Quick Start for Codex
|
|
511
|
+
|
|
512
|
+
```bash
|
|
513
|
+
# Initialize for Codex CLI (creates AGENTS.md instead of CLAUDE.md)
|
|
514
|
+
npx ruflo@alpha init --codex
|
|
515
|
+
|
|
516
|
+
# Full Codex setup with all 137+ skills
|
|
517
|
+
npx ruflo@alpha init --codex --full
|
|
518
|
+
|
|
519
|
+
# Initialize for both platforms (dual mode)
|
|
520
|
+
npx ruflo@alpha init --dual
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
### Platform Comparison
|
|
524
|
+
|
|
525
|
+
| Feature | Claude Code | OpenAI Codex |
|
|
526
|
+
|---------|-------------|--------------|
|
|
527
|
+
| Config File | `CLAUDE.md` | `AGENTS.md` |
|
|
528
|
+
| Skills Dir | `.claude/skills/` | `.agents/skills/` |
|
|
529
|
+
| Skill Syntax | `/skill-name` | `$skill-name` |
|
|
530
|
+
| Settings | `settings.json` | `config.toml` |
|
|
531
|
+
| MCP | Native | Via `codex mcp add` |
|
|
532
|
+
| Default Model | claude-sonnet | gpt-5.3 |
|
|
533
|
+
|
|
534
|
+
### Key Concept: Execution Model
|
|
535
|
+
|
|
536
|
+
```
|
|
537
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
538
|
+
│ CLAUDE-FLOW = ORCHESTRATOR (tracks state, stores memory) │
|
|
539
|
+
│ CODEX = EXECUTOR (writes code, runs commands, implements) │
|
|
540
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
**Codex does the work. Claude-flow coordinates and learns.**
|
|
544
|
+
|
|
545
|
+
### Dual-Mode Integration (Claude Code + Codex)
|
|
546
|
+
|
|
547
|
+
Run Claude Code for interactive development and spawn headless Codex workers for parallel background tasks:
|
|
548
|
+
|
|
549
|
+
```
|
|
550
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
551
|
+
│ CLAUDE CODE (interactive) ←→ CODEX WORKERS (headless) │
|
|
552
|
+
│ - Main conversation - Parallel background execution │
|
|
553
|
+
│ - Complex reasoning - Bulk code generation │
|
|
554
|
+
│ - Architecture decisions - Test execution │
|
|
555
|
+
│ - Final integration - File processing │
|
|
556
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
```bash
|
|
560
|
+
# Spawn parallel Codex workers from Claude Code
|
|
561
|
+
claude -p "Analyze src/auth/ for security issues" --session-id "task-1" &
|
|
562
|
+
claude -p "Write unit tests for src/api/" --session-id "task-2" &
|
|
563
|
+
claude -p "Optimize database queries in src/db/" --session-id "task-3" &
|
|
564
|
+
wait # Wait for all to complete
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
| Dual-Mode Feature | Benefit |
|
|
568
|
+
|-------------------|---------|
|
|
569
|
+
| Parallel Execution | 4-8x faster for bulk tasks |
|
|
570
|
+
| Cost Optimization | Route simple tasks to cheaper workers |
|
|
571
|
+
| Context Preservation | Shared memory across platforms |
|
|
572
|
+
| Best of Both | Interactive + batch processing |
|
|
573
|
+
|
|
574
|
+
### Dual-Mode CLI Commands (NEW)
|
|
575
|
+
|
|
576
|
+
```bash
|
|
577
|
+
# List collaboration templates
|
|
578
|
+
npx ruflo-codex dual templates
|
|
579
|
+
|
|
580
|
+
# Run feature development swarm (architect → coder → tester → reviewer)
|
|
581
|
+
npx ruflo-codex dual run --template feature --task "Add user auth"
|
|
582
|
+
|
|
583
|
+
# Run security audit swarm (scanner → analyzer → fixer)
|
|
584
|
+
npx ruflo-codex dual run --template security --task "src/auth/"
|
|
585
|
+
|
|
586
|
+
# Run refactoring swarm (analyzer → planner → refactorer → validator)
|
|
587
|
+
npx ruflo-codex dual run --template refactor --task "src/legacy/"
|
|
588
|
+
```
|
|
589
|
+
|
|
590
|
+
### Pre-Built Collaboration Templates
|
|
591
|
+
|
|
592
|
+
| Template | Pipeline | Platforms |
|
|
593
|
+
|----------|----------|-----------|
|
|
594
|
+
| **feature** | architect → coder → tester → reviewer | Claude + Codex |
|
|
595
|
+
| **security** | scanner → analyzer → fixer | Codex + Claude |
|
|
596
|
+
| **refactor** | analyzer → planner → refactorer → validator | Claude + Codex |
|
|
597
|
+
|
|
598
|
+
### MCP Integration for Codex
|
|
599
|
+
|
|
600
|
+
When you run `init --codex`, the MCP server is automatically registered:
|
|
601
|
+
|
|
602
|
+
```bash
|
|
603
|
+
# Verify MCP is registered
|
|
604
|
+
codex mcp list
|
|
605
|
+
|
|
606
|
+
# If not present, add manually:
|
|
607
|
+
codex mcp add ruflo -- npx ruflo mcp start
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
### Self-Learning Workflow
|
|
611
|
+
|
|
612
|
+
```
|
|
613
|
+
1. LEARN: memory_search(query="task keywords") → Find similar patterns
|
|
614
|
+
2. COORD: swarm_init(topology="hierarchical") → Set up coordination
|
|
615
|
+
3. EXECUTE: YOU write code, run commands → Codex does real work
|
|
616
|
+
4. REMEMBER: memory_store(key, value, namespace="patterns") → Save for future
|
|
617
|
+
```
|
|
618
|
+
|
|
619
|
+
### MCP Tools for Learning
|
|
620
|
+
|
|
621
|
+
| Tool | Purpose | When to Use |
|
|
622
|
+
|------|---------|-------------|
|
|
623
|
+
| `memory_search` | Semantic vector search | BEFORE starting any task |
|
|
624
|
+
| `memory_store` | Save patterns with embeddings | AFTER completing successfully |
|
|
625
|
+
| `swarm_init` | Initialize coordination | Start of complex tasks |
|
|
626
|
+
| `agent_spawn` | Register agent roles | Multi-agent workflows |
|
|
627
|
+
| `neural_train` | Train on patterns | Periodic improvement |
|
|
628
|
+
|
|
629
|
+
### 137+ Skills Available
|
|
630
|
+
|
|
631
|
+
| Category | Examples |
|
|
632
|
+
|----------|----------|
|
|
633
|
+
| **V3 Core** | `$v3-security-overhaul`, `$v3-memory-unification`, `$v3-performance-optimization` |
|
|
634
|
+
| **AgentDB** | `$agentdb-vector-search`, `$agentdb-optimization`, `$agentdb-learning` |
|
|
635
|
+
| **Swarm** | `$swarm-orchestration`, `$swarm-advanced`, `$hive-mind-advanced` |
|
|
636
|
+
| **GitHub** | `$github-code-review`, `$github-workflow-automation`, `$github-multi-repo` |
|
|
637
|
+
| **SPARC** | `$sparc-methodology`, `$sparc:architect`, `$sparc:coder`, `$sparc:tester` |
|
|
638
|
+
| **Flow Nexus** | `$flow-nexus-neural`, `$flow-nexus-swarm`, `$flow-nexus:workflow` |
|
|
639
|
+
| **Dual-Mode** | `$dual-spawn`, `$dual-coordinate`, `$dual-collect` |
|
|
640
|
+
|
|
641
|
+
### Vector Search Details
|
|
642
|
+
|
|
643
|
+
- **Embedding Dimensions**: 384
|
|
644
|
+
- **Search Algorithm**: HNSW (150x-12,500x faster)
|
|
645
|
+
- **Similarity Scoring**: 0-1 (higher = better)
|
|
646
|
+
- Score > 0.7: Strong match, use pattern
|
|
647
|
+
- Score 0.5-0.7: Partial match, adapt
|
|
648
|
+
- Score < 0.5: Weak match, create new
|
|
649
|
+
|
|
650
|
+
</details>
|
|
651
|
+
|
|
500
652
|
### Basic Usage
|
|
501
653
|
|
|
502
654
|
```bash
|
|
503
655
|
# Initialize project
|
|
504
|
-
npx
|
|
656
|
+
npx ruflo@alpha init
|
|
505
657
|
|
|
506
658
|
# Start MCP server for Claude Code integration
|
|
507
|
-
npx
|
|
659
|
+
npx ruflo@alpha mcp start
|
|
508
660
|
|
|
509
661
|
# Run a task with agents
|
|
510
|
-
npx
|
|
662
|
+
npx ruflo@alpha --agent coder --task "Implement user authentication"
|
|
511
663
|
|
|
512
664
|
# List available agents
|
|
513
|
-
npx
|
|
665
|
+
npx ruflo@alpha --list
|
|
514
666
|
```
|
|
515
667
|
|
|
516
668
|
### Upgrading
|
|
517
669
|
|
|
518
670
|
```bash
|
|
519
671
|
# Update helpers and statusline (preserves your data)
|
|
520
|
-
npx
|
|
672
|
+
npx ruflo@v3alpha init upgrade
|
|
521
673
|
|
|
522
674
|
# Update AND add any missing skills/agents/commands
|
|
523
|
-
npx
|
|
675
|
+
npx ruflo@v3alpha init upgrade --add-missing
|
|
524
676
|
```
|
|
525
677
|
|
|
526
678
|
The `--add-missing` flag automatically detects and installs new skills, agents, and commands that were added in newer versions, without overwriting your existing customizations.
|
|
527
679
|
|
|
528
680
|
### Claude Code MCP Integration
|
|
529
681
|
|
|
530
|
-
Add
|
|
682
|
+
Add ruflo as an MCP server for seamless integration:
|
|
531
683
|
|
|
532
684
|
```bash
|
|
533
|
-
# Add
|
|
534
|
-
claude mcp add
|
|
685
|
+
# Add ruflo MCP server to Claude Code
|
|
686
|
+
claude mcp add ruflo -- npx -y ruflo@latest mcp start
|
|
535
687
|
|
|
536
688
|
# Verify installation
|
|
537
689
|
claude mcp list
|
|
538
690
|
```
|
|
539
691
|
|
|
540
|
-
Once added, Claude Code can use all 175+
|
|
692
|
+
Once added, Claude Code can use all 175+ ruflo MCP tools directly:
|
|
541
693
|
- `swarm_init` - Initialize agent swarms
|
|
542
694
|
- `agent_spawn` - Spawn specialized agents
|
|
543
695
|
- `memory_search` - Search patterns with HNSW (150x faster)
|
|
@@ -548,13 +700,13 @@ Once added, Claude Code can use all 175+ claude-flow MCP tools directly:
|
|
|
548
700
|
## What is it exactly? Agents that learn, build and work perpetually.
|
|
549
701
|
|
|
550
702
|
<details>
|
|
551
|
-
<summary>🆚 <strong>Why
|
|
703
|
+
<summary>🆚 <strong>Why Ruflo v3?</strong></summary>
|
|
552
704
|
|
|
553
|
-
|
|
705
|
+
Ruflo v3 introduces **self-learning neural capabilities** that no other agent orchestration framework offers. While competitors require manual agent configuration and static routing, Ruflo learns from every task execution, prevents catastrophic forgetting of successful patterns, and intelligently routes work to specialized experts.
|
|
554
706
|
|
|
555
707
|
#### 🧠 Neural & Learning
|
|
556
708
|
|
|
557
|
-
| Feature |
|
|
709
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
558
710
|
|---------|----------------|--------|-----------|---------|-------|
|
|
559
711
|
| **Self-Learning** | ✅ SONA + EWC++ | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
560
712
|
| **Prevents Forgetting** | ✅ EWC++ consolidation | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -565,9 +717,12 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
565
717
|
|
|
566
718
|
#### 💾 Memory & Embeddings
|
|
567
719
|
|
|
568
|
-
| Feature |
|
|
720
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
569
721
|
|---------|----------------|--------|-----------|---------|-------|
|
|
570
722
|
| **Vector Memory** | ✅ HNSW (150x faster) | ⛔ | Via plugins | ⛔ | ⛔ |
|
|
723
|
+
| **Knowledge Graph** | ✅ PageRank + communities | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
724
|
+
| **Self-Learning Memory** | ✅ LearningBridge (SONA) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
725
|
+
| **Agent-Scoped Memory** | ✅ 3-scope (project/local/user) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
571
726
|
| **PostgreSQL Vector DB** | ✅ RuVector (77+ SQL functions, ~61µs) | ⛔ | pgvector only | ⛔ | ⛔ |
|
|
572
727
|
| **Hyperbolic Embeddings** | ✅ Poincaré ball (native + SQL) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
573
728
|
| **Quantization** | ✅ Int8 (3.92x savings) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -577,7 +732,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
577
732
|
|
|
578
733
|
#### 🐝 Swarm & Coordination
|
|
579
734
|
|
|
580
|
-
| Feature |
|
|
735
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
581
736
|
|---------|----------------|--------|-----------|---------|-------|
|
|
582
737
|
| **Swarm Topologies** | ✅ 4 types | 1 | 1 | 1 | 1 |
|
|
583
738
|
| **Consensus Protocols** | ✅ 5 (Raft, BFT, etc.) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -587,7 +742,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
587
742
|
|
|
588
743
|
#### 🔧 Developer Experience
|
|
589
744
|
|
|
590
|
-
| Feature |
|
|
745
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
591
746
|
|---------|----------------|--------|-----------|---------|-------|
|
|
592
747
|
| **MCP Integration** | ✅ Native (170+ tools) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
593
748
|
| **Skills System** | ✅ 42+ pre-built | ⛔ | ⛔ | ⛔ | Limited |
|
|
@@ -597,7 +752,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
597
752
|
|
|
598
753
|
#### 🛡️ Security & Platform
|
|
599
754
|
|
|
600
|
-
| Feature |
|
|
755
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
601
756
|
|---------|----------------|--------|-----------|---------|-------|
|
|
602
757
|
| **Threat Detection** | ✅ AIDefence (<10ms) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
603
758
|
| **Cloud Platform** | ✅ Flow Nexus | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -611,7 +766,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
611
766
|
<details>
|
|
612
767
|
<summary>🚀 <strong>Key Differentiators</strong> — Self-learning, memory optimization, fault tolerance</summary>
|
|
613
768
|
|
|
614
|
-
What makes
|
|
769
|
+
What makes Ruflo different from other agent frameworks? These 10 capabilities work together to create a system that learns from experience, runs efficiently on any hardware, and keeps working even when things go wrong.
|
|
615
770
|
|
|
616
771
|
| | Feature | What It Does | Technical Details |
|
|
617
772
|
|---|---------|--------------|-------------------|
|
|
@@ -631,7 +786,7 @@ What makes Claude-Flow different from other agent frameworks? These 10 capabilit
|
|
|
631
786
|
<details>
|
|
632
787
|
<summary>💰 <strong>Intelligent 3-Tier Model Routing</strong> — Save 75% on API costs, extend Claude Max 2.5x</summary>
|
|
633
788
|
|
|
634
|
-
Not every task needs the most powerful (and expensive) model.
|
|
789
|
+
Not every task needs the most powerful (and expensive) model. Ruflo analyzes each request and automatically routes it to the cheapest handler that can do the job well. Simple code transforms skip the LLM entirely using WebAssembly. Medium tasks use faster, cheaper models. Only complex architecture decisions use Opus.
|
|
635
790
|
|
|
636
791
|
**Cost & Usage Benefits:**
|
|
637
792
|
|
|
@@ -657,7 +812,7 @@ Not every task needs the most powerful (and expensive) model. Claude-Flow analyz
|
|
|
657
812
|
<details>
|
|
658
813
|
<summary>📋 <strong>Spec-Driven Development</strong> — Build complete specs, implement without drift</summary>
|
|
659
814
|
|
|
660
|
-
Complex projects fail when implementation drifts from the original plan.
|
|
815
|
+
Complex projects fail when implementation drifts from the original plan. Ruflo solves this with a spec-first approach: define your architecture through ADRs (Architecture Decision Records), organize code into DDD bounded contexts, and let the system enforce compliance as agents work. The result is implementations that match specifications — even across multi-agent swarms working in parallel.
|
|
661
816
|
|
|
662
817
|
**How It Prevents Drift:**
|
|
663
818
|
|
|
@@ -700,6 +855,8 @@ Complex projects fail when implementation drifts from the original plan. Claude-
|
|
|
700
855
|
- **ADR-008**: Vitest testing framework (10x faster than Jest)
|
|
701
856
|
- **ADR-009**: Hybrid Memory Backend (SQLite + HNSW)
|
|
702
857
|
- **ADR-026**: Intelligent 3-tier model routing
|
|
858
|
+
- **ADR-048**: Auto Memory Bridge (Claude Code ↔ AgentDB bidirectional sync)
|
|
859
|
+
- **ADR-049**: Self-Learning Memory with GNN (LearningBridge, MemoryGraph, AgentMemoryScope)
|
|
703
860
|
|
|
704
861
|
</details>
|
|
705
862
|
|
|
@@ -796,28 +953,32 @@ sequenceDiagram
|
|
|
796
953
|
</details>
|
|
797
954
|
|
|
798
955
|
<details>
|
|
799
|
-
<summary>🧠 <strong>Memory Architecture</strong> — How knowledge is stored and retrieved</summary>
|
|
956
|
+
<summary>🧠 <strong>Memory Architecture</strong> — How knowledge is stored, learned, and retrieved</summary>
|
|
800
957
|
|
|
801
958
|
```mermaid
|
|
802
959
|
flowchart LR
|
|
803
960
|
subgraph Input["📥 Input"]
|
|
804
961
|
Query[Query/Pattern]
|
|
962
|
+
Insight[New Insight]
|
|
805
963
|
end
|
|
806
964
|
|
|
807
965
|
subgraph Processing["⚙️ Processing"]
|
|
808
966
|
Embed[ONNX Embeddings]
|
|
809
967
|
Normalize[Normalization]
|
|
968
|
+
Learn[LearningBridge<br/>SONA + ReasoningBank]
|
|
810
969
|
end
|
|
811
970
|
|
|
812
971
|
subgraph Storage["💾 Storage"]
|
|
813
972
|
HNSW[(HNSW Index<br/>150x faster)]
|
|
814
973
|
SQLite[(SQLite Cache)]
|
|
815
974
|
AgentDB[(AgentDB)]
|
|
975
|
+
Graph[MemoryGraph<br/>PageRank + Communities]
|
|
816
976
|
end
|
|
817
977
|
|
|
818
978
|
subgraph Retrieval["🔍 Retrieval"]
|
|
819
979
|
Vector[Vector Search]
|
|
820
980
|
Semantic[Semantic Match]
|
|
981
|
+
Rank[Graph-Aware Ranking]
|
|
821
982
|
Results[Top-K Results]
|
|
822
983
|
end
|
|
823
984
|
|
|
@@ -825,13 +986,26 @@ flowchart LR
|
|
|
825
986
|
Embed --> Normalize
|
|
826
987
|
Normalize --> HNSW
|
|
827
988
|
Normalize --> SQLite
|
|
989
|
+
Insight --> Learn
|
|
990
|
+
Learn --> AgentDB
|
|
991
|
+
AgentDB --> Graph
|
|
828
992
|
HNSW --> Vector
|
|
829
993
|
SQLite --> Vector
|
|
830
994
|
AgentDB --> Semantic
|
|
831
|
-
Vector -->
|
|
832
|
-
Semantic -->
|
|
995
|
+
Vector --> Rank
|
|
996
|
+
Semantic --> Rank
|
|
997
|
+
Graph --> Rank
|
|
998
|
+
Rank --> Results
|
|
833
999
|
```
|
|
834
1000
|
|
|
1001
|
+
**Self-Learning Memory (ADR-049):**
|
|
1002
|
+
| Component | Purpose | Performance |
|
|
1003
|
+
|-----------|---------|-------------|
|
|
1004
|
+
| **LearningBridge** | Connects insights to SONA/ReasoningBank neural pipeline | 0.12 ms/insight |
|
|
1005
|
+
| **MemoryGraph** | PageRank + label propagation knowledge graph | 2.78 ms build (1k nodes) |
|
|
1006
|
+
| **AgentMemoryScope** | 3-scope agent memory (project/local/user) with cross-agent transfer | 1.25 ms transfer |
|
|
1007
|
+
| **AutoMemoryBridge** | Bidirectional sync: Claude Code auto memory files ↔ AgentDB | ADR-048 |
|
|
1008
|
+
|
|
835
1009
|
</details>
|
|
836
1010
|
|
|
837
1011
|
<details>
|
|
@@ -904,18 +1078,18 @@ flowchart TB
|
|
|
904
1078
|
|
|
905
1079
|
## 🔌 Setup & Configuration
|
|
906
1080
|
|
|
907
|
-
Connect
|
|
1081
|
+
Connect Ruflo to your development environment.
|
|
908
1082
|
|
|
909
1083
|
<details>
|
|
910
|
-
<summary>🔌 <strong>MCP Setup</strong> — Connect
|
|
1084
|
+
<summary>🔌 <strong>MCP Setup</strong> — Connect Ruflo to Any AI Environment</summary>
|
|
911
1085
|
|
|
912
|
-
|
|
1086
|
+
Ruflo runs as an MCP (Model Context Protocol) server, allowing you to connect it to any MCP-compatible AI client. This means you can use Ruflo's 60+ agents, swarm coordination, and self-learning capabilities from Claude Desktop, VS Code, Cursor, Windsurf, ChatGPT, and more.
|
|
913
1087
|
|
|
914
1088
|
### Quick Add Command
|
|
915
1089
|
|
|
916
1090
|
```bash
|
|
917
|
-
# Start
|
|
918
|
-
npx
|
|
1091
|
+
# Start Ruflo MCP server in any environment
|
|
1092
|
+
npx ruflo@v3alpha mcp start
|
|
919
1093
|
```
|
|
920
1094
|
|
|
921
1095
|
<details open>
|
|
@@ -930,9 +1104,9 @@ npx claude-flow@v3alpha mcp start
|
|
|
930
1104
|
```json
|
|
931
1105
|
{
|
|
932
1106
|
"mcpServers": {
|
|
933
|
-
"
|
|
1107
|
+
"ruflo": {
|
|
934
1108
|
"command": "npx",
|
|
935
|
-
"args": ["
|
|
1109
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
936
1110
|
"env": {
|
|
937
1111
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
938
1112
|
}
|
|
@@ -952,12 +1126,12 @@ Restart Claude Desktop after saving. Look for the MCP indicator (hammer icon) in
|
|
|
952
1126
|
|
|
953
1127
|
```bash
|
|
954
1128
|
# Add via CLI (recommended)
|
|
955
|
-
claude mcp add
|
|
1129
|
+
claude mcp add ruflo -- npx ruflo@v3alpha mcp start
|
|
956
1130
|
|
|
957
1131
|
# Or add with environment variables
|
|
958
|
-
claude mcp add
|
|
1132
|
+
claude mcp add ruflo \
|
|
959
1133
|
--env ANTHROPIC_API_KEY=sk-ant-... \
|
|
960
|
-
-- npx
|
|
1134
|
+
-- npx ruflo@v3alpha mcp start
|
|
961
1135
|
|
|
962
1136
|
# Verify installation
|
|
963
1137
|
claude mcp list
|
|
@@ -984,9 +1158,9 @@ Create `.vscode/mcp.json` in your project:
|
|
|
984
1158
|
```json
|
|
985
1159
|
{
|
|
986
1160
|
"mcpServers": {
|
|
987
|
-
"
|
|
1161
|
+
"ruflo": {
|
|
988
1162
|
"command": "npx",
|
|
989
|
-
"args": ["
|
|
1163
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
990
1164
|
"env": {
|
|
991
1165
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
992
1166
|
}
|
|
@@ -1011,9 +1185,9 @@ Create `.cursor/mcp.json` in your project (or global config):
|
|
|
1011
1185
|
```json
|
|
1012
1186
|
{
|
|
1013
1187
|
"mcpServers": {
|
|
1014
|
-
"
|
|
1188
|
+
"ruflo": {
|
|
1015
1189
|
"command": "npx",
|
|
1016
|
-
"args": ["
|
|
1190
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
1017
1191
|
"env": {
|
|
1018
1192
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1019
1193
|
}
|
|
@@ -1038,9 +1212,9 @@ Create `.cursor/mcp.json` in your project (or global config):
|
|
|
1038
1212
|
```json
|
|
1039
1213
|
{
|
|
1040
1214
|
"mcpServers": {
|
|
1041
|
-
"
|
|
1215
|
+
"ruflo": {
|
|
1042
1216
|
"command": "npx",
|
|
1043
|
-
"args": ["
|
|
1217
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
1044
1218
|
"env": {
|
|
1045
1219
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1046
1220
|
}
|
|
@@ -1067,11 +1241,11 @@ Click **Refresh** in the MCP settings to connect. Windsurf supports up to 100 MC
|
|
|
1067
1241
|
|
|
1068
1242
|
**Remote Server Setup:**
|
|
1069
1243
|
|
|
1070
|
-
For ChatGPT, you need a remote MCP server (not local stdio). Deploy
|
|
1244
|
+
For ChatGPT, you need a remote MCP server (not local stdio). Deploy ruflo to a server with HTTP transport:
|
|
1071
1245
|
|
|
1072
1246
|
```bash
|
|
1073
1247
|
# Start with HTTP transport
|
|
1074
|
-
npx
|
|
1248
|
+
npx ruflo@v3alpha mcp start --transport http --port 3000
|
|
1075
1249
|
```
|
|
1076
1250
|
|
|
1077
1251
|
Then add the server URL in ChatGPT Connectors settings.
|
|
@@ -1087,7 +1261,7 @@ Google AI Studio supports MCP natively since May 2025, with managed MCP servers
|
|
|
1087
1261
|
|
|
1088
1262
|
**Using MCP SuperAssistant Extension:**
|
|
1089
1263
|
1. Install [MCP SuperAssistant](https://chrome.google.com/webstore) Chrome extension
|
|
1090
|
-
2. Configure your
|
|
1264
|
+
2. Configure your ruflo MCP server
|
|
1091
1265
|
3. Use with Google AI Studio, Gemini, and other AI platforms
|
|
1092
1266
|
|
|
1093
1267
|
**Native SDK Integration:**
|
|
@@ -1100,9 +1274,9 @@ const ai = new GoogleGenAI({ apiKey: 'YOUR_API_KEY' });
|
|
|
1100
1274
|
// MCP definitions are natively supported in the Gen AI SDK
|
|
1101
1275
|
const mcpConfig = {
|
|
1102
1276
|
servers: [{
|
|
1103
|
-
name: '
|
|
1277
|
+
name: 'ruflo',
|
|
1104
1278
|
command: 'npx',
|
|
1105
|
-
args: ['
|
|
1279
|
+
args: ['ruflo@v3alpha', 'mcp', 'start']
|
|
1106
1280
|
}]
|
|
1107
1281
|
};
|
|
1108
1282
|
```
|
|
@@ -1123,9 +1297,9 @@ JetBrains AI Assistant supports MCP for IntelliJ IDEA, PyCharm, WebStorm, and ot
|
|
|
1123
1297
|
|
|
1124
1298
|
```json
|
|
1125
1299
|
{
|
|
1126
|
-
"name": "
|
|
1300
|
+
"name": "ruflo",
|
|
1127
1301
|
"command": "npx",
|
|
1128
|
-
"args": ["
|
|
1302
|
+
"args": ["ruflo@v3alpha", "mcp", "start"]
|
|
1129
1303
|
}
|
|
1130
1304
|
```
|
|
1131
1305
|
|
|
@@ -1355,19 +1529,89 @@ The Hive Mind system implements queen-led hierarchical coordination where strate
|
|
|
1355
1529
|
|
|
1356
1530
|
**CLI Commands:**
|
|
1357
1531
|
```bash
|
|
1358
|
-
npx
|
|
1359
|
-
npx
|
|
1360
|
-
npx
|
|
1361
|
-
npx
|
|
1362
|
-
npx
|
|
1363
|
-
npx
|
|
1364
|
-
npx
|
|
1532
|
+
npx ruflo hive-mind init # Initialize hive mind
|
|
1533
|
+
npx ruflo hive-mind spawn "Build API" # Spawn with objective
|
|
1534
|
+
npx ruflo hive-mind spawn "..." --queen-type strategic --consensus byzantine
|
|
1535
|
+
npx ruflo hive-mind status # Check status
|
|
1536
|
+
npx ruflo hive-mind metrics # Performance metrics
|
|
1537
|
+
npx ruflo hive-mind memory # Collective memory stats
|
|
1538
|
+
npx ruflo hive-mind sessions # List active sessions
|
|
1365
1539
|
```
|
|
1366
1540
|
|
|
1367
1541
|
**Performance:** 10-20x faster batch spawning, 2.8-4.4x speed improvement, 84.8% SWE-Bench solve rate
|
|
1368
1542
|
|
|
1369
1543
|
</details>
|
|
1370
1544
|
|
|
1545
|
+
<details>
|
|
1546
|
+
<summary>👥 <strong>Agent Teams</strong> — Claude Code multi-instance coordination</summary>
|
|
1547
|
+
|
|
1548
|
+
Native integration with Claude Code's experimental Agent Teams feature for spawning and coordinating multiple Claude instances.
|
|
1549
|
+
|
|
1550
|
+
**Enable Agent Teams:**
|
|
1551
|
+
```bash
|
|
1552
|
+
# Automatically enabled with ruflo init
|
|
1553
|
+
npx ruflo@latest init
|
|
1554
|
+
|
|
1555
|
+
# Or manually add to .claude/settings.json
|
|
1556
|
+
{
|
|
1557
|
+
"env": {
|
|
1558
|
+
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
```
|
|
1562
|
+
|
|
1563
|
+
**Agent Teams Components:**
|
|
1564
|
+
|
|
1565
|
+
| Component | Tool | Purpose |
|
|
1566
|
+
|-----------|------|---------|
|
|
1567
|
+
| **Team Lead** | Main Claude | Coordinates teammates, assigns tasks, reviews results |
|
|
1568
|
+
| **Teammates** | `Task` tool | Sub-agents spawned to work on specific tasks |
|
|
1569
|
+
| **Task List** | `TaskCreate/TaskList/TaskUpdate` | Shared todos visible to all team members |
|
|
1570
|
+
| **Mailbox** | `SendMessage` | Inter-agent messaging for coordination |
|
|
1571
|
+
|
|
1572
|
+
**Quick Start:**
|
|
1573
|
+
```javascript
|
|
1574
|
+
// Create a team
|
|
1575
|
+
TeamCreate({ team_name: "feature-dev", description: "Building feature" })
|
|
1576
|
+
|
|
1577
|
+
// Create shared tasks
|
|
1578
|
+
TaskCreate({ subject: "Design API", description: "..." })
|
|
1579
|
+
TaskCreate({ subject: "Implement endpoints", description: "..." })
|
|
1580
|
+
|
|
1581
|
+
// Spawn teammates (parallel background work)
|
|
1582
|
+
Task({ prompt: "Work on task #1...", subagent_type: "architect",
|
|
1583
|
+
team_name: "feature-dev", name: "architect", run_in_background: true })
|
|
1584
|
+
Task({ prompt: "Work on task #2...", subagent_type: "coder",
|
|
1585
|
+
team_name: "feature-dev", name: "developer", run_in_background: true })
|
|
1586
|
+
|
|
1587
|
+
// Message teammates
|
|
1588
|
+
SendMessage({ type: "message", recipient: "developer",
|
|
1589
|
+
content: "Prioritize auth", summary: "Priority update" })
|
|
1590
|
+
|
|
1591
|
+
// Cleanup when done
|
|
1592
|
+
SendMessage({ type: "shutdown_request", recipient: "developer" })
|
|
1593
|
+
TeamDelete()
|
|
1594
|
+
```
|
|
1595
|
+
|
|
1596
|
+
**Agent Teams Hooks:**
|
|
1597
|
+
|
|
1598
|
+
| Hook | Trigger | Purpose |
|
|
1599
|
+
|------|---------|---------|
|
|
1600
|
+
| `teammate-idle` | Teammate finishes turn | Auto-assign pending tasks |
|
|
1601
|
+
| `task-completed` | Task marked complete | Train patterns, notify lead |
|
|
1602
|
+
|
|
1603
|
+
```bash
|
|
1604
|
+
# Handle idle teammate
|
|
1605
|
+
npx ruflo@latest hooks teammate-idle --auto-assign true
|
|
1606
|
+
|
|
1607
|
+
# Handle task completion
|
|
1608
|
+
npx ruflo@latest hooks task-completed --task-id <id> --train-patterns
|
|
1609
|
+
```
|
|
1610
|
+
|
|
1611
|
+
**Display Modes:** `auto` (default), `in-process`, `tmux` (split-pane)
|
|
1612
|
+
|
|
1613
|
+
</details>
|
|
1614
|
+
|
|
1371
1615
|
<details>
|
|
1372
1616
|
<summary>🔧 <strong>MCP Tools & Integration</strong> — 31+ tools across 7 categories</summary>
|
|
1373
1617
|
|
|
@@ -1380,7 +1624,7 @@ Full MCP server with tools for coordination, monitoring, memory, and GitHub inte
|
|
|
1380
1624
|
| **Memory & Neural** | `memory_usage`, `neural_status`, `neural_train`, `neural_patterns` | Memory operations and learning |
|
|
1381
1625
|
| **GitHub** | `github_swarm`, `repo_analyze`, `pr_enhance`, `issue_triage`, `code_review` | Repository integration |
|
|
1382
1626
|
| **Workers** | `worker/run`, `worker/status`, `worker/alerts`, `worker/history` | Background task management |
|
|
1383
|
-
| **Hooks** | `hooks/pre-*`, `hooks/post-*`, `hooks/route`, `hooks/session-*`, `hooks/
|
|
1627
|
+
| **Hooks** | `hooks/pre-*`, `hooks/post-*`, `hooks/route`, `hooks/session-*`, `hooks/teammate-*`, `hooks/task-*` | 33 lifecycle hooks |
|
|
1384
1628
|
| **Progress** | `progress/check`, `progress/sync`, `progress/summary`, `progress/watch` | V3 implementation tracking |
|
|
1385
1629
|
|
|
1386
1630
|
</details>
|
|
@@ -1438,14 +1682,14 @@ Build custom plugins with the fluent builder API. Create MCP tools, hooks, worke
|
|
|
1438
1682
|
|
|
1439
1683
|
### 📦 Available Optional Plugins
|
|
1440
1684
|
|
|
1441
|
-
Install these optional plugins to extend
|
|
1685
|
+
Install these optional plugins to extend Ruflo capabilities:
|
|
1442
1686
|
|
|
1443
1687
|
| Plugin | Version | Description | Install Command |
|
|
1444
1688
|
|--------|---------|-------------|-----------------|
|
|
1445
1689
|
| **@claude-flow/plugin-agentic-qe** | 3.0.0-alpha.2 | Quality Engineering with 58 AI agents across 12 DDD contexts. TDD, coverage analysis, security scanning, chaos engineering, accessibility testing. | `npm install @claude-flow/plugin-agentic-qe` |
|
|
1446
1690
|
| **@claude-flow/plugin-prime-radiant** | 0.1.4 | Mathematical AI interpretability with 6 engines: sheaf cohomology, spectral analysis, causal inference, quantum topology, category theory, HoTT proofs. | `npm install @claude-flow/plugin-prime-radiant` |
|
|
1447
|
-
| **@claude-flow/plugin-gastown-bridge** | 0.1.0 | Gas Town orchestrator integration with WASM-accelerated formula parsing (352x faster), Beads sync, convoy management, and graph analysis. 20 MCP tools. | `npx
|
|
1448
|
-
| **@claude-flow/teammate-plugin** | 1.0.0-alpha.1 | Native TeammateTool integration for Claude Code v2.1.19+. BMSSP WASM acceleration, rate limiting, circuit breaker, semantic routing. 21 MCP tools. | `npx
|
|
1691
|
+
| **@claude-flow/plugin-gastown-bridge** | 0.1.0 | Gas Town orchestrator integration with WASM-accelerated formula parsing (352x faster), Beads sync, convoy management, and graph analysis. 20 MCP tools. | `npx ruflo@latest plugins install -n @claude-flow/plugin-gastown-bridge` |
|
|
1692
|
+
| **@claude-flow/teammate-plugin** | 1.0.0-alpha.1 | Native TeammateTool integration for Claude Code v2.1.19+. BMSSP WASM acceleration, rate limiting, circuit breaker, semantic routing. 21 MCP tools. | `npx ruflo@latest plugins install -n @claude-flow/teammate-plugin` |
|
|
1449
1693
|
|
|
1450
1694
|
#### 🏥 Domain-Specific Plugins
|
|
1451
1695
|
|
|
@@ -1515,7 +1759,7 @@ npm install @claude-flow/plugin-agentic-qe
|
|
|
1515
1759
|
npm install @claude-flow/plugin-prime-radiant
|
|
1516
1760
|
|
|
1517
1761
|
# Install Gas Town Bridge plugin (WASM-accelerated orchestration)
|
|
1518
|
-
npx
|
|
1762
|
+
npx ruflo@latest plugins install -n @claude-flow/plugin-gastown-bridge
|
|
1519
1763
|
|
|
1520
1764
|
# Install domain-specific plugins
|
|
1521
1765
|
npm install @claude-flow/plugin-healthcare-clinical
|
|
@@ -1534,7 +1778,7 @@ npm install @claude-flow/plugin-quantum-optimizer
|
|
|
1534
1778
|
npm install @claude-flow/plugin-hyperbolic-reasoning
|
|
1535
1779
|
|
|
1536
1780
|
# List all installed plugins
|
|
1537
|
-
npx
|
|
1781
|
+
npx ruflo plugins list --installed
|
|
1538
1782
|
```
|
|
1539
1783
|
|
|
1540
1784
|
</details>
|
|
@@ -1703,8 +1947,8 @@ Workers run automatically based on context, or dispatch manually via MCP tools.
|
|
|
1703
1947
|
| **TestGaps** | `testgaps` | Test coverage analysis | Code changes without tests |
|
|
1704
1948
|
|
|
1705
1949
|
```bash
|
|
1706
|
-
npx
|
|
1707
|
-
npx
|
|
1950
|
+
npx ruflo@v3alpha worker dispatch --trigger audit --context "./src"
|
|
1951
|
+
npx ruflo@v3alpha worker status
|
|
1708
1952
|
```
|
|
1709
1953
|
|
|
1710
1954
|
</details>
|
|
@@ -1928,7 +2172,7 @@ npx claude-flow@v3alpha worker status
|
|
|
1928
2172
|
| Feature | Description | Performance |
|
|
1929
2173
|
|---------|-------------|-------------|
|
|
1930
2174
|
| **Multi-Provider** | Agentic-Flow (ONNX), OpenAI, Transformers.js, Mock | 4 providers |
|
|
1931
|
-
| **Auto-Install** | `
|
|
2175
|
+
| **Auto-Install** | `ruflo embeddings init` or `createEmbeddingServiceAsync()` | Zero config |
|
|
1932
2176
|
| **75x Faster** | Agentic-flow ONNX SIMD vs Transformers.js | 3ms vs 230ms |
|
|
1933
2177
|
| **Hyperbolic Space** | Poincaré ball model for hierarchical data | Exponential capacity |
|
|
1934
2178
|
| **Dimensions** | 384 to 3072 configurable | Quality vs speed tradeoff |
|
|
@@ -1938,13 +2182,13 @@ npx claude-flow@v3alpha worker status
|
|
|
1938
2182
|
|
|
1939
2183
|
```bash
|
|
1940
2184
|
# Initialize ONNX embeddings with hyperbolic config
|
|
1941
|
-
|
|
2185
|
+
ruflo embeddings init
|
|
1942
2186
|
|
|
1943
2187
|
# Use larger model for higher quality
|
|
1944
|
-
|
|
2188
|
+
ruflo embeddings init --model all-mpnet-base-v2
|
|
1945
2189
|
|
|
1946
2190
|
# Semantic search
|
|
1947
|
-
|
|
2191
|
+
ruflo embeddings search -q "authentication patterns"
|
|
1948
2192
|
```
|
|
1949
2193
|
|
|
1950
2194
|
| Mode | Adaptation | Quality | Memory | Use Case |
|
|
@@ -1981,22 +2225,22 @@ claude-flow embeddings search -q "authentication patterns"
|
|
|
1981
2225
|
|
|
1982
2226
|
```bash
|
|
1983
2227
|
# Initialize RuVector in PostgreSQL
|
|
1984
|
-
|
|
2228
|
+
ruflo ruvector init --database mydb --user admin
|
|
1985
2229
|
|
|
1986
2230
|
# Check connection and schema status
|
|
1987
|
-
|
|
2231
|
+
ruflo ruvector status --verbose
|
|
1988
2232
|
|
|
1989
2233
|
# Run pending migrations
|
|
1990
|
-
|
|
2234
|
+
ruflo ruvector migrate --up
|
|
1991
2235
|
|
|
1992
2236
|
# Performance benchmark
|
|
1993
|
-
|
|
2237
|
+
ruflo ruvector benchmark --iterations 1000
|
|
1994
2238
|
|
|
1995
2239
|
# Optimize indices and vacuum
|
|
1996
|
-
|
|
2240
|
+
ruflo ruvector optimize --analyze
|
|
1997
2241
|
|
|
1998
2242
|
# Backup vector data
|
|
1999
|
-
|
|
2243
|
+
ruflo ruvector backup --output ./backup.sql
|
|
2000
2244
|
```
|
|
2001
2245
|
|
|
2002
2246
|
| Migration | Purpose | Features |
|
|
@@ -2028,13 +2272,13 @@ claude-flow ruvector backup --output ./backup.sql
|
|
|
2028
2272
|
|
|
2029
2273
|
**Quick Commands:**
|
|
2030
2274
|
```bash
|
|
2031
|
-
npx
|
|
2032
|
-
npx
|
|
2033
|
-
npx
|
|
2034
|
-
npx
|
|
2275
|
+
npx ruflo hive-mind init # Initialize
|
|
2276
|
+
npx ruflo hive-mind spawn "Build API" --queen-type tactical # Spawn swarm
|
|
2277
|
+
npx ruflo hive-mind spawn "Research AI" --consensus byzantine --claude
|
|
2278
|
+
npx ruflo hive-mind status # Check status
|
|
2035
2279
|
```
|
|
2036
2280
|
|
|
2037
|
-
**
|
|
2281
|
+
**Ruflo Skill:** `/hive-mind-advanced` — Full hive mind orchestration
|
|
2038
2282
|
|
|
2039
2283
|
**Performance:** 10-20x faster batch spawning, 84.8% SWE-Bench solve rate, 32.3% token reduction
|
|
2040
2284
|
|
|
@@ -2146,7 +2390,7 @@ Real-time development status display for Claude Code integration showing DDD pro
|
|
|
2146
2390
|
|
|
2147
2391
|
**Output Format:**
|
|
2148
2392
|
```
|
|
2149
|
-
▊
|
|
2393
|
+
▊ Ruflo V3 ● ruvnet │ ⎇ v3 │ Opus 4.5
|
|
2150
2394
|
─────────────────────────────────────────────────────
|
|
2151
2395
|
🏗️ DDD Domains [●●●●●] 5/5 ⚡ 1.0x → 2.49x-7.47x
|
|
2152
2396
|
🤖 Swarm ◉ [58/15] 👥 0 🟢 CVE 3/3 💾 22282MB 📂 47% 🧠 10%
|
|
@@ -2155,7 +2399,7 @@ Real-time development status display for Claude Code integration showing DDD pro
|
|
|
2155
2399
|
|
|
2156
2400
|
| Indicator | Description | Values |
|
|
2157
2401
|
|-----------|-------------|--------|
|
|
2158
|
-
| `▊
|
|
2402
|
+
| `▊ Ruflo V3` | Project header | Always shown |
|
|
2159
2403
|
| `● ruvnet` | GitHub user (via `gh` CLI) | Dynamic |
|
|
2160
2404
|
| `⎇ v3` | Current git branch | Dynamic |
|
|
2161
2405
|
| `Opus 4.5` | Claude model name | From Claude Code |
|
|
@@ -2176,19 +2420,19 @@ Real-time development status display for Claude Code integration showing DDD pro
|
|
|
2176
2420
|
**Usage:**
|
|
2177
2421
|
```bash
|
|
2178
2422
|
# Default: Safe multi-line (avoids Claude Code collision zone)
|
|
2179
|
-
npx
|
|
2423
|
+
npx ruflo@v3alpha hooks statusline
|
|
2180
2424
|
|
|
2181
2425
|
# Single-line mode (completely avoids collision)
|
|
2182
|
-
npx
|
|
2426
|
+
npx ruflo@v3alpha hooks statusline --single
|
|
2183
2427
|
|
|
2184
2428
|
# Legacy multi-line (original behavior, may have bleeding)
|
|
2185
|
-
npx
|
|
2429
|
+
npx ruflo@v3alpha hooks statusline --legacy
|
|
2186
2430
|
|
|
2187
2431
|
# JSON output for scripting
|
|
2188
|
-
npx
|
|
2432
|
+
npx ruflo@v3alpha hooks statusline --json
|
|
2189
2433
|
|
|
2190
2434
|
# Compact JSON (single line)
|
|
2191
|
-
npx
|
|
2435
|
+
npx ruflo@v3alpha hooks statusline --compact
|
|
2192
2436
|
```
|
|
2193
2437
|
|
|
2194
2438
|
**Collision Zone Fix (Issue #985):**
|
|
@@ -2210,16 +2454,16 @@ Add to `.claude/settings.json`:
|
|
|
2210
2454
|
{
|
|
2211
2455
|
"statusLine": {
|
|
2212
2456
|
"type": "command",
|
|
2213
|
-
"command": "npx
|
|
2457
|
+
"command": "npx ruflo@v3alpha hooks statusline --single"
|
|
2214
2458
|
}
|
|
2215
2459
|
}
|
|
2216
2460
|
```
|
|
2217
2461
|
|
|
2218
2462
|
**Data Sources:**
|
|
2219
|
-
- `.
|
|
2220
|
-
- `.
|
|
2221
|
-
- `.
|
|
2222
|
-
- `.
|
|
2463
|
+
- `.ruflo/metrics/v3-progress.json` - DDD domain progress
|
|
2464
|
+
- `.ruflo/metrics/swarm-activity.json` - Active agent counts
|
|
2465
|
+
- `.ruflo/security/audit-status.json` - CVE remediation status
|
|
2466
|
+
- `.ruflo/learning/patterns.db` - Intelligence score (pattern count)
|
|
2223
2467
|
- Process detection via `ps aux` - Real-time memory and agent counts
|
|
2224
2468
|
- Git branch via `git branch --show-current`
|
|
2225
2469
|
- GitHub user via `gh api user`
|
|
@@ -2244,19 +2488,19 @@ Cross-platform TypeScript-based daemon service with auto-scheduling:
|
|
|
2244
2488
|
**Commands:**
|
|
2245
2489
|
```bash
|
|
2246
2490
|
# Start daemon (auto-runs on SessionStart hooks)
|
|
2247
|
-
npx
|
|
2491
|
+
npx ruflo@v3alpha daemon start
|
|
2248
2492
|
|
|
2249
2493
|
# Check status with worker history
|
|
2250
|
-
npx
|
|
2494
|
+
npx ruflo@v3alpha daemon status
|
|
2251
2495
|
|
|
2252
2496
|
# Manually trigger a worker
|
|
2253
|
-
npx
|
|
2497
|
+
npx ruflo@v3alpha daemon trigger map
|
|
2254
2498
|
|
|
2255
2499
|
# Enable/disable workers
|
|
2256
|
-
npx
|
|
2500
|
+
npx ruflo@v3alpha daemon enable map audit optimize
|
|
2257
2501
|
|
|
2258
2502
|
# Stop daemon
|
|
2259
|
-
npx
|
|
2503
|
+
npx ruflo@v3alpha daemon stop
|
|
2260
2504
|
```
|
|
2261
2505
|
|
|
2262
2506
|
**Daemon Status Output:**
|
|
@@ -2330,7 +2574,7 @@ Shell-based daemons for monitoring (Linux/macOS only):
|
|
|
2330
2574
|
<details>
|
|
2331
2575
|
<summary>⌨️ <strong>V3 CLI Commands</strong> — 26 commands with 140+ subcommands</summary>
|
|
2332
2576
|
|
|
2333
|
-
Complete command-line interface for all
|
|
2577
|
+
Complete command-line interface for all Ruflo operations.
|
|
2334
2578
|
|
|
2335
2579
|
**Core Commands:**
|
|
2336
2580
|
|
|
@@ -2372,25 +2616,25 @@ Complete command-line interface for all Claude-Flow operations.
|
|
|
2372
2616
|
|
|
2373
2617
|
```bash
|
|
2374
2618
|
# Initialize project with wizard
|
|
2375
|
-
npx
|
|
2619
|
+
npx ruflo@v3alpha init --wizard
|
|
2376
2620
|
|
|
2377
2621
|
# Start daemon with background workers
|
|
2378
|
-
npx
|
|
2622
|
+
npx ruflo@v3alpha daemon start
|
|
2379
2623
|
|
|
2380
2624
|
# Spawn an agent with specific type
|
|
2381
|
-
npx
|
|
2625
|
+
npx ruflo@v3alpha agent spawn -t coder --name my-coder
|
|
2382
2626
|
|
|
2383
2627
|
# Initialize swarm with V3 mode
|
|
2384
|
-
npx
|
|
2628
|
+
npx ruflo@v3alpha swarm init --v3-mode
|
|
2385
2629
|
|
|
2386
2630
|
# Search memory (HNSW-indexed, 150x faster)
|
|
2387
|
-
npx
|
|
2631
|
+
npx ruflo@v3alpha memory search -q "authentication patterns"
|
|
2388
2632
|
|
|
2389
2633
|
# Run security scan
|
|
2390
|
-
npx
|
|
2634
|
+
npx ruflo@v3alpha security scan --depth full
|
|
2391
2635
|
|
|
2392
2636
|
# Performance benchmark
|
|
2393
|
-
npx
|
|
2637
|
+
npx ruflo@v3alpha performance benchmark --suite all
|
|
2394
2638
|
```
|
|
2395
2639
|
|
|
2396
2640
|
</details>
|
|
@@ -2398,7 +2642,7 @@ npx claude-flow@v3alpha performance benchmark --suite all
|
|
|
2398
2642
|
<details>
|
|
2399
2643
|
<summary>🩺 <strong>Doctor Health Checks</strong> — System diagnostics with auto-fix</summary>
|
|
2400
2644
|
|
|
2401
|
-
Run `npx
|
|
2645
|
+
Run `npx ruflo@v3alpha doctor` to diagnose and fix common issues.
|
|
2402
2646
|
|
|
2403
2647
|
**Health Checks Performed:**
|
|
2404
2648
|
|
|
@@ -2419,22 +2663,22 @@ Run `npx claude-flow@v3alpha doctor` to diagnose and fix common issues.
|
|
|
2419
2663
|
|
|
2420
2664
|
```bash
|
|
2421
2665
|
# Run full diagnostics
|
|
2422
|
-
npx
|
|
2666
|
+
npx ruflo@v3alpha doctor
|
|
2423
2667
|
|
|
2424
2668
|
# Run diagnostics with auto-fix
|
|
2425
|
-
npx
|
|
2669
|
+
npx ruflo@v3alpha doctor --fix
|
|
2426
2670
|
|
|
2427
2671
|
# Check specific component
|
|
2428
|
-
npx
|
|
2672
|
+
npx ruflo@v3alpha doctor --component memory
|
|
2429
2673
|
|
|
2430
2674
|
# Verbose output
|
|
2431
|
-
npx
|
|
2675
|
+
npx ruflo@v3alpha doctor --verbose
|
|
2432
2676
|
```
|
|
2433
2677
|
|
|
2434
2678
|
**Output Example:**
|
|
2435
2679
|
|
|
2436
2680
|
```
|
|
2437
|
-
🩺
|
|
2681
|
+
🩺 Ruflo Doctor v3.0.0-alpha
|
|
2438
2682
|
|
|
2439
2683
|
✅ Node.js 20.11.0 (required: 20+)
|
|
2440
2684
|
✅ npm 10.2.4 (required: 9+)
|
|
@@ -2478,16 +2722,16 @@ The embeddings package (v3.0.0-alpha.12) provides high-performance vector embedd
|
|
|
2478
2722
|
|
|
2479
2723
|
```bash
|
|
2480
2724
|
# Initialize embeddings system
|
|
2481
|
-
npx
|
|
2725
|
+
npx ruflo@v3alpha embeddings init
|
|
2482
2726
|
|
|
2483
2727
|
# Generate embedding for text
|
|
2484
|
-
npx
|
|
2728
|
+
npx ruflo@v3alpha embeddings embed "authentication patterns"
|
|
2485
2729
|
|
|
2486
2730
|
# Batch embed multiple texts
|
|
2487
|
-
npx
|
|
2731
|
+
npx ruflo@v3alpha embeddings batch --file texts.txt
|
|
2488
2732
|
|
|
2489
2733
|
# Search with semantic similarity
|
|
2490
|
-
npx
|
|
2734
|
+
npx ruflo@v3alpha embeddings search "login flow" --top-k 5
|
|
2491
2735
|
```
|
|
2492
2736
|
|
|
2493
2737
|
**Programmatic:**
|
|
@@ -2524,59 +2768,59 @@ Real-world scenarios and pre-built workflows for common tasks.
|
|
|
2524
2768
|
|
|
2525
2769
|
| Scenario | What It Solves | How To Do It |
|
|
2526
2770
|
|----------|----------------|--------------|
|
|
2527
|
-
| **Code Review** | Get thorough reviews with security, performance, and style checks | `npx
|
|
2528
|
-
| **Test Generation** | Auto-generate unit, integration, and e2e tests for existing code | `npx
|
|
2529
|
-
| **Refactoring** | Safely restructure code while maintaining behavior | `npx
|
|
2530
|
-
| **Bug Fixing** | Diagnose and fix bugs with full context analysis | `npx
|
|
2771
|
+
| **Code Review** | Get thorough reviews with security, performance, and style checks | `npx ruflo@v3alpha --agent reviewer --task "Review PR #123"` |
|
|
2772
|
+
| **Test Generation** | Auto-generate unit, integration, and e2e tests for existing code | `npx ruflo@v3alpha --agent tester --task "Write tests for auth module"` |
|
|
2773
|
+
| **Refactoring** | Safely restructure code while maintaining behavior | `npx ruflo@v3alpha --agent coder --task "Refactor user service to use repository pattern"` |
|
|
2774
|
+
| **Bug Fixing** | Diagnose and fix bugs with full context analysis | `npx ruflo@v3alpha --agent coder --task "Fix race condition in checkout flow"` |
|
|
2531
2775
|
|
|
2532
2776
|
### 🔒 Security & Compliance
|
|
2533
2777
|
|
|
2534
2778
|
| Scenario | What It Solves | How To Do It |
|
|
2535
2779
|
|----------|----------------|--------------|
|
|
2536
|
-
| **Security Audit** | Find vulnerabilities before attackers do | `npx
|
|
2537
|
-
| **Dependency Scan** | Identify vulnerable packages and suggest upgrades | `npx
|
|
2538
|
-
| **Compliance Check** | Ensure code meets security standards | `npx
|
|
2780
|
+
| **Security Audit** | Find vulnerabilities before attackers do | `npx ruflo@v3alpha --agent security-architect --task "Audit for OWASP Top 10"` |
|
|
2781
|
+
| **Dependency Scan** | Identify vulnerable packages and suggest upgrades | `npx ruflo@v3alpha security scan --depth full` |
|
|
2782
|
+
| **Compliance Check** | Ensure code meets security standards | `npx ruflo@v3alpha --agent security-architect --task "Check PCI-DSS compliance"` |
|
|
2539
2783
|
|
|
2540
2784
|
### 🐝 Multi-Agent Swarms
|
|
2541
2785
|
|
|
2542
2786
|
| Scenario | What It Solves | How To Do It |
|
|
2543
2787
|
|----------|----------------|--------------|
|
|
2544
|
-
| **Feature Development** | Coordinate multiple agents on complex features | `npx
|
|
2545
|
-
| **Large Refactors** | Parallel refactoring across many files without conflicts | `npx
|
|
2546
|
-
| **Codebase Migration** | Migrate frameworks, languages, or patterns systematically | `npx
|
|
2788
|
+
| **Feature Development** | Coordinate multiple agents on complex features | `npx ruflo@v3alpha swarm init --topology hierarchical && npx ruflo@v3alpha task orchestrate "Build user dashboard"` |
|
|
2789
|
+
| **Large Refactors** | Parallel refactoring across many files without conflicts | `npx ruflo@v3alpha swarm init --topology mesh --max-agents 8` |
|
|
2790
|
+
| **Codebase Migration** | Migrate frameworks, languages, or patterns systematically | `npx ruflo@v3alpha task orchestrate "Migrate from Express to Fastify" --strategy adaptive` |
|
|
2547
2791
|
|
|
2548
2792
|
### 📊 Performance & Optimization
|
|
2549
2793
|
|
|
2550
2794
|
| Scenario | What It Solves | How To Do It |
|
|
2551
2795
|
|----------|----------------|--------------|
|
|
2552
|
-
| **Performance Profiling** | Find and fix bottlenecks in your application | `npx
|
|
2553
|
-
| **Query Optimization** | Speed up slow database queries | `npx
|
|
2554
|
-
| **Memory Analysis** | Reduce memory usage and fix leaks | `npx
|
|
2796
|
+
| **Performance Profiling** | Find and fix bottlenecks in your application | `npx ruflo@v3alpha --agent perf-analyzer --task "Profile API endpoints"` |
|
|
2797
|
+
| **Query Optimization** | Speed up slow database queries | `npx ruflo@v3alpha hooks route "Optimize database queries"` |
|
|
2798
|
+
| **Memory Analysis** | Reduce memory usage and fix leaks | `npx ruflo@v3alpha --agent perf-analyzer --task "Analyze memory usage patterns"` |
|
|
2555
2799
|
|
|
2556
2800
|
### 🔄 GitHub & DevOps
|
|
2557
2801
|
|
|
2558
2802
|
| Scenario | What It Solves | How To Do It |
|
|
2559
2803
|
|----------|----------------|--------------|
|
|
2560
|
-
| **PR Management** | Review, approve, and merge PRs efficiently | `npx
|
|
2561
|
-
| **Issue Triage** | Categorize, prioritize, and assign issues automatically | `npx
|
|
2562
|
-
| **Release Management** | Coordinate releases with changelogs and versioning | `npx
|
|
2563
|
-
| **CI/CD Optimization** | Speed up pipelines and reduce flaky tests | `npx
|
|
2804
|
+
| **PR Management** | Review, approve, and merge PRs efficiently | `npx ruflo@v3alpha --agent pr-manager --task "Review open PRs"` |
|
|
2805
|
+
| **Issue Triage** | Categorize, prioritize, and assign issues automatically | `npx ruflo@v3alpha --agent issue-tracker --task "Triage new issues"` |
|
|
2806
|
+
| **Release Management** | Coordinate releases with changelogs and versioning | `npx ruflo@v3alpha --agent release-manager --task "Prepare v2.0 release"` |
|
|
2807
|
+
| **CI/CD Optimization** | Speed up pipelines and reduce flaky tests | `npx ruflo@v3alpha --agent cicd-engineer --task "Optimize GitHub Actions workflow"` |
|
|
2564
2808
|
|
|
2565
2809
|
### 📋 Spec-Driven Development
|
|
2566
2810
|
|
|
2567
2811
|
| Scenario | What It Solves | How To Do It |
|
|
2568
2812
|
|----------|----------------|--------------|
|
|
2569
|
-
| **Generate Specs** | Create complete specifications before coding | `npx
|
|
2570
|
-
| **Validate Implementation** | Ensure code matches specifications | `npx
|
|
2571
|
-
| **Track Compliance** | Monitor spec adherence across the team | `npx
|
|
2813
|
+
| **Generate Specs** | Create complete specifications before coding | `npx ruflo@v3alpha --agent architect --task "Create ADR for authentication system"` |
|
|
2814
|
+
| **Validate Implementation** | Ensure code matches specifications | `npx ruflo@v3alpha hooks progress --detailed` |
|
|
2815
|
+
| **Track Compliance** | Monitor spec adherence across the team | `npx ruflo@v3alpha progress sync` |
|
|
2572
2816
|
|
|
2573
2817
|
### 🧠 Learning & Intelligence
|
|
2574
2818
|
|
|
2575
2819
|
| Scenario | What It Solves | How To Do It |
|
|
2576
2820
|
|----------|----------------|--------------|
|
|
2577
|
-
| **Bootstrap Intelligence** | Train the system on your codebase patterns | `npx
|
|
2578
|
-
| **Optimize Routing** | Improve task-to-agent matching over time | `npx
|
|
2579
|
-
| **Transfer Learning** | Apply patterns learned from other projects | `npx
|
|
2821
|
+
| **Bootstrap Intelligence** | Train the system on your codebase patterns | `npx ruflo@v3alpha hooks pretrain --depth deep` |
|
|
2822
|
+
| **Optimize Routing** | Improve task-to-agent matching over time | `npx ruflo@v3alpha hooks route "<task>" --include-explanation` |
|
|
2823
|
+
| **Transfer Learning** | Apply patterns learned from other projects | `npx ruflo@v3alpha hooks transfer <sourceProject>` |
|
|
2580
2824
|
|
|
2581
2825
|
</details>
|
|
2582
2826
|
|
|
@@ -2634,7 +2878,7 @@ When hooks run, they emit signals that guide routing decisions. Watch for these
|
|
|
2634
2878
|
|
|
2635
2879
|
**Example Hook Output:**
|
|
2636
2880
|
```bash
|
|
2637
|
-
$ npx
|
|
2881
|
+
$ npx ruflo@v3alpha hooks pre-task --description "convert var to const in utils.ts"
|
|
2638
2882
|
|
|
2639
2883
|
[AGENT_BOOSTER_AVAILABLE] Intent: var-to-const
|
|
2640
2884
|
Recommendation: Use Edit tool directly
|
|
@@ -2657,8 +2901,8 @@ Cost: $0
|
|
|
2657
2901
|
|
|
2658
2902
|
```bash
|
|
2659
2903
|
# Example: Edit with pattern learning
|
|
2660
|
-
npx
|
|
2661
|
-
npx
|
|
2904
|
+
npx ruflo@v3alpha hooks pre-edit ./src/auth.ts
|
|
2905
|
+
npx ruflo@v3alpha hooks post-edit ./src/auth.ts --success true --train-patterns
|
|
2662
2906
|
```
|
|
2663
2907
|
|
|
2664
2908
|
#### 🧠 Intelligence & Routing Hooks (8 hooks)
|
|
@@ -2676,10 +2920,10 @@ npx claude-flow@v3alpha hooks post-edit ./src/auth.ts --success true --train-pat
|
|
|
2676
2920
|
|
|
2677
2921
|
```bash
|
|
2678
2922
|
# Route a task with explanation
|
|
2679
|
-
npx
|
|
2923
|
+
npx ruflo@v3alpha hooks route "refactor authentication to use JWT" --include-explanation
|
|
2680
2924
|
|
|
2681
2925
|
# Bootstrap intelligence from your codebase
|
|
2682
|
-
npx
|
|
2926
|
+
npx ruflo@v3alpha hooks pretrain --depth deep --model-type moe
|
|
2683
2927
|
```
|
|
2684
2928
|
|
|
2685
2929
|
#### 📅 Session Management Hooks (4 hooks)
|
|
@@ -2693,10 +2937,10 @@ npx claude-flow@v3alpha hooks pretrain --depth deep --model-type moe
|
|
|
2693
2937
|
|
|
2694
2938
|
```bash
|
|
2695
2939
|
# Start session with auto-daemon
|
|
2696
|
-
npx
|
|
2940
|
+
npx ruflo@v3alpha hooks session-start --session-id "feature-auth" --start-daemon
|
|
2697
2941
|
|
|
2698
2942
|
# End session and export learnings
|
|
2699
|
-
npx
|
|
2943
|
+
npx ruflo@v3alpha hooks session-end --export-metrics --persist-patterns
|
|
2700
2944
|
```
|
|
2701
2945
|
|
|
2702
2946
|
#### 🤖 Intelligence System Hooks (9 hooks)
|
|
@@ -2715,13 +2959,13 @@ npx claude-flow@v3alpha hooks session-end --export-metrics --persist-patterns
|
|
|
2715
2959
|
|
|
2716
2960
|
```bash
|
|
2717
2961
|
# Start trajectory for complex task
|
|
2718
|
-
npx
|
|
2962
|
+
npx ruflo@v3alpha hooks intelligence trajectory-start --task "implement OAuth2"
|
|
2719
2963
|
|
|
2720
2964
|
# Record successful action
|
|
2721
|
-
npx
|
|
2965
|
+
npx ruflo@v3alpha hooks intelligence trajectory-step --action "created token service" --quality 0.9
|
|
2722
2966
|
|
|
2723
2967
|
# End trajectory and trigger learning
|
|
2724
|
-
npx
|
|
2968
|
+
npx ruflo@v3alpha hooks intelligence trajectory-end --success true
|
|
2725
2969
|
```
|
|
2726
2970
|
|
|
2727
2971
|
### 12 Background Workers (Auto-Triggered)
|
|
@@ -2745,13 +2989,13 @@ Workers run automatically based on context, or dispatch manually.
|
|
|
2745
2989
|
|
|
2746
2990
|
```bash
|
|
2747
2991
|
# List all workers
|
|
2748
|
-
npx
|
|
2992
|
+
npx ruflo@v3alpha hooks worker list
|
|
2749
2993
|
|
|
2750
2994
|
# Manually dispatch security audit
|
|
2751
|
-
npx
|
|
2995
|
+
npx ruflo@v3alpha hooks worker dispatch --trigger audit --context "./src/auth"
|
|
2752
2996
|
|
|
2753
2997
|
# Check worker status
|
|
2754
|
-
npx
|
|
2998
|
+
npx ruflo@v3alpha hooks worker status
|
|
2755
2999
|
```
|
|
2756
3000
|
|
|
2757
3001
|
### Model Routing Hooks (3 hooks)
|
|
@@ -2766,10 +3010,10 @@ Automatically selects haiku/sonnet/opus based on task complexity.
|
|
|
2766
3010
|
|
|
2767
3011
|
```bash
|
|
2768
3012
|
# Get model recommendation
|
|
2769
|
-
npx
|
|
3013
|
+
npx ruflo@v3alpha hooks model-route --task "fix typo in README"
|
|
2770
3014
|
# → Recommends: haiku (simple task, low complexity)
|
|
2771
3015
|
|
|
2772
|
-
npx
|
|
3016
|
+
npx ruflo@v3alpha hooks model-route --task "design distributed consensus system"
|
|
2773
3017
|
# → Recommends: opus (complex architecture, high reasoning)
|
|
2774
3018
|
```
|
|
2775
3019
|
|
|
@@ -2790,21 +3034,21 @@ npx claude-flow@v3alpha hooks model-route --task "design distributed consensus s
|
|
|
2790
3034
|
# ══════════════════════════════════════════════════════════════════
|
|
2791
3035
|
|
|
2792
3036
|
# Route task to best agent
|
|
2793
|
-
npx
|
|
3037
|
+
npx ruflo@v3alpha hooks route "<task>" --include-explanation
|
|
2794
3038
|
|
|
2795
3039
|
# Start/end session with learning
|
|
2796
|
-
npx
|
|
2797
|
-
npx
|
|
3040
|
+
npx ruflo@v3alpha hooks session-start --start-daemon
|
|
3041
|
+
npx ruflo@v3alpha hooks session-end --persist-patterns
|
|
2798
3042
|
|
|
2799
3043
|
# View what the system has learned
|
|
2800
|
-
npx
|
|
2801
|
-
npx
|
|
3044
|
+
npx ruflo@v3alpha hooks metrics
|
|
3045
|
+
npx ruflo@v3alpha hooks intelligence stats
|
|
2802
3046
|
|
|
2803
3047
|
# Bootstrap on new project
|
|
2804
|
-
npx
|
|
3048
|
+
npx ruflo@v3alpha hooks pretrain --depth deep
|
|
2805
3049
|
|
|
2806
3050
|
# Dispatch background worker
|
|
2807
|
-
npx
|
|
3051
|
+
npx ruflo@v3alpha hooks worker dispatch --trigger audit
|
|
2808
3052
|
```
|
|
2809
3053
|
|
|
2810
3054
|
</details>
|
|
@@ -2830,38 +3074,38 @@ Share learned patterns across projects, teams, and the community via the decentr
|
|
|
2830
3074
|
|
|
2831
3075
|
```bash
|
|
2832
3076
|
# Export learned patterns to file
|
|
2833
|
-
npx
|
|
3077
|
+
npx ruflo@v3alpha memory export --format json --output ./patterns.json
|
|
2834
3078
|
|
|
2835
3079
|
# Export specific namespace
|
|
2836
|
-
npx
|
|
3080
|
+
npx ruflo@v3alpha memory export --namespace "security" --output ./security-patterns.json
|
|
2837
3081
|
|
|
2838
3082
|
# Export with embeddings (larger file, faster import)
|
|
2839
|
-
npx
|
|
3083
|
+
npx ruflo@v3alpha memory export --include-embeddings --output ./full-export.json
|
|
2840
3084
|
|
|
2841
3085
|
# Export agent configurations
|
|
2842
|
-
npx
|
|
3086
|
+
npx ruflo@v3alpha config export --scope project --output ./agent-configs.json
|
|
2843
3087
|
|
|
2844
3088
|
# Export session state
|
|
2845
|
-
npx
|
|
3089
|
+
npx ruflo@v3alpha session export --session-id "my-session" --output ./session.json
|
|
2846
3090
|
```
|
|
2847
3091
|
|
|
2848
3092
|
### Import Commands
|
|
2849
3093
|
|
|
2850
3094
|
```bash
|
|
2851
3095
|
# Import patterns from file
|
|
2852
|
-
npx
|
|
3096
|
+
npx ruflo@v3alpha memory import --input ./patterns.json
|
|
2853
3097
|
|
|
2854
3098
|
# Import and merge with existing (don't overwrite)
|
|
2855
|
-
npx
|
|
3099
|
+
npx ruflo@v3alpha memory import --input ./patterns.json --merge
|
|
2856
3100
|
|
|
2857
3101
|
# Import from another project
|
|
2858
|
-
npx
|
|
3102
|
+
npx ruflo@v3alpha hooks transfer --source-path ../other-project
|
|
2859
3103
|
|
|
2860
3104
|
# Import agent configurations
|
|
2861
|
-
npx
|
|
3105
|
+
npx ruflo@v3alpha config import --input ./agent-configs.json --scope project
|
|
2862
3106
|
|
|
2863
3107
|
# Restore session
|
|
2864
|
-
npx
|
|
3108
|
+
npx ruflo@v3alpha session restore --session-id "my-session"
|
|
2865
3109
|
```
|
|
2866
3110
|
|
|
2867
3111
|
### Pattern Store (IPFS Marketplace)
|
|
@@ -2879,13 +3123,13 @@ Decentralized pattern marketplace for sharing and discovering community patterns
|
|
|
2879
3123
|
|
|
2880
3124
|
```bash
|
|
2881
3125
|
# Search for authentication patterns
|
|
2882
|
-
npx
|
|
3126
|
+
npx ruflo@v3alpha transfer-store search --query "authentication" --min-rating 4.0
|
|
2883
3127
|
|
|
2884
3128
|
# Download a pattern
|
|
2885
|
-
npx
|
|
3129
|
+
npx ruflo@v3alpha transfer-store download --id "auth-jwt-patterns-v2" --verify
|
|
2886
3130
|
|
|
2887
3131
|
# Publish your patterns
|
|
2888
|
-
npx
|
|
3132
|
+
npx ruflo@v3alpha transfer-store publish --input ./my-patterns.json --category "security"
|
|
2889
3133
|
```
|
|
2890
3134
|
|
|
2891
3135
|
### Plugin Store
|
|
@@ -2903,22 +3147,22 @@ Discover and install community plugins from the **live IPFS registry** with 19 o
|
|
|
2903
3147
|
|
|
2904
3148
|
```bash
|
|
2905
3149
|
# List plugins with live ratings from Cloud Function
|
|
2906
|
-
npx
|
|
3150
|
+
npx ruflo@v3alpha plugins list
|
|
2907
3151
|
|
|
2908
3152
|
# Filter by type
|
|
2909
|
-
npx
|
|
3153
|
+
npx ruflo@v3alpha plugins list --type integration
|
|
2910
3154
|
|
|
2911
3155
|
# Rate a plugin
|
|
2912
|
-
npx
|
|
3156
|
+
npx ruflo@v3alpha plugins rate --name @claude-flow/embeddings --rating 5
|
|
2913
3157
|
|
|
2914
3158
|
# Search for MCP tool plugins
|
|
2915
|
-
npx
|
|
3159
|
+
npx ruflo@v3alpha transfer plugin-search --type "mcp-tool" --verified
|
|
2916
3160
|
|
|
2917
3161
|
# Get plugin info
|
|
2918
|
-
npx
|
|
3162
|
+
npx ruflo@v3alpha transfer plugin-info --name "semantic-code-search"
|
|
2919
3163
|
|
|
2920
3164
|
# List official plugins
|
|
2921
|
-
npx
|
|
3165
|
+
npx ruflo@v3alpha transfer plugin-official
|
|
2922
3166
|
```
|
|
2923
3167
|
|
|
2924
3168
|
#### Live IPFS Plugin Registry
|
|
@@ -2951,10 +3195,10 @@ Patterns and models are distributed via IPFS for decentralization and integrity.
|
|
|
2951
3195
|
|
|
2952
3196
|
```bash
|
|
2953
3197
|
# Resolve IPNS name to CID
|
|
2954
|
-
npx
|
|
3198
|
+
npx ruflo@v3alpha transfer ipfs-resolve --name "/ipns/patterns.ruflo.io"
|
|
2955
3199
|
|
|
2956
3200
|
# Detect PII before publishing
|
|
2957
|
-
npx
|
|
3201
|
+
npx ruflo@v3alpha transfer detect-pii --content "$(cat ./patterns.json)"
|
|
2958
3202
|
```
|
|
2959
3203
|
|
|
2960
3204
|
### Model & Learning Pattern Import/Export
|
|
@@ -2977,7 +3221,7 @@ curl -X POST "https://api.pinata.cloud/pinning/pinJSONToIPFS" \
|
|
|
2977
3221
|
"name": "my-patterns",
|
|
2978
3222
|
"patterns": [...]
|
|
2979
3223
|
},
|
|
2980
|
-
"pinataMetadata": {"name": "
|
|
3224
|
+
"pinataMetadata": {"name": "ruflo-learning-pattern"}
|
|
2981
3225
|
}'
|
|
2982
3226
|
|
|
2983
3227
|
# Import a pattern from IPFS CID
|
|
@@ -3019,13 +3263,13 @@ Import pre-trained learning patterns for common tasks. **90.5% average accuracy*
|
|
|
3019
3263
|
curl -s "https://gateway.pinata.cloud/ipfs/QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc" | jq '.models[].name'
|
|
3020
3264
|
|
|
3021
3265
|
# Import all models
|
|
3022
|
-
npx
|
|
3266
|
+
npx ruflo@v3alpha transfer import --cid QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc
|
|
3023
3267
|
|
|
3024
3268
|
# Import specific category
|
|
3025
|
-
npx
|
|
3269
|
+
npx ruflo@v3alpha neural import --model security-review-patterns --source ipfs
|
|
3026
3270
|
|
|
3027
3271
|
# Use patterns in routing
|
|
3028
|
-
npx
|
|
3272
|
+
npx ruflo@v3alpha hooks route --task "review authentication code" --use-patterns
|
|
3029
3273
|
```
|
|
3030
3274
|
|
|
3031
3275
|
#### Benefits vs Fresh Install
|
|
@@ -3050,7 +3294,7 @@ npx claude-flow@v3alpha hooks route --task "review authentication code" --use-pa
|
|
|
3050
3294
|
|
|
3051
3295
|
```bash
|
|
3052
3296
|
# Install a pattern pack
|
|
3053
|
-
npx
|
|
3297
|
+
npx ruflo@v3alpha transfer-store download --id "security-essentials" --apply
|
|
3054
3298
|
```
|
|
3055
3299
|
|
|
3056
3300
|
### RuVector WASM Neural Training
|
|
@@ -3068,25 +3312,25 @@ Real WASM-accelerated neural training using `@ruvector/learning-wasm` and `@ruve
|
|
|
3068
3312
|
|
|
3069
3313
|
```bash
|
|
3070
3314
|
# List available pre-trained models from IPFS registry
|
|
3071
|
-
npx
|
|
3315
|
+
npx ruflo@v3alpha neural list
|
|
3072
3316
|
|
|
3073
3317
|
# List models by category
|
|
3074
|
-
npx
|
|
3318
|
+
npx ruflo@v3alpha neural list --category security
|
|
3075
3319
|
|
|
3076
3320
|
# Train with WASM acceleration
|
|
3077
|
-
npx
|
|
3321
|
+
npx ruflo@v3alpha neural train -p coordination -e 100 --wasm --flash --contrastive
|
|
3078
3322
|
|
|
3079
3323
|
# Train security patterns
|
|
3080
|
-
npx
|
|
3324
|
+
npx ruflo@v3alpha neural train -p security --wasm --contrastive
|
|
3081
3325
|
|
|
3082
3326
|
# Benchmark WASM performance
|
|
3083
|
-
npx
|
|
3327
|
+
npx ruflo@v3alpha neural benchmark -d 256 -i 1000
|
|
3084
3328
|
|
|
3085
3329
|
# Import pre-trained models
|
|
3086
|
-
npx
|
|
3330
|
+
npx ruflo@v3alpha neural import --cid QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc
|
|
3087
3331
|
|
|
3088
3332
|
# Export trained patterns to IPFS
|
|
3089
|
-
npx
|
|
3333
|
+
npx ruflo@v3alpha neural export --ipfs --sign
|
|
3090
3334
|
```
|
|
3091
3335
|
|
|
3092
3336
|
#### Benchmark Results
|
|
@@ -3425,9 +3669,9 @@ Skills are **reusable workflows** that combine agents, hooks, and patterns into
|
|
|
3425
3669
|
/v3-security-overhaul
|
|
3426
3670
|
|
|
3427
3671
|
# Via CLI
|
|
3428
|
-
npx
|
|
3429
|
-
npx
|
|
3430
|
-
npx
|
|
3672
|
+
npx ruflo@v3alpha skill run github-code-review
|
|
3673
|
+
npx ruflo@v3alpha skill list
|
|
3674
|
+
npx ruflo@v3alpha skill info sparc-methodology
|
|
3431
3675
|
```
|
|
3432
3676
|
|
|
3433
3677
|
### Creating Custom Skills
|
|
@@ -3484,21 +3728,21 @@ The Claims system manages **who is working on what** — whether human or agent.
|
|
|
3484
3728
|
|
|
3485
3729
|
| Command | What It Does | Example |
|
|
3486
3730
|
|---------|--------------|---------|
|
|
3487
|
-
| `issues list` | See all issues and their status | `npx
|
|
3488
|
-
| `issues claim` | Claim an issue for yourself/agent | `npx
|
|
3489
|
-
| `issues release` | Release your claim | `npx
|
|
3490
|
-
| `issues handoff` | Hand off to another worker | `npx
|
|
3491
|
-
| `issues status` | Update progress on claimed work | `npx
|
|
3492
|
-
| `issues stealable` | List abandoned/stuck issues | `npx
|
|
3493
|
-
| `issues steal` | Take over stealable issue | `npx
|
|
3494
|
-
| `issues load` | View agent workloads | `npx
|
|
3495
|
-
| `issues rebalance` | Redistribute work evenly | `npx
|
|
3496
|
-
| `issues board` | Visual board view | `npx
|
|
3731
|
+
| `issues list` | See all issues and their status | `npx ruflo@v3alpha issues list` |
|
|
3732
|
+
| `issues claim` | Claim an issue for yourself/agent | `npx ruflo@v3alpha issues claim #123 --as coder-1` |
|
|
3733
|
+
| `issues release` | Release your claim | `npx ruflo@v3alpha issues release #123` |
|
|
3734
|
+
| `issues handoff` | Hand off to another worker | `npx ruflo@v3alpha issues handoff #123 --to reviewer` |
|
|
3735
|
+
| `issues status` | Update progress on claimed work | `npx ruflo@v3alpha issues status #123 --progress 75` |
|
|
3736
|
+
| `issues stealable` | List abandoned/stuck issues | `npx ruflo@v3alpha issues stealable` |
|
|
3737
|
+
| `issues steal` | Take over stealable issue | `npx ruflo@v3alpha issues steal #123` |
|
|
3738
|
+
| `issues load` | View agent workloads | `npx ruflo@v3alpha issues load` |
|
|
3739
|
+
| `issues rebalance` | Redistribute work evenly | `npx ruflo@v3alpha issues rebalance --dry-run` |
|
|
3740
|
+
| `issues board` | Visual board view | `npx ruflo@v3alpha issues board` |
|
|
3497
3741
|
|
|
3498
3742
|
### Visual Board View
|
|
3499
3743
|
|
|
3500
3744
|
```bash
|
|
3501
|
-
npx
|
|
3745
|
+
npx ruflo@v3alpha issues board
|
|
3502
3746
|
```
|
|
3503
3747
|
|
|
3504
3748
|
```
|
|
@@ -3520,13 +3764,13 @@ When you need to pass work to someone else:
|
|
|
3520
3764
|
|
|
3521
3765
|
```bash
|
|
3522
3766
|
# 1. Request handoff with context
|
|
3523
|
-
npx
|
|
3767
|
+
npx ruflo@v3alpha issues handoff #123 \
|
|
3524
3768
|
--to security-architect \
|
|
3525
3769
|
--reason "Needs security review" \
|
|
3526
3770
|
--progress 80
|
|
3527
3771
|
|
|
3528
3772
|
# 2. Target accepts handoff
|
|
3529
|
-
npx
|
|
3773
|
+
npx ruflo@v3alpha issues accept #123 --as security-architect
|
|
3530
3774
|
|
|
3531
3775
|
# 3. Work continues with full context
|
|
3532
3776
|
```
|
|
@@ -3535,7 +3779,7 @@ npx claude-flow@v3alpha issues accept #123 --as security-architect
|
|
|
3535
3779
|
|
|
3536
3780
|
```bash
|
|
3537
3781
|
# View current load
|
|
3538
|
-
npx
|
|
3782
|
+
npx ruflo@v3alpha issues load
|
|
3539
3783
|
|
|
3540
3784
|
# Output:
|
|
3541
3785
|
# Agent | Claims | Load | Status
|
|
@@ -3546,7 +3790,7 @@ npx claude-flow@v3alpha issues load
|
|
|
3546
3790
|
# security-arch | 0 | 0% | 🟢 Available
|
|
3547
3791
|
|
|
3548
3792
|
# Auto-rebalance
|
|
3549
|
-
npx
|
|
3793
|
+
npx ruflo@v3alpha issues rebalance
|
|
3550
3794
|
```
|
|
3551
3795
|
|
|
3552
3796
|
### MCP Tools
|
|
@@ -3607,14 +3851,14 @@ The Route system uses **Q-Learning** to automatically assign tasks to the best a
|
|
|
3607
3851
|
|
|
3608
3852
|
| Command | What It Does | Example |
|
|
3609
3853
|
|---------|--------------|---------|
|
|
3610
|
-
| `route task` | Get agent recommendation | `npx
|
|
3611
|
-
| `route explain` | Understand routing decision | `npx
|
|
3612
|
-
| `route coverage` | Route based on test coverage | `npx
|
|
3854
|
+
| `route task` | Get agent recommendation | `npx ruflo@v3alpha route task "implement OAuth2"` |
|
|
3855
|
+
| `route explain` | Understand routing decision | `npx ruflo@v3alpha route explain "task"` |
|
|
3856
|
+
| `route coverage` | Route based on test coverage | `npx ruflo@v3alpha route coverage` |
|
|
3613
3857
|
|
|
3614
3858
|
### Example: Route a Task
|
|
3615
3859
|
|
|
3616
3860
|
```bash
|
|
3617
|
-
npx
|
|
3861
|
+
npx ruflo@v3alpha route task "refactor authentication to use JWT"
|
|
3618
3862
|
|
|
3619
3863
|
# Output:
|
|
3620
3864
|
# ╔══════════════════════════════════════════════════════════════╗
|
|
@@ -3641,7 +3885,7 @@ npx claude-flow@v3alpha route task "refactor authentication to use JWT"
|
|
|
3641
3885
|
Routes tasks to agents based on **test coverage gaps**:
|
|
3642
3886
|
|
|
3643
3887
|
```bash
|
|
3644
|
-
npx
|
|
3888
|
+
npx ruflo@v3alpha route coverage
|
|
3645
3889
|
|
|
3646
3890
|
# Finds untested code and routes to tester agent:
|
|
3647
3891
|
# • src/auth/jwt.ts - 23% coverage → tester
|
|
@@ -3653,10 +3897,10 @@ npx claude-flow@v3alpha route coverage
|
|
|
3653
3897
|
|
|
3654
3898
|
```bash
|
|
3655
3899
|
# Route via hooks (preferred)
|
|
3656
|
-
npx
|
|
3900
|
+
npx ruflo@v3alpha hooks route "implement caching layer" --include-explanation
|
|
3657
3901
|
|
|
3658
3902
|
# Record outcome for learning
|
|
3659
|
-
npx
|
|
3903
|
+
npx ruflo@v3alpha hooks post-task --task-id "task-123" --success true --agent coder
|
|
3660
3904
|
```
|
|
3661
3905
|
|
|
3662
3906
|
### How Q-Learning Improves Over Time
|
|
@@ -3676,12 +3920,12 @@ The system **remembers** what works and applies it to future similar tasks.
|
|
|
3676
3920
|
|
|
3677
3921
|
## 💻 Programmatic Usage
|
|
3678
3922
|
|
|
3679
|
-
Use
|
|
3923
|
+
Use Ruflo packages directly in your applications.
|
|
3680
3924
|
|
|
3681
3925
|
<details>
|
|
3682
|
-
<summary>💻 <strong>Programmatic SDK</strong> — Use
|
|
3926
|
+
<summary>💻 <strong>Programmatic SDK</strong> — Use Ruflo in Your Code</summary>
|
|
3683
3927
|
|
|
3684
|
-
Use
|
|
3928
|
+
Use Ruflo packages directly in your TypeScript/JavaScript applications.
|
|
3685
3929
|
|
|
3686
3930
|
### Installation
|
|
3687
3931
|
|
|
@@ -3690,7 +3934,7 @@ Use Claude-Flow packages directly in your TypeScript/JavaScript applications.
|
|
|
3690
3934
|
npm install @claude-flow/cli @claude-flow/memory @claude-flow/swarm
|
|
3691
3935
|
|
|
3692
3936
|
# Or install everything
|
|
3693
|
-
npm install
|
|
3937
|
+
npm install ruflo@v3alpha
|
|
3694
3938
|
```
|
|
3695
3939
|
|
|
3696
3940
|
### Quick Examples
|
|
@@ -3727,21 +3971,21 @@ console.log(results);
|
|
|
3727
3971
|
**CLI Commands:**
|
|
3728
3972
|
```bash
|
|
3729
3973
|
# Initialize memory database
|
|
3730
|
-
npx
|
|
3974
|
+
npx ruflo@alpha memory init --force
|
|
3731
3975
|
|
|
3732
3976
|
# Store patterns
|
|
3733
|
-
npx
|
|
3734
|
-
npx
|
|
3977
|
+
npx ruflo@alpha memory store --key "pattern-auth" --value "JWT authentication with refresh tokens"
|
|
3978
|
+
npx ruflo@alpha memory store --key "pattern-cache" --value "Redis caching for API responses"
|
|
3735
3979
|
|
|
3736
3980
|
# Build HNSW index for 150x-12,500x faster search
|
|
3737
|
-
npx
|
|
3981
|
+
npx ruflo@alpha memory search --query "authentication" --build-hnsw
|
|
3738
3982
|
|
|
3739
3983
|
# Semantic search (uses HNSW if built)
|
|
3740
|
-
npx
|
|
3984
|
+
npx ruflo@alpha memory search --query "how to cache data" --limit 5
|
|
3741
3985
|
|
|
3742
3986
|
# List and manage entries
|
|
3743
|
-
npx
|
|
3744
|
-
npx
|
|
3987
|
+
npx ruflo@alpha memory list --namespace patterns
|
|
3988
|
+
npx ruflo@alpha memory stats
|
|
3745
3989
|
```
|
|
3746
3990
|
|
|
3747
3991
|
</details>
|
|
@@ -3975,35 +4219,35 @@ console.log(`Hit rate: ${(stats.hitRate * 100).toFixed(1)}%`);
|
|
|
3975
4219
|
|
|
3976
4220
|
```bash
|
|
3977
4221
|
# Generate embedding
|
|
3978
|
-
|
|
4222
|
+
ruflo embeddings embed "Your text here"
|
|
3979
4223
|
|
|
3980
4224
|
# Batch embed from file
|
|
3981
|
-
|
|
4225
|
+
ruflo embeddings batch documents.txt -o embeddings.json
|
|
3982
4226
|
|
|
3983
4227
|
# Similarity search
|
|
3984
|
-
|
|
4228
|
+
ruflo embeddings search "query" --index ./vectors
|
|
3985
4229
|
|
|
3986
4230
|
# Document chunking
|
|
3987
|
-
|
|
4231
|
+
ruflo embeddings chunk document.txt --strategy sentence --max-size 512
|
|
3988
4232
|
|
|
3989
4233
|
# Normalize embeddings
|
|
3990
|
-
|
|
4234
|
+
ruflo embeddings normalize embeddings.json --type l2 -o normalized.json
|
|
3991
4235
|
|
|
3992
4236
|
# Convert to hyperbolic
|
|
3993
|
-
|
|
4237
|
+
ruflo embeddings hyperbolic embeddings.json -o poincare.json
|
|
3994
4238
|
|
|
3995
4239
|
# Neural operations
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
4240
|
+
ruflo embeddings neural drift --baseline "context" --input "check"
|
|
4241
|
+
ruflo embeddings neural store --id mem-1 --content "data"
|
|
4242
|
+
ruflo embeddings neural recall "query" --top-k 5
|
|
3999
4243
|
|
|
4000
4244
|
# Model management
|
|
4001
|
-
|
|
4002
|
-
|
|
4245
|
+
ruflo embeddings models list
|
|
4246
|
+
ruflo embeddings models download all-MiniLM-L6-v2
|
|
4003
4247
|
|
|
4004
4248
|
# Cache management
|
|
4005
|
-
|
|
4006
|
-
|
|
4249
|
+
ruflo embeddings cache stats
|
|
4250
|
+
ruflo embeddings cache clear --older-than 7d
|
|
4007
4251
|
```
|
|
4008
4252
|
|
|
4009
4253
|
### Available Models
|
|
@@ -4054,7 +4298,7 @@ await hooks.endTrajectory(trajectory, { success: true });
|
|
|
4054
4298
|
|
|
4055
4299
|
| Package | Purpose | Main Exports |
|
|
4056
4300
|
|---------|---------|--------------|
|
|
4057
|
-
| `@claude-flow/memory` | Vector storage, HNSW | `AgentDB`, `
|
|
4301
|
+
| `@claude-flow/memory` | Vector storage, HNSW, self-learning graph | `AgentDB`, `AutoMemoryBridge`, `LearningBridge`, `MemoryGraph` |
|
|
4058
4302
|
| `@claude-flow/swarm` | Agent coordination | `createSwarm`, `Swarm` |
|
|
4059
4303
|
| `@claude-flow/aidefence` | Threat detection | `isSafe`, `checkThreats`, `createAIDefence` |
|
|
4060
4304
|
| `@claude-flow/embeddings` | Vector embeddings | `createEmbeddingService` |
|
|
@@ -4070,7 +4314,7 @@ await hooks.endTrajectory(trajectory, { success: true });
|
|
|
4070
4314
|
|
|
4071
4315
|
## 🔗 Ecosystem & Integrations
|
|
4072
4316
|
|
|
4073
|
-
Core infrastructure packages powering
|
|
4317
|
+
Core infrastructure packages powering Ruflo's intelligence layer.
|
|
4074
4318
|
|
|
4075
4319
|
<details>
|
|
4076
4320
|
<summary>⚡ <strong>Agentic-Flow Integration</strong> — Core AI Infrastructure</summary>
|
|
@@ -4079,7 +4323,7 @@ Core infrastructure packages powering Claude-Flow's intelligence layer.
|
|
|
4079
4323
|
[](https://www.npmjs.com/package/agentic-flow)
|
|
4080
4324
|
[](https://github.com/ruvnet/agentic-flow)
|
|
4081
4325
|
|
|
4082
|
-
|
|
4326
|
+
Ruflo v3 is built on top of **[agentic-flow](https://github.com/ruvnet/agentic-flow)**, a production-ready AI agent orchestration platform. This deep integration provides 352x faster code transformations, learning memory, and geometric intelligence.
|
|
4083
4327
|
|
|
4084
4328
|
### Quick Start
|
|
4085
4329
|
|
|
@@ -4360,9 +4604,9 @@ claude mcp add agentic-flow -- npx agentic-flow mcp start
|
|
|
4360
4604
|
|
|
4361
4605
|
</details>
|
|
4362
4606
|
|
|
4363
|
-
### Integration with
|
|
4607
|
+
### Integration with Ruflo
|
|
4364
4608
|
|
|
4365
|
-
|
|
4609
|
+
Ruflo automatically leverages agentic-flow for:
|
|
4366
4610
|
|
|
4367
4611
|
| Feature | How It's Used |
|
|
4368
4612
|
|---------|---------------|
|
|
@@ -4373,7 +4617,7 @@ Claude-Flow automatically leverages agentic-flow for:
|
|
|
4373
4617
|
| **Embedding Search** | HNSW-indexed vector search (150x faster) |
|
|
4374
4618
|
|
|
4375
4619
|
```typescript
|
|
4376
|
-
//
|
|
4620
|
+
// Ruflo automatically uses agentic-flow optimizations
|
|
4377
4621
|
import { getTokenOptimizer } from '@claude-flow/integration';
|
|
4378
4622
|
|
|
4379
4623
|
const optimizer = await getTokenOptimizer();
|
|
@@ -4549,9 +4793,9 @@ jj.enableEncryption(key);
|
|
|
4549
4793
|
|
|
4550
4794
|
</details>
|
|
4551
4795
|
|
|
4552
|
-
###
|
|
4796
|
+
### Ruflo Skill
|
|
4553
4797
|
|
|
4554
|
-
|
|
4798
|
+
Ruflo includes a dedicated `/agentic-jujutsu` skill for AI-powered version control:
|
|
4555
4799
|
|
|
4556
4800
|
```bash
|
|
4557
4801
|
# Invoke the skill
|
|
@@ -4634,7 +4878,7 @@ npx agentic-jujutsu examples # Show usage examples
|
|
|
4634
4878
|
[](https://github.com/ruvnet/ruvector)
|
|
4635
4879
|
[](https://hub.docker.com/r/ruvnet/ruvector-postgres)
|
|
4636
4880
|
|
|
4637
|
-
**RuVector** is a high-performance distributed vector database combining vector search, graph queries, and self-learning neural networks. Written in Rust with Node.js/WASM bindings, it powers
|
|
4881
|
+
**RuVector** is a high-performance distributed vector database combining vector search, graph queries, and self-learning neural networks. Written in Rust with Node.js/WASM bindings, it powers Ruflo's intelligence layer with native speed.
|
|
4638
4882
|
|
|
4639
4883
|
### Key Capabilities
|
|
4640
4884
|
|
|
@@ -4716,7 +4960,7 @@ const compressed = ruvector.compress(embedding, 0.3); // 30% quality threshold
|
|
|
4716
4960
|
|
|
4717
4961
|
```bash
|
|
4718
4962
|
# Quick setup with CLI (recommended)
|
|
4719
|
-
npx
|
|
4963
|
+
npx ruflo ruvector setup --output ./my-ruvector
|
|
4720
4964
|
cd my-ruvector && docker-compose up -d
|
|
4721
4965
|
|
|
4722
4966
|
# Or pull directly from Docker Hub
|
|
@@ -4724,12 +4968,12 @@ docker run -d \
|
|
|
4724
4968
|
--name ruvector-postgres \
|
|
4725
4969
|
-p 5432:5432 \
|
|
4726
4970
|
-e POSTGRES_USER=claude \
|
|
4727
|
-
-e POSTGRES_PASSWORD=
|
|
4971
|
+
-e POSTGRES_PASSWORD=ruflo-test \
|
|
4728
4972
|
-e POSTGRES_DB=claude_flow \
|
|
4729
4973
|
ruvnet/ruvector-postgres
|
|
4730
4974
|
|
|
4731
4975
|
# Migrate existing memory to PostgreSQL
|
|
4732
|
-
npx
|
|
4976
|
+
npx ruflo ruvector import --input memory-export.json
|
|
4733
4977
|
```
|
|
4734
4978
|
|
|
4735
4979
|
**RuVector PostgreSQL vs pgvector:**
|
|
@@ -4886,12 +5130,12 @@ await db.createHyperedge(['agent-1', 'agent-2', 'agent-3'], {
|
|
|
4886
5130
|
|
|
4887
5131
|
</details>
|
|
4888
5132
|
|
|
4889
|
-
### Integration with
|
|
5133
|
+
### Integration with Ruflo
|
|
4890
5134
|
|
|
4891
|
-
|
|
5135
|
+
Ruflo automatically uses RuVector when available:
|
|
4892
5136
|
|
|
4893
5137
|
```typescript
|
|
4894
|
-
//
|
|
5138
|
+
// Ruflo detects and uses native ruvector
|
|
4895
5139
|
import { getVectorStore } from '@claude-flow/memory';
|
|
4896
5140
|
|
|
4897
5141
|
const store = await getVectorStore();
|
|
@@ -4909,19 +5153,19 @@ const similarity = attention.attention(queries, keys, values);
|
|
|
4909
5153
|
|
|
4910
5154
|
```bash
|
|
4911
5155
|
# RuVector PostgreSQL Setup (generates Docker files + SQL)
|
|
4912
|
-
npx
|
|
4913
|
-
npx
|
|
4914
|
-
npx
|
|
5156
|
+
npx ruflo ruvector setup # Output to ./ruvector-postgres
|
|
5157
|
+
npx ruflo ruvector setup --output ./mydir # Custom directory
|
|
5158
|
+
npx ruflo ruvector setup --print # Preview files
|
|
4915
5159
|
|
|
4916
5160
|
# Import from sql.js/JSON to PostgreSQL
|
|
4917
|
-
npx
|
|
4918
|
-
npx
|
|
5161
|
+
npx ruflo ruvector import --input data.json # Direct import
|
|
5162
|
+
npx ruflo ruvector import --input data.json --output sql # Dry-run (generate SQL)
|
|
4919
5163
|
|
|
4920
5164
|
# Other RuVector commands
|
|
4921
|
-
npx
|
|
4922
|
-
npx
|
|
4923
|
-
npx
|
|
4924
|
-
npx
|
|
5165
|
+
npx ruflo ruvector status --verbose # Check connection
|
|
5166
|
+
npx ruflo ruvector benchmark --vectors 10000 # Performance test
|
|
5167
|
+
npx ruflo ruvector optimize --analyze # Optimization suggestions
|
|
5168
|
+
npx ruflo ruvector backup --output backup.sql # Backup data
|
|
4925
5169
|
|
|
4926
5170
|
# Native ruvector CLI
|
|
4927
5171
|
npx ruvector status # Check installation
|
|
@@ -4948,11 +5192,11 @@ Cloud platform integration and deployment tools.
|
|
|
4948
5192
|
<details>
|
|
4949
5193
|
<summary>☁️ <strong>Flow Nexus</strong> — Cloud Platform Integration</summary>
|
|
4950
5194
|
|
|
4951
|
-
Flow Nexus is a **cloud platform** for deploying and scaling
|
|
5195
|
+
Flow Nexus is a **cloud platform** for deploying and scaling Ruflo beyond your local machine.
|
|
4952
5196
|
|
|
4953
5197
|
### What Flow Nexus Provides
|
|
4954
5198
|
|
|
4955
|
-
| Feature | Local
|
|
5199
|
+
| Feature | Local Ruflo | + Flow Nexus |
|
|
4956
5200
|
|---------|-------------------|--------------|
|
|
4957
5201
|
| **Swarm Scale** | 15 agents (local resources) | 100+ agents (cloud resources) |
|
|
4958
5202
|
| **Neural Training** | Limited by local GPU/CPU | Distributed GPU clusters |
|
|
@@ -5001,7 +5245,7 @@ Flow Nexus is a **cloud platform** for deploying and scaling Claude-Flow beyond
|
|
|
5001
5245
|
/flow-nexus-swarm
|
|
5002
5246
|
|
|
5003
5247
|
# Or via CLI
|
|
5004
|
-
npx
|
|
5248
|
+
npx ruflo@v3alpha nexus swarm deploy \
|
|
5005
5249
|
--topology hierarchical \
|
|
5006
5250
|
--max-agents 50 \
|
|
5007
5251
|
--region us-east-1
|
|
@@ -5013,13 +5257,13 @@ Isolated execution environments for running untrusted code:
|
|
|
5013
5257
|
|
|
5014
5258
|
```bash
|
|
5015
5259
|
# Create sandbox
|
|
5016
|
-
npx
|
|
5260
|
+
npx ruflo@v3alpha nexus sandbox create --language python
|
|
5017
5261
|
|
|
5018
5262
|
# Execute code safely
|
|
5019
|
-
npx
|
|
5263
|
+
npx ruflo@v3alpha nexus sandbox exec --code "print('Hello')"
|
|
5020
5264
|
|
|
5021
5265
|
# Cleanup
|
|
5022
|
-
npx
|
|
5266
|
+
npx ruflo@v3alpha nexus sandbox destroy
|
|
5023
5267
|
```
|
|
5024
5268
|
|
|
5025
5269
|
### Event-Driven Workflows
|
|
@@ -5045,10 +5289,10 @@ steps:
|
|
|
5045
5289
|
# 1. Sign up at flow-nexus.io
|
|
5046
5290
|
# 2. Get API key
|
|
5047
5291
|
# 3. Configure
|
|
5048
|
-
npx
|
|
5292
|
+
npx ruflo@v3alpha nexus configure --api-key <key>
|
|
5049
5293
|
|
|
5050
5294
|
# 4. Deploy
|
|
5051
|
-
npx
|
|
5295
|
+
npx ruflo@v3alpha nexus swarm deploy
|
|
5052
5296
|
```
|
|
5053
5297
|
|
|
5054
5298
|
</details>
|
|
@@ -5082,7 +5326,7 @@ Stream-Chain enables **sequential processing** where the output of one agent bec
|
|
|
5082
5326
|
/stream-chain
|
|
5083
5327
|
|
|
5084
5328
|
# Define pipeline
|
|
5085
|
-
npx
|
|
5329
|
+
npx ruflo@v3alpha stream-chain create \
|
|
5086
5330
|
--name "feature-pipeline" \
|
|
5087
5331
|
--stages "researcher,architect,coder,tester,reviewer"
|
|
5088
5332
|
```
|
|
@@ -5124,11 +5368,11 @@ stages:
|
|
|
5124
5368
|
|
|
5125
5369
|
```bash
|
|
5126
5370
|
# Run the pipeline
|
|
5127
|
-
npx
|
|
5371
|
+
npx ruflo@v3alpha stream-chain run feature-pipeline \
|
|
5128
5372
|
--input '{"requirements": "Add user dashboard with analytics"}'
|
|
5129
5373
|
|
|
5130
5374
|
# Monitor progress
|
|
5131
|
-
npx
|
|
5375
|
+
npx ruflo@v3alpha stream-chain status feature-pipeline
|
|
5132
5376
|
```
|
|
5133
5377
|
|
|
5134
5378
|
### Use Cases
|
|
@@ -5168,7 +5412,7 @@ The Pair Programming skill provides **human-AI collaborative coding** with role
|
|
|
5168
5412
|
/pair-programming --mode tdd
|
|
5169
5413
|
|
|
5170
5414
|
# Via CLI
|
|
5171
|
-
npx
|
|
5415
|
+
npx ruflo@v3alpha pair start --mode navigator
|
|
5172
5416
|
```
|
|
5173
5417
|
|
|
5174
5418
|
### TDD Mode Workflow
|
|
@@ -5208,16 +5452,16 @@ npx claude-flow@v3alpha pair start --mode navigator
|
|
|
5208
5452
|
|
|
5209
5453
|
```bash
|
|
5210
5454
|
# Switch roles mid-session
|
|
5211
|
-
npx
|
|
5455
|
+
npx ruflo@v3alpha pair switch
|
|
5212
5456
|
|
|
5213
5457
|
# Get AI explanation
|
|
5214
|
-
npx
|
|
5458
|
+
npx ruflo@v3alpha pair explain
|
|
5215
5459
|
|
|
5216
5460
|
# Run tests
|
|
5217
|
-
npx
|
|
5461
|
+
npx ruflo@v3alpha pair test
|
|
5218
5462
|
|
|
5219
5463
|
# End session with summary
|
|
5220
|
-
npx
|
|
5464
|
+
npx ruflo@v3alpha pair end
|
|
5221
5465
|
```
|
|
5222
5466
|
|
|
5223
5467
|
</details>
|
|
@@ -5274,22 +5518,22 @@ Detection Time: 0.04ms | 50+ Patterns | Self-Learning | HNSW Vector Search
|
|
|
5274
5518
|
|
|
5275
5519
|
```bash
|
|
5276
5520
|
# Basic threat scan
|
|
5277
|
-
npx
|
|
5521
|
+
npx ruflo@v3alpha security defend -i "ignore previous instructions"
|
|
5278
5522
|
|
|
5279
5523
|
# Scan a file
|
|
5280
|
-
npx
|
|
5524
|
+
npx ruflo@v3alpha security defend -f ./user-prompts.txt
|
|
5281
5525
|
|
|
5282
5526
|
# Quick scan (faster)
|
|
5283
|
-
npx
|
|
5527
|
+
npx ruflo@v3alpha security defend -i "some text" --quick
|
|
5284
5528
|
|
|
5285
5529
|
# JSON output
|
|
5286
|
-
npx
|
|
5530
|
+
npx ruflo@v3alpha security defend -i "test" -o json
|
|
5287
5531
|
|
|
5288
5532
|
# View statistics
|
|
5289
|
-
npx
|
|
5533
|
+
npx ruflo@v3alpha security defend --stats
|
|
5290
5534
|
|
|
5291
5535
|
# Full security audit
|
|
5292
|
-
npx
|
|
5536
|
+
npx ruflo@v3alpha security scan --depth full
|
|
5293
5537
|
```
|
|
5294
5538
|
|
|
5295
5539
|
### MCP Tools
|
|
@@ -5421,7 +5665,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
5421
5665
|
| Module | Purpose | Key Features |
|
|
5422
5666
|
|--------|---------|--------------|
|
|
5423
5667
|
| `@claude-flow/hooks` | Event-driven lifecycle | ReasoningBank, 27 hooks, pattern learning |
|
|
5424
|
-
| `@claude-flow/memory` | Unified vector storage | AgentDB, HNSW indexing, 150x faster search |
|
|
5668
|
+
| `@claude-flow/memory` | Unified vector storage | AgentDB, HNSW indexing, 150x faster search, LearningBridge, MemoryGraph, AgentMemoryScope |
|
|
5425
5669
|
| `@claude-flow/security` | CVE remediation | Input validation, path security, AIDefence |
|
|
5426
5670
|
| `@claude-flow/swarm` | Multi-agent coordination | 6 topologies, Byzantine consensus, auto-scaling |
|
|
5427
5671
|
| `@claude-flow/plugins` | WASM extensions | RuVector plugins, semantic search, intent routing |
|
|
@@ -5453,6 +5697,12 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
5453
5697
|
| **Swarm** | Agent spawn | <200ms | ✅ 150ms |
|
|
5454
5698
|
| **Swarm** | Consensus latency | <100ms | ✅ 75ms |
|
|
5455
5699
|
| **Neural** | SONA adaptation | <0.05ms | ✅ 0.03ms |
|
|
5700
|
+
| **Graph** | Build (1k nodes) | <200ms | ✅ 2.78ms (71.9x headroom) |
|
|
5701
|
+
| **Graph** | PageRank (1k nodes) | <100ms | ✅ 12.21ms (8.2x headroom) |
|
|
5702
|
+
| **Learning** | Insight recording | <5ms | ✅ 0.12ms (41x headroom) |
|
|
5703
|
+
| **Learning** | Consolidation | <500ms | ✅ 0.26ms (1,955x headroom) |
|
|
5704
|
+
| **Learning** | Confidence decay (1k) | <50ms | ✅ 0.23ms (215x headroom) |
|
|
5705
|
+
| **Transfer** | Knowledge transfer | <100ms | ✅ 1.25ms (80x headroom) |
|
|
5456
5706
|
| **Task** | Success rate | 95%+ | ✅ 100% (7/7) |
|
|
5457
5707
|
|
|
5458
5708
|
### Topology Performance
|
|
@@ -5475,7 +5725,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
5475
5725
|
|
|
5476
5726
|
[](https://www.npmjs.com/package/@claude-flow/browser)
|
|
5477
5727
|
|
|
5478
|
-
AI-optimized browser automation integrating [agent-browser](https://github.com/AugmentCode/agent-browser) with
|
|
5728
|
+
AI-optimized browser automation integrating [agent-browser](https://github.com/AugmentCode/agent-browser) with ruflo for intelligent web automation, trajectory learning, and multi-agent browser coordination.
|
|
5479
5729
|
|
|
5480
5730
|
### Installation
|
|
5481
5731
|
|
|
@@ -5560,7 +5810,7 @@ const template = getWorkflow('login-basic');
|
|
|
5560
5810
|
<details>
|
|
5561
5811
|
<summary>📦 <strong>Release Management</strong> — @claude-flow/deployment</summary>
|
|
5562
5812
|
|
|
5563
|
-
Automated release management, versioning, and CI/CD for
|
|
5813
|
+
Automated release management, versioning, and CI/CD for Ruflo packages.
|
|
5564
5814
|
|
|
5565
5815
|
### Features
|
|
5566
5816
|
|
|
@@ -5874,10 +6124,10 @@ npm run bench:attention
|
|
|
5874
6124
|
npm run bench:startup
|
|
5875
6125
|
|
|
5876
6126
|
# Performance report
|
|
5877
|
-
npx
|
|
6127
|
+
npx ruflo@v3alpha performance report
|
|
5878
6128
|
|
|
5879
6129
|
# Benchmark specific suite
|
|
5880
|
-
npx
|
|
6130
|
+
npx ruflo@v3alpha performance benchmark --suite memory
|
|
5881
6131
|
```
|
|
5882
6132
|
|
|
5883
6133
|
</details>
|
|
@@ -6258,7 +6508,7 @@ export CLAUDE_FLOW_MEMORY_PATH="./data"
|
|
|
6258
6508
|
| `GCS_PROJECT_ID` | GCS project ID | Optional |
|
|
6259
6509
|
| `GOOGLE_CLOUD_PROJECT` | Alternative project ID variable | Optional |
|
|
6260
6510
|
| `GOOGLE_APPLICATION_CREDENTIALS` | Path to GCS service account JSON | Optional |
|
|
6261
|
-
| `GCS_PREFIX` | Prefix for stored files | `
|
|
6511
|
+
| `GCS_PREFIX` | Prefix for stored files | `ruflo-patterns` |
|
|
6262
6512
|
|
|
6263
6513
|
### Auto-Update System
|
|
6264
6514
|
|
|
@@ -6329,9 +6579,9 @@ CLAUDE_FLOW_HNSW_EF=200
|
|
|
6329
6579
|
|
|
6330
6580
|
### Configuration File Location
|
|
6331
6581
|
|
|
6332
|
-
|
|
6582
|
+
Ruflo looks for configuration in this order:
|
|
6333
6583
|
1. `./claude-flow.config.json` (project root)
|
|
6334
|
-
2. `~/.config/
|
|
6584
|
+
2. `~/.config/ruflo/config.json` (user config)
|
|
6335
6585
|
3. Environment variables (override any file config)
|
|
6336
6586
|
|
|
6337
6587
|
### Complete Configuration Schema
|
|
@@ -6431,7 +6681,7 @@ Claude Flow looks for configuration in this order:
|
|
|
6431
6681
|
"level": "info",
|
|
6432
6682
|
"format": "json",
|
|
6433
6683
|
"destination": "console",
|
|
6434
|
-
"filePath": "./logs/
|
|
6684
|
+
"filePath": "./logs/ruflo.log",
|
|
6435
6685
|
"maxFileSize": "100MB",
|
|
6436
6686
|
"maxFiles": 10
|
|
6437
6687
|
},
|
|
@@ -6498,7 +6748,7 @@ Claude Flow looks for configuration in this order:
|
|
|
6498
6748
|
"version": "3.0.0",
|
|
6499
6749
|
"memory": {
|
|
6500
6750
|
"type": "hybrid",
|
|
6501
|
-
"path": "/var/lib/
|
|
6751
|
+
"path": "/var/lib/ruflo/data",
|
|
6502
6752
|
"encryption": { "enabled": true, "algorithm": "aes-256-gcm" }
|
|
6503
6753
|
},
|
|
6504
6754
|
"swarm": { "topology": "hierarchical", "maxAgents": 15 },
|
|
@@ -6510,7 +6760,7 @@ Claude Flow looks for configuration in this order:
|
|
|
6510
6760
|
"level": "warn",
|
|
6511
6761
|
"format": "json",
|
|
6512
6762
|
"destination": "file",
|
|
6513
|
-
"filePath": "/var/log/
|
|
6763
|
+
"filePath": "/var/log/ruflo/production.log"
|
|
6514
6764
|
},
|
|
6515
6765
|
"monitoring": { "enabled": true, "metricsInterval": 30000 }
|
|
6516
6766
|
}
|
|
@@ -6554,25 +6804,25 @@ Claude Flow looks for configuration in this order:
|
|
|
6554
6804
|
|
|
6555
6805
|
```bash
|
|
6556
6806
|
# View current configuration
|
|
6557
|
-
npx
|
|
6807
|
+
npx ruflo@v3alpha config list
|
|
6558
6808
|
|
|
6559
6809
|
# Get specific value
|
|
6560
|
-
npx
|
|
6810
|
+
npx ruflo@v3alpha config get --key memory.type
|
|
6561
6811
|
|
|
6562
6812
|
# Set configuration value
|
|
6563
|
-
npx
|
|
6813
|
+
npx ruflo@v3alpha config set --key swarm.maxAgents --value 10
|
|
6564
6814
|
|
|
6565
6815
|
# Export configuration
|
|
6566
|
-
npx
|
|
6816
|
+
npx ruflo@v3alpha config export > my-config.json
|
|
6567
6817
|
|
|
6568
6818
|
# Import configuration
|
|
6569
|
-
npx
|
|
6819
|
+
npx ruflo@v3alpha config import --file my-config.json
|
|
6570
6820
|
|
|
6571
6821
|
# Reset to defaults
|
|
6572
|
-
npx
|
|
6822
|
+
npx ruflo@v3alpha config reset --key swarm
|
|
6573
6823
|
|
|
6574
6824
|
# Initialize with wizard
|
|
6575
|
-
npx
|
|
6825
|
+
npx ruflo@v3alpha init --wizard
|
|
6576
6826
|
```
|
|
6577
6827
|
|
|
6578
6828
|
</details>
|
|
@@ -6596,7 +6846,7 @@ lsof -i :3000
|
|
|
6596
6846
|
# Kill existing process
|
|
6597
6847
|
kill -9 <PID>
|
|
6598
6848
|
# Restart MCP server
|
|
6599
|
-
npx
|
|
6849
|
+
npx ruflo@v3alpha mcp start
|
|
6600
6850
|
```
|
|
6601
6851
|
|
|
6602
6852
|
**Agent spawn failures**
|
|
@@ -6610,9 +6860,9 @@ export CLAUDE_FLOW_MAX_AGENTS=5
|
|
|
6610
6860
|
**Pattern search returning no results**
|
|
6611
6861
|
```bash
|
|
6612
6862
|
# Verify patterns are stored
|
|
6613
|
-
npx
|
|
6863
|
+
npx ruflo@v3alpha hooks metrics
|
|
6614
6864
|
# Re-run pretraining if empty
|
|
6615
|
-
npx
|
|
6865
|
+
npx ruflo@v3alpha hooks pretrain
|
|
6616
6866
|
```
|
|
6617
6867
|
|
|
6618
6868
|
**Windows path issues**
|
|
@@ -6620,7 +6870,7 @@ npx claude-flow@v3alpha hooks pretrain
|
|
|
6620
6870
|
# Use forward slashes or escape backslashes
|
|
6621
6871
|
$env:CLAUDE_FLOW_MEMORY_PATH = "./data"
|
|
6622
6872
|
# Or use absolute path
|
|
6623
|
-
$env:CLAUDE_FLOW_MEMORY_PATH = "C:/Users/name/
|
|
6873
|
+
$env:CLAUDE_FLOW_MEMORY_PATH = "C:/Users/name/ruflo/data"
|
|
6624
6874
|
```
|
|
6625
6875
|
|
|
6626
6876
|
**Permission denied errors**
|
|
@@ -6633,7 +6883,7 @@ sudo chown -R $(whoami) ~/.npm
|
|
|
6633
6883
|
**High memory usage**
|
|
6634
6884
|
```bash
|
|
6635
6885
|
# Enable garbage collection
|
|
6636
|
-
node --expose-gc node_modules/.bin/
|
|
6886
|
+
node --expose-gc node_modules/.bin/ruflo
|
|
6637
6887
|
# Reduce HNSW parameters for lower memory
|
|
6638
6888
|
export CLAUDE_FLOW_HNSW_M=8
|
|
6639
6889
|
export CLAUDE_FLOW_HNSW_EF=100
|
|
@@ -6665,45 +6915,45 @@ export CLAUDE_FLOW_HNSW_EF=100
|
|
|
6665
6915
|
|
|
6666
6916
|
| Change | V2 | V3 | Impact |
|
|
6667
6917
|
|--------|----|----|--------|
|
|
6668
|
-
| **Package Structure** | `
|
|
6918
|
+
| **Package Structure** | `ruflo` | `@claude-flow/*` (scoped) | Update imports |
|
|
6669
6919
|
| **Memory Backend** | JSON files | AgentDB + HNSW | Faster search |
|
|
6670
6920
|
| **Hooks System** | Basic patterns | ReasoningBank + SONA | Self-learning |
|
|
6671
6921
|
| **Security** | Manual validation | Automatic strict mode | More secure |
|
|
6672
6922
|
| **CLI Commands** | Flat structure | Nested subcommands | New syntax |
|
|
6673
|
-
| **Config Format** | `.
|
|
6923
|
+
| **Config Format** | `.ruflo/config.json` | `claude-flow.config.json` | Update path |
|
|
6674
6924
|
|
|
6675
6925
|
### Step-by-Step Migration
|
|
6676
6926
|
|
|
6677
6927
|
```bash
|
|
6678
6928
|
# STEP 1: Backup existing data (CRITICAL)
|
|
6679
6929
|
cp -r ./data ./data-backup-v2
|
|
6680
|
-
cp -r ./.
|
|
6930
|
+
cp -r ./.ruflo ./.ruflo-backup-v2
|
|
6681
6931
|
|
|
6682
6932
|
# STEP 2: Check migration status
|
|
6683
|
-
npx
|
|
6933
|
+
npx ruflo@v3alpha migrate status
|
|
6684
6934
|
|
|
6685
6935
|
# STEP 3: Run migration with dry-run first
|
|
6686
|
-
npx
|
|
6936
|
+
npx ruflo@v3alpha migrate run --dry-run
|
|
6687
6937
|
|
|
6688
6938
|
# STEP 4: Execute migration
|
|
6689
|
-
npx
|
|
6939
|
+
npx ruflo@v3alpha migrate run --from v2
|
|
6690
6940
|
|
|
6691
6941
|
# STEP 5: Verify migration
|
|
6692
|
-
npx
|
|
6942
|
+
npx ruflo@v3alpha migrate verify
|
|
6693
6943
|
|
|
6694
6944
|
# STEP 6: Initialize V3 learning
|
|
6695
|
-
npx
|
|
6696
|
-
npx
|
|
6945
|
+
npx ruflo@v3alpha hooks pretrain
|
|
6946
|
+
npx ruflo@v3alpha doctor --fix
|
|
6697
6947
|
```
|
|
6698
6948
|
|
|
6699
6949
|
### Command Changes Reference
|
|
6700
6950
|
|
|
6701
6951
|
| V2 Command | V3 Command | Notes |
|
|
6702
6952
|
|------------|------------|-------|
|
|
6703
|
-
| `
|
|
6704
|
-
| `
|
|
6705
|
-
| `
|
|
6706
|
-
| `
|
|
6953
|
+
| `ruflo start` | `ruflo mcp start` | MCP is explicit |
|
|
6954
|
+
| `ruflo init` | `ruflo init --wizard` | Interactive mode |
|
|
6955
|
+
| `ruflo spawn <type>` | `ruflo agent spawn -t <type>` | Nested under `agent` |
|
|
6956
|
+
| `ruflo swarm create` | `ruflo swarm init --topology mesh` | Explicit topology |
|
|
6707
6957
|
| `--pattern-store path` | `--memory-backend agentdb` | Backend selection |
|
|
6708
6958
|
| `hooks record` | `hooks post-edit --success true` | Explicit success flag |
|
|
6709
6959
|
| `memory get <key>` | `memory retrieve --key <key>` | Explicit flag |
|
|
@@ -6713,7 +6963,7 @@ npx claude-flow@v3alpha doctor --fix
|
|
|
6713
6963
|
|
|
6714
6964
|
### Configuration Migration
|
|
6715
6965
|
|
|
6716
|
-
**V2 Config (`.
|
|
6966
|
+
**V2 Config (`.ruflo/config.json`)**:
|
|
6717
6967
|
```json
|
|
6718
6968
|
{
|
|
6719
6969
|
"mode": "basic",
|
|
@@ -6745,7 +6995,7 @@ npx claude-flow@v3alpha doctor --fix
|
|
|
6745
6995
|
|
|
6746
6996
|
```typescript
|
|
6747
6997
|
// V2 (deprecated)
|
|
6748
|
-
import { ClaudeFlow, Agent, Memory } from '
|
|
6998
|
+
import { ClaudeFlow, Agent, Memory } from 'ruflo';
|
|
6749
6999
|
|
|
6750
7000
|
// V3 (new)
|
|
6751
7001
|
import { ClaudeFlowClient } from '@claude-flow/cli';
|
|
@@ -6760,10 +7010,10 @@ If migration fails, you can rollback:
|
|
|
6760
7010
|
|
|
6761
7011
|
```bash
|
|
6762
7012
|
# Check rollback options
|
|
6763
|
-
npx
|
|
7013
|
+
npx ruflo@v3alpha migrate rollback --list
|
|
6764
7014
|
|
|
6765
7015
|
# Rollback to V2
|
|
6766
|
-
npx
|
|
7016
|
+
npx ruflo@v3alpha migrate rollback --to v2
|
|
6767
7017
|
|
|
6768
7018
|
# Restore backup manually if needed
|
|
6769
7019
|
rm -rf ./data
|
|
@@ -6772,12 +7022,12 @@ cp -r ./data-backup-v2 ./data
|
|
|
6772
7022
|
|
|
6773
7023
|
### Post-Migration Checklist
|
|
6774
7024
|
|
|
6775
|
-
- [ ] Verify all agents spawn correctly: `npx
|
|
6776
|
-
- [ ] Check memory search works: `npx
|
|
6777
|
-
- [ ] Confirm MCP server starts: `npx
|
|
6778
|
-
- [ ] Run doctor diagnostics: `npx
|
|
6779
|
-
- [ ] Test a simple swarm: `npx
|
|
6780
|
-
- [ ] Bootstrap learning: `npx
|
|
7025
|
+
- [ ] Verify all agents spawn correctly: `npx ruflo@v3alpha agent list`
|
|
7026
|
+
- [ ] Check memory search works: `npx ruflo@v3alpha memory search -q "test"`
|
|
7027
|
+
- [ ] Confirm MCP server starts: `npx ruflo@v3alpha mcp start`
|
|
7028
|
+
- [ ] Run doctor diagnostics: `npx ruflo@v3alpha doctor`
|
|
7029
|
+
- [ ] Test a simple swarm: `npx ruflo@v3alpha swarm init --topology mesh`
|
|
7030
|
+
- [ ] Bootstrap learning: `npx ruflo@v3alpha hooks pretrain`
|
|
6781
7031
|
|
|
6782
7032
|
### Common Migration Issues
|
|
6783
7033
|
|