@claude-flow/cli 3.1.0-alpha.5 → 3.1.0-alpha.51
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 +232 -0
- package/.claude/helpers/intelligence.cjs +916 -0
- package/.claude/helpers/session.js +8 -0
- package/.claude/helpers/statusline.cjs +96 -28
- package/.claude/settings.json +86 -141
- package/README.md +830 -353
- package/bin/cli.js +28 -0
- package/bin/mcp-server.js +28 -0
- package/bin/preinstall.cjs +111 -0
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +263 -62
- 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 +191 -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/index.js +2 -2
- package/dist/src/index.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 +310 -41
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts +18 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -1
- package/dist/src/init/helpers-generator.js +498 -0
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/mcp-generator.d.ts +6 -0
- package/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/dist/src/init/mcp-generator.js +52 -16
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +134 -91
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts +16 -8
- package/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/dist/src/init/statusline-generator.js +424 -931
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +12 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +12 -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/intelligence.d.ts.map +1 -1
- package/dist/src/memory/intelligence.js +34 -6
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +203 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -0
- package/dist/src/memory/memory-bridge.js +693 -0
- package/dist/src/memory/memory-bridge.js.map +1 -0
- package/dist/src/memory/memory-initializer.d.ts +4 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +119 -9
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
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
|
+
[](https://github.com/ruvnet/claude-flow)
|
|
10
|
+
|
|
9
11
|
[](https://github.com/ruvnet/claude-flow)
|
|
10
12
|
[](https://www.npmjs.com/package/claude-flow)
|
|
11
13
|
[](https://www.npmjs.com/package/claude-flow)
|
|
@@ -25,12 +27,12 @@
|
|
|
25
27
|
|
|
26
28
|
## Getting into the Flow
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
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
31
|
|
|
30
32
|
### Self-Learning/Self-Optimizing Agent Architecture
|
|
31
33
|
|
|
32
34
|
```
|
|
33
|
-
User →
|
|
35
|
+
User → Ruflo (CLI/MCP) → Router → Swarm → Agents → Memory → LLM Providers
|
|
34
36
|
↑ ↓
|
|
35
37
|
└──── Learning Loop ←──────┘
|
|
36
38
|
```
|
|
@@ -141,8 +143,8 @@ flowchart TB
|
|
|
141
143
|
# Install RuVector standalone
|
|
142
144
|
npx ruvector
|
|
143
145
|
|
|
144
|
-
# Or use via
|
|
145
|
-
npx
|
|
146
|
+
# Or use via Ruflo
|
|
147
|
+
npx ruflo@v3alpha hooks intelligence --status
|
|
146
148
|
```
|
|
147
149
|
|
|
148
150
|
</details>
|
|
@@ -157,7 +159,7 @@ curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.s
|
|
|
157
159
|
curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.sh | bash -s -- --full
|
|
158
160
|
|
|
159
161
|
# Or via npx
|
|
160
|
-
npx
|
|
162
|
+
npx ruflo@alpha init --wizard
|
|
161
163
|
```
|
|
162
164
|
|
|
163
165
|
---
|
|
@@ -171,7 +173,7 @@ npx claude-flow@alpha init --wizard
|
|
|
171
173
|
|
|
172
174
|
🔌 **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
175
|
|
|
174
|
-
⚡ **Plugs Into Claude Code** - Native integration via MCP (Model Context Protocol). Use
|
|
176
|
+
⚡ **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
177
|
|
|
176
178
|
🔒 **Production-Ready Security** - Built-in protection against prompt injection, input validation, path traversal prevention, command injection blocking, and safe credential handling.
|
|
177
179
|
|
|
@@ -219,11 +221,14 @@ Agents organize into swarms led by queens that coordinate work, prevent drift, a
|
|
|
219
221
|
<details>
|
|
220
222
|
<summary>🧠 <strong>Intelligence & Memory</strong> — How the system learns and remembers</summary>
|
|
221
223
|
|
|
222
|
-
The system stores successful patterns in vector memory, learns from outcomes via neural networks, and adapts routing based on what works best.
|
|
224
|
+
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
225
|
|
|
224
226
|
| Layer | Components | What It Does |
|
|
225
227
|
|-------|------------|--------------|
|
|
226
228
|
| Memory | HNSW, AgentDB, Cache | Stores and retrieves patterns 150x faster |
|
|
229
|
+
| Knowledge Graph | MemoryGraph, PageRank, Communities | Identifies influential insights, detects clusters (ADR-049) |
|
|
230
|
+
| Self-Learning | LearningBridge, SONA, ReasoningBank | Triggers learning from insights, confidence lifecycle (ADR-049) |
|
|
231
|
+
| Agent Scopes | AgentMemoryScope, 3-scope dirs | Per-agent isolation + cross-agent knowledge transfer (ADR-049) |
|
|
227
232
|
| Embeddings | ONNX Runtime, MiniLM | Local vectors without API calls (75x faster) |
|
|
228
233
|
| Learning | SONA, MoE, ReasoningBank | Self-improves from results (<0.05ms adaptation) |
|
|
229
234
|
| Fine-tuning | MicroLoRA, EWC++ | Lightweight adaptation without full retraining |
|
|
@@ -346,7 +351,7 @@ const config = optimizer.getOptimalConfig(agentCount);
|
|
|
346
351
|
<details>
|
|
347
352
|
<summary>🛡️ <strong>Anti-Drift Swarm Configuration</strong> — Prevent goal drift in multi-agent work</summary>
|
|
348
353
|
|
|
349
|
-
Complex swarms can drift from their original goals.
|
|
354
|
+
Complex swarms can drift from their original goals. Ruflo V3 includes anti-drift defaults that prevent agents from going off-task.
|
|
350
355
|
|
|
351
356
|
**Recommended Configuration:**
|
|
352
357
|
|
|
@@ -388,18 +393,20 @@ swarm_init({
|
|
|
388
393
|
|
|
389
394
|
</details>
|
|
390
395
|
|
|
391
|
-
### Claude Code: With vs Without
|
|
396
|
+
### Claude Code: With vs Without Ruflo
|
|
392
397
|
|
|
393
|
-
| Capability | Claude Code Alone | Claude Code +
|
|
398
|
+
| Capability | Claude Code Alone | Claude Code + Ruflo |
|
|
394
399
|
|------------|-------------------|---------------------------|
|
|
395
400
|
| **Agent Collaboration** | Agents work in isolation, no shared context | Agents collaborate via swarms with shared memory and consensus |
|
|
396
401
|
| **Coordination** | Manual orchestration between tasks | Queen-led hierarchy with 5 consensus algorithms (Raft, Byzantine, Gossip) |
|
|
397
402
|
| **Hive Mind** | ⛔ Not available | 🐝 Queen-led swarms with collective intelligence, 3 queen types, 8 worker types |
|
|
398
403
|
| **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 |
|
|
404
|
+
| **Memory** | Session-only, no persistence | HNSW vector memory with 150x-12,500x faster retrieval + knowledge graph |
|
|
400
405
|
| **Vector Database** | ⛔ No native support | 🐘 RuVector PostgreSQL with 77+ SQL functions, ~61µs search, 16,400 QPS |
|
|
406
|
+
| **Knowledge Graph** | ⛔ Flat insight lists | PageRank + community detection identifies influential insights (ADR-049) |
|
|
401
407
|
| **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,
|
|
408
|
+
| **Learning** | Static behavior, no adaptation | SONA self-learning with <0.05ms adaptation, LearningBridge for insights |
|
|
409
|
+
| **Agent Scoping** | Single project scope | 3-scope agent memory (project/local/user) with cross-agent transfer |
|
|
403
410
|
| **Task Routing** | You decide which agent to use | Intelligent routing based on learned patterns (89% accuracy) |
|
|
404
411
|
| **Complex Tasks** | Manual breakdown required | Automatic decomposition across 5 domains (Security, Core, Integration, Support) |
|
|
405
412
|
| **Background Workers** | Nothing runs automatically | 12 context-triggered workers auto-dispatch on file changes, patterns, sessions |
|
|
@@ -475,69 +482,223 @@ curl ... | bash -s -- --full
|
|
|
475
482
|
|
|
476
483
|
```bash
|
|
477
484
|
# Quick start (no install needed)
|
|
478
|
-
npx
|
|
485
|
+
npx ruflo@alpha init
|
|
479
486
|
|
|
480
487
|
# Or install globally
|
|
481
|
-
npm install -g
|
|
482
|
-
|
|
488
|
+
npm install -g ruflo@alpha
|
|
489
|
+
ruflo init
|
|
483
490
|
|
|
484
491
|
# With Bun (faster)
|
|
485
|
-
bunx
|
|
492
|
+
bunx ruflo@alpha init
|
|
486
493
|
```
|
|
487
494
|
|
|
488
495
|
#### Install Profiles
|
|
489
496
|
|
|
490
497
|
| Profile | Size | Use Case |
|
|
491
498
|
|---------|------|----------|
|
|
492
|
-
| `--omit=optional` | ~
|
|
493
|
-
| Default | ~340MB |
|
|
499
|
+
| `--omit=optional` | ~45MB | Core CLI only (fastest) |
|
|
500
|
+
| Default | ~340MB | Full install with ML/embeddings |
|
|
494
501
|
|
|
495
502
|
```bash
|
|
496
503
|
# Minimal install (skip ML/embeddings)
|
|
497
|
-
npm install -g
|
|
504
|
+
npm install -g ruflo@alpha --omit=optional
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
<details>
|
|
508
|
+
<summary>🤖 <strong>OpenAI Codex CLI Support</strong> — Full Codex integration with self-learning</summary>
|
|
509
|
+
|
|
510
|
+
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.
|
|
511
|
+
|
|
512
|
+
### Quick Start for Codex
|
|
513
|
+
|
|
514
|
+
```bash
|
|
515
|
+
# Initialize for Codex CLI (creates AGENTS.md instead of CLAUDE.md)
|
|
516
|
+
npx ruflo@alpha init --codex
|
|
517
|
+
|
|
518
|
+
# Full Codex setup with all 137+ skills
|
|
519
|
+
npx ruflo@alpha init --codex --full
|
|
520
|
+
|
|
521
|
+
# Initialize for both platforms (dual mode)
|
|
522
|
+
npx ruflo@alpha init --dual
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
### Platform Comparison
|
|
526
|
+
|
|
527
|
+
| Feature | Claude Code | OpenAI Codex |
|
|
528
|
+
|---------|-------------|--------------|
|
|
529
|
+
| Config File | `CLAUDE.md` | `AGENTS.md` |
|
|
530
|
+
| Skills Dir | `.claude/skills/` | `.agents/skills/` |
|
|
531
|
+
| Skill Syntax | `/skill-name` | `$skill-name` |
|
|
532
|
+
| Settings | `settings.json` | `config.toml` |
|
|
533
|
+
| MCP | Native | Via `codex mcp add` |
|
|
534
|
+
| Default Model | claude-sonnet | gpt-5.3 |
|
|
535
|
+
|
|
536
|
+
### Key Concept: Execution Model
|
|
537
|
+
|
|
538
|
+
```
|
|
539
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
540
|
+
│ CLAUDE-FLOW = ORCHESTRATOR (tracks state, stores memory) │
|
|
541
|
+
│ CODEX = EXECUTOR (writes code, runs commands, implements) │
|
|
542
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
**Codex does the work. Claude-flow coordinates and learns.**
|
|
546
|
+
|
|
547
|
+
### Dual-Mode Integration (Claude Code + Codex)
|
|
548
|
+
|
|
549
|
+
Run Claude Code for interactive development and spawn headless Codex workers for parallel background tasks:
|
|
550
|
+
|
|
551
|
+
```
|
|
552
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
553
|
+
│ CLAUDE CODE (interactive) ←→ CODEX WORKERS (headless) │
|
|
554
|
+
│ - Main conversation - Parallel background execution │
|
|
555
|
+
│ - Complex reasoning - Bulk code generation │
|
|
556
|
+
│ - Architecture decisions - Test execution │
|
|
557
|
+
│ - Final integration - File processing │
|
|
558
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
```bash
|
|
562
|
+
# Spawn parallel Codex workers from Claude Code
|
|
563
|
+
claude -p "Analyze src/auth/ for security issues" --session-id "task-1" &
|
|
564
|
+
claude -p "Write unit tests for src/api/" --session-id "task-2" &
|
|
565
|
+
claude -p "Optimize database queries in src/db/" --session-id "task-3" &
|
|
566
|
+
wait # Wait for all to complete
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
| Dual-Mode Feature | Benefit |
|
|
570
|
+
|-------------------|---------|
|
|
571
|
+
| Parallel Execution | 4-8x faster for bulk tasks |
|
|
572
|
+
| Cost Optimization | Route simple tasks to cheaper workers |
|
|
573
|
+
| Context Preservation | Shared memory across platforms |
|
|
574
|
+
| Best of Both | Interactive + batch processing |
|
|
575
|
+
|
|
576
|
+
### Dual-Mode CLI Commands (NEW)
|
|
577
|
+
|
|
578
|
+
```bash
|
|
579
|
+
# List collaboration templates
|
|
580
|
+
npx ruflo-codex dual templates
|
|
581
|
+
|
|
582
|
+
# Run feature development swarm (architect → coder → tester → reviewer)
|
|
583
|
+
npx ruflo-codex dual run --template feature --task "Add user auth"
|
|
584
|
+
|
|
585
|
+
# Run security audit swarm (scanner → analyzer → fixer)
|
|
586
|
+
npx ruflo-codex dual run --template security --task "src/auth/"
|
|
587
|
+
|
|
588
|
+
# Run refactoring swarm (analyzer → planner → refactorer → validator)
|
|
589
|
+
npx ruflo-codex dual run --template refactor --task "src/legacy/"
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
### Pre-Built Collaboration Templates
|
|
593
|
+
|
|
594
|
+
| Template | Pipeline | Platforms |
|
|
595
|
+
|----------|----------|-----------|
|
|
596
|
+
| **feature** | architect → coder → tester → reviewer | Claude + Codex |
|
|
597
|
+
| **security** | scanner → analyzer → fixer | Codex + Claude |
|
|
598
|
+
| **refactor** | analyzer → planner → refactorer → validator | Claude + Codex |
|
|
599
|
+
|
|
600
|
+
### MCP Integration for Codex
|
|
601
|
+
|
|
602
|
+
When you run `init --codex`, the MCP server is automatically registered:
|
|
603
|
+
|
|
604
|
+
```bash
|
|
605
|
+
# Verify MCP is registered
|
|
606
|
+
codex mcp list
|
|
607
|
+
|
|
608
|
+
# If not present, add manually:
|
|
609
|
+
codex mcp add ruflo -- npx ruflo mcp start
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
### Self-Learning Workflow
|
|
613
|
+
|
|
498
614
|
```
|
|
615
|
+
1. LEARN: memory_search(query="task keywords") → Find similar patterns
|
|
616
|
+
2. COORD: swarm_init(topology="hierarchical") → Set up coordination
|
|
617
|
+
3. EXECUTE: YOU write code, run commands → Codex does real work
|
|
618
|
+
4. REMEMBER: memory_store(key, value, namespace="patterns") → Save for future
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
The **Intelligence Loop** (ADR-050) automates this cycle through hooks. Each session automatically:
|
|
622
|
+
- Builds a knowledge graph from memory entries (PageRank + Jaccard similarity)
|
|
623
|
+
- Injects ranked context into every route decision
|
|
624
|
+
- Tracks edit patterns and generates new insights
|
|
625
|
+
- Boosts confidence for useful patterns, decays unused ones
|
|
626
|
+
- Saves snapshots so you can track improvement with `node .claude/helpers/hook-handler.cjs stats`
|
|
627
|
+
|
|
628
|
+
### MCP Tools for Learning
|
|
629
|
+
|
|
630
|
+
| Tool | Purpose | When to Use |
|
|
631
|
+
|------|---------|-------------|
|
|
632
|
+
| `memory_search` | Semantic vector search | BEFORE starting any task |
|
|
633
|
+
| `memory_store` | Save patterns with embeddings | AFTER completing successfully |
|
|
634
|
+
| `swarm_init` | Initialize coordination | Start of complex tasks |
|
|
635
|
+
| `agent_spawn` | Register agent roles | Multi-agent workflows |
|
|
636
|
+
| `neural_train` | Train on patterns | Periodic improvement |
|
|
637
|
+
|
|
638
|
+
### 137+ Skills Available
|
|
639
|
+
|
|
640
|
+
| Category | Examples |
|
|
641
|
+
|----------|----------|
|
|
642
|
+
| **V3 Core** | `$v3-security-overhaul`, `$v3-memory-unification`, `$v3-performance-optimization` |
|
|
643
|
+
| **AgentDB** | `$agentdb-vector-search`, `$agentdb-optimization`, `$agentdb-learning` |
|
|
644
|
+
| **Swarm** | `$swarm-orchestration`, `$swarm-advanced`, `$hive-mind-advanced` |
|
|
645
|
+
| **GitHub** | `$github-code-review`, `$github-workflow-automation`, `$github-multi-repo` |
|
|
646
|
+
| **SPARC** | `$sparc-methodology`, `$sparc:architect`, `$sparc:coder`, `$sparc:tester` |
|
|
647
|
+
| **Flow Nexus** | `$flow-nexus-neural`, `$flow-nexus-swarm`, `$flow-nexus:workflow` |
|
|
648
|
+
| **Dual-Mode** | `$dual-spawn`, `$dual-coordinate`, `$dual-collect` |
|
|
649
|
+
|
|
650
|
+
### Vector Search Details
|
|
651
|
+
|
|
652
|
+
- **Embedding Dimensions**: 384
|
|
653
|
+
- **Search Algorithm**: HNSW (150x-12,500x faster)
|
|
654
|
+
- **Similarity Scoring**: 0-1 (higher = better)
|
|
655
|
+
- Score > 0.7: Strong match, use pattern
|
|
656
|
+
- Score 0.5-0.7: Partial match, adapt
|
|
657
|
+
- Score < 0.5: Weak match, create new
|
|
658
|
+
|
|
659
|
+
</details>
|
|
499
660
|
|
|
500
661
|
### Basic Usage
|
|
501
662
|
|
|
502
663
|
```bash
|
|
503
664
|
# Initialize project
|
|
504
|
-
npx
|
|
665
|
+
npx ruflo@alpha init
|
|
505
666
|
|
|
506
667
|
# Start MCP server for Claude Code integration
|
|
507
|
-
npx
|
|
668
|
+
npx ruflo@alpha mcp start
|
|
508
669
|
|
|
509
670
|
# Run a task with agents
|
|
510
|
-
npx
|
|
671
|
+
npx ruflo@alpha --agent coder --task "Implement user authentication"
|
|
511
672
|
|
|
512
673
|
# List available agents
|
|
513
|
-
npx
|
|
674
|
+
npx ruflo@alpha --list
|
|
514
675
|
```
|
|
515
676
|
|
|
516
677
|
### Upgrading
|
|
517
678
|
|
|
518
679
|
```bash
|
|
519
680
|
# Update helpers and statusline (preserves your data)
|
|
520
|
-
npx
|
|
681
|
+
npx ruflo@v3alpha init upgrade
|
|
521
682
|
|
|
522
683
|
# Update AND add any missing skills/agents/commands
|
|
523
|
-
npx
|
|
684
|
+
npx ruflo@v3alpha init upgrade --add-missing
|
|
524
685
|
```
|
|
525
686
|
|
|
526
687
|
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
688
|
|
|
528
689
|
### Claude Code MCP Integration
|
|
529
690
|
|
|
530
|
-
Add
|
|
691
|
+
Add ruflo as an MCP server for seamless integration:
|
|
531
692
|
|
|
532
693
|
```bash
|
|
533
|
-
# Add
|
|
534
|
-
claude mcp add
|
|
694
|
+
# Add ruflo MCP server to Claude Code
|
|
695
|
+
claude mcp add ruflo -- npx -y ruflo@latest mcp start
|
|
535
696
|
|
|
536
697
|
# Verify installation
|
|
537
698
|
claude mcp list
|
|
538
699
|
```
|
|
539
700
|
|
|
540
|
-
Once added, Claude Code can use all 175+
|
|
701
|
+
Once added, Claude Code can use all 175+ ruflo MCP tools directly:
|
|
541
702
|
- `swarm_init` - Initialize agent swarms
|
|
542
703
|
- `agent_spawn` - Spawn specialized agents
|
|
543
704
|
- `memory_search` - Search patterns with HNSW (150x faster)
|
|
@@ -548,13 +709,13 @@ Once added, Claude Code can use all 175+ claude-flow MCP tools directly:
|
|
|
548
709
|
## What is it exactly? Agents that learn, build and work perpetually.
|
|
549
710
|
|
|
550
711
|
<details>
|
|
551
|
-
<summary>🆚 <strong>Why
|
|
712
|
+
<summary>🆚 <strong>Why Ruflo v3?</strong></summary>
|
|
552
713
|
|
|
553
|
-
|
|
714
|
+
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
715
|
|
|
555
716
|
#### 🧠 Neural & Learning
|
|
556
717
|
|
|
557
|
-
| Feature |
|
|
718
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
558
719
|
|---------|----------------|--------|-----------|---------|-------|
|
|
559
720
|
| **Self-Learning** | ✅ SONA + EWC++ | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
560
721
|
| **Prevents Forgetting** | ✅ EWC++ consolidation | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -565,9 +726,12 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
565
726
|
|
|
566
727
|
#### 💾 Memory & Embeddings
|
|
567
728
|
|
|
568
|
-
| Feature |
|
|
729
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
569
730
|
|---------|----------------|--------|-----------|---------|-------|
|
|
570
731
|
| **Vector Memory** | ✅ HNSW (150x faster) | ⛔ | Via plugins | ⛔ | ⛔ |
|
|
732
|
+
| **Knowledge Graph** | ✅ PageRank + communities | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
733
|
+
| **Self-Learning Memory** | ✅ LearningBridge (SONA) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
734
|
+
| **Agent-Scoped Memory** | ✅ 3-scope (project/local/user) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
571
735
|
| **PostgreSQL Vector DB** | ✅ RuVector (77+ SQL functions, ~61µs) | ⛔ | pgvector only | ⛔ | ⛔ |
|
|
572
736
|
| **Hyperbolic Embeddings** | ✅ Poincaré ball (native + SQL) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
573
737
|
| **Quantization** | ✅ Int8 (3.92x savings) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -577,7 +741,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
577
741
|
|
|
578
742
|
#### 🐝 Swarm & Coordination
|
|
579
743
|
|
|
580
|
-
| Feature |
|
|
744
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
581
745
|
|---------|----------------|--------|-----------|---------|-------|
|
|
582
746
|
| **Swarm Topologies** | ✅ 4 types | 1 | 1 | 1 | 1 |
|
|
583
747
|
| **Consensus Protocols** | ✅ 5 (Raft, BFT, etc.) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -587,7 +751,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
587
751
|
|
|
588
752
|
#### 🔧 Developer Experience
|
|
589
753
|
|
|
590
|
-
| Feature |
|
|
754
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
591
755
|
|---------|----------------|--------|-----------|---------|-------|
|
|
592
756
|
| **MCP Integration** | ✅ Native (170+ tools) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
593
757
|
| **Skills System** | ✅ 42+ pre-built | ⛔ | ⛔ | ⛔ | Limited |
|
|
@@ -597,7 +761,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
597
761
|
|
|
598
762
|
#### 🛡️ Security & Platform
|
|
599
763
|
|
|
600
|
-
| Feature |
|
|
764
|
+
| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus |
|
|
601
765
|
|---------|----------------|--------|-----------|---------|-------|
|
|
602
766
|
| **Threat Detection** | ✅ AIDefence (<10ms) | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
603
767
|
| **Cloud Platform** | ✅ Flow Nexus | ⛔ | ⛔ | ⛔ | ⛔ |
|
|
@@ -611,7 +775,7 @@ Claude-Flow v3 introduces **self-learning neural capabilities** that no other ag
|
|
|
611
775
|
<details>
|
|
612
776
|
<summary>🚀 <strong>Key Differentiators</strong> — Self-learning, memory optimization, fault tolerance</summary>
|
|
613
777
|
|
|
614
|
-
What makes
|
|
778
|
+
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
779
|
|
|
616
780
|
| | Feature | What It Does | Technical Details |
|
|
617
781
|
|---|---------|--------------|-------------------|
|
|
@@ -631,7 +795,7 @@ What makes Claude-Flow different from other agent frameworks? These 10 capabilit
|
|
|
631
795
|
<details>
|
|
632
796
|
<summary>💰 <strong>Intelligent 3-Tier Model Routing</strong> — Save 75% on API costs, extend Claude Max 2.5x</summary>
|
|
633
797
|
|
|
634
|
-
Not every task needs the most powerful (and expensive) model.
|
|
798
|
+
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
799
|
|
|
636
800
|
**Cost & Usage Benefits:**
|
|
637
801
|
|
|
@@ -657,7 +821,7 @@ Not every task needs the most powerful (and expensive) model. Claude-Flow analyz
|
|
|
657
821
|
<details>
|
|
658
822
|
<summary>📋 <strong>Spec-Driven Development</strong> — Build complete specs, implement without drift</summary>
|
|
659
823
|
|
|
660
|
-
Complex projects fail when implementation drifts from the original plan.
|
|
824
|
+
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
825
|
|
|
662
826
|
**How It Prevents Drift:**
|
|
663
827
|
|
|
@@ -700,6 +864,8 @@ Complex projects fail when implementation drifts from the original plan. Claude-
|
|
|
700
864
|
- **ADR-008**: Vitest testing framework (10x faster than Jest)
|
|
701
865
|
- **ADR-009**: Hybrid Memory Backend (SQLite + HNSW)
|
|
702
866
|
- **ADR-026**: Intelligent 3-tier model routing
|
|
867
|
+
- **ADR-048**: Auto Memory Bridge (Claude Code ↔ AgentDB bidirectional sync)
|
|
868
|
+
- **ADR-049**: Self-Learning Memory with GNN (LearningBridge, MemoryGraph, AgentMemoryScope)
|
|
703
869
|
|
|
704
870
|
</details>
|
|
705
871
|
|
|
@@ -796,28 +962,32 @@ sequenceDiagram
|
|
|
796
962
|
</details>
|
|
797
963
|
|
|
798
964
|
<details>
|
|
799
|
-
<summary>🧠 <strong>Memory Architecture</strong> — How knowledge is stored and retrieved</summary>
|
|
965
|
+
<summary>🧠 <strong>Memory Architecture</strong> — How knowledge is stored, learned, and retrieved</summary>
|
|
800
966
|
|
|
801
967
|
```mermaid
|
|
802
968
|
flowchart LR
|
|
803
969
|
subgraph Input["📥 Input"]
|
|
804
970
|
Query[Query/Pattern]
|
|
971
|
+
Insight[New Insight]
|
|
805
972
|
end
|
|
806
973
|
|
|
807
974
|
subgraph Processing["⚙️ Processing"]
|
|
808
975
|
Embed[ONNX Embeddings]
|
|
809
976
|
Normalize[Normalization]
|
|
977
|
+
Learn[LearningBridge<br/>SONA + ReasoningBank]
|
|
810
978
|
end
|
|
811
979
|
|
|
812
980
|
subgraph Storage["💾 Storage"]
|
|
813
981
|
HNSW[(HNSW Index<br/>150x faster)]
|
|
814
982
|
SQLite[(SQLite Cache)]
|
|
815
983
|
AgentDB[(AgentDB)]
|
|
984
|
+
Graph[MemoryGraph<br/>PageRank + Communities]
|
|
816
985
|
end
|
|
817
986
|
|
|
818
987
|
subgraph Retrieval["🔍 Retrieval"]
|
|
819
988
|
Vector[Vector Search]
|
|
820
989
|
Semantic[Semantic Match]
|
|
990
|
+
Rank[Graph-Aware Ranking]
|
|
821
991
|
Results[Top-K Results]
|
|
822
992
|
end
|
|
823
993
|
|
|
@@ -825,13 +995,26 @@ flowchart LR
|
|
|
825
995
|
Embed --> Normalize
|
|
826
996
|
Normalize --> HNSW
|
|
827
997
|
Normalize --> SQLite
|
|
998
|
+
Insight --> Learn
|
|
999
|
+
Learn --> AgentDB
|
|
1000
|
+
AgentDB --> Graph
|
|
828
1001
|
HNSW --> Vector
|
|
829
1002
|
SQLite --> Vector
|
|
830
1003
|
AgentDB --> Semantic
|
|
831
|
-
Vector -->
|
|
832
|
-
Semantic -->
|
|
1004
|
+
Vector --> Rank
|
|
1005
|
+
Semantic --> Rank
|
|
1006
|
+
Graph --> Rank
|
|
1007
|
+
Rank --> Results
|
|
833
1008
|
```
|
|
834
1009
|
|
|
1010
|
+
**Self-Learning Memory (ADR-049):**
|
|
1011
|
+
| Component | Purpose | Performance |
|
|
1012
|
+
|-----------|---------|-------------|
|
|
1013
|
+
| **LearningBridge** | Connects insights to SONA/ReasoningBank neural pipeline | 0.12 ms/insight |
|
|
1014
|
+
| **MemoryGraph** | PageRank + label propagation knowledge graph | 2.78 ms build (1k nodes) |
|
|
1015
|
+
| **AgentMemoryScope** | 3-scope agent memory (project/local/user) with cross-agent transfer | 1.25 ms transfer |
|
|
1016
|
+
| **AutoMemoryBridge** | Bidirectional sync: Claude Code auto memory files ↔ AgentDB | ADR-048 |
|
|
1017
|
+
|
|
835
1018
|
</details>
|
|
836
1019
|
|
|
837
1020
|
<details>
|
|
@@ -904,18 +1087,18 @@ flowchart TB
|
|
|
904
1087
|
|
|
905
1088
|
## 🔌 Setup & Configuration
|
|
906
1089
|
|
|
907
|
-
Connect
|
|
1090
|
+
Connect Ruflo to your development environment.
|
|
908
1091
|
|
|
909
1092
|
<details>
|
|
910
|
-
<summary>🔌 <strong>MCP Setup</strong> — Connect
|
|
1093
|
+
<summary>🔌 <strong>MCP Setup</strong> — Connect Ruflo to Any AI Environment</summary>
|
|
911
1094
|
|
|
912
|
-
|
|
1095
|
+
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
1096
|
|
|
914
1097
|
### Quick Add Command
|
|
915
1098
|
|
|
916
1099
|
```bash
|
|
917
|
-
# Start
|
|
918
|
-
npx
|
|
1100
|
+
# Start Ruflo MCP server in any environment
|
|
1101
|
+
npx ruflo@v3alpha mcp start
|
|
919
1102
|
```
|
|
920
1103
|
|
|
921
1104
|
<details open>
|
|
@@ -930,9 +1113,9 @@ npx claude-flow@v3alpha mcp start
|
|
|
930
1113
|
```json
|
|
931
1114
|
{
|
|
932
1115
|
"mcpServers": {
|
|
933
|
-
"
|
|
1116
|
+
"ruflo": {
|
|
934
1117
|
"command": "npx",
|
|
935
|
-
"args": ["
|
|
1118
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
936
1119
|
"env": {
|
|
937
1120
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
938
1121
|
}
|
|
@@ -952,12 +1135,12 @@ Restart Claude Desktop after saving. Look for the MCP indicator (hammer icon) in
|
|
|
952
1135
|
|
|
953
1136
|
```bash
|
|
954
1137
|
# Add via CLI (recommended)
|
|
955
|
-
claude mcp add
|
|
1138
|
+
claude mcp add ruflo -- npx ruflo@v3alpha mcp start
|
|
956
1139
|
|
|
957
1140
|
# Or add with environment variables
|
|
958
|
-
claude mcp add
|
|
1141
|
+
claude mcp add ruflo \
|
|
959
1142
|
--env ANTHROPIC_API_KEY=sk-ant-... \
|
|
960
|
-
-- npx
|
|
1143
|
+
-- npx ruflo@v3alpha mcp start
|
|
961
1144
|
|
|
962
1145
|
# Verify installation
|
|
963
1146
|
claude mcp list
|
|
@@ -984,9 +1167,9 @@ Create `.vscode/mcp.json` in your project:
|
|
|
984
1167
|
```json
|
|
985
1168
|
{
|
|
986
1169
|
"mcpServers": {
|
|
987
|
-
"
|
|
1170
|
+
"ruflo": {
|
|
988
1171
|
"command": "npx",
|
|
989
|
-
"args": ["
|
|
1172
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
990
1173
|
"env": {
|
|
991
1174
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
992
1175
|
}
|
|
@@ -1011,9 +1194,9 @@ Create `.cursor/mcp.json` in your project (or global config):
|
|
|
1011
1194
|
```json
|
|
1012
1195
|
{
|
|
1013
1196
|
"mcpServers": {
|
|
1014
|
-
"
|
|
1197
|
+
"ruflo": {
|
|
1015
1198
|
"command": "npx",
|
|
1016
|
-
"args": ["
|
|
1199
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
1017
1200
|
"env": {
|
|
1018
1201
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1019
1202
|
}
|
|
@@ -1038,9 +1221,9 @@ Create `.cursor/mcp.json` in your project (or global config):
|
|
|
1038
1221
|
```json
|
|
1039
1222
|
{
|
|
1040
1223
|
"mcpServers": {
|
|
1041
|
-
"
|
|
1224
|
+
"ruflo": {
|
|
1042
1225
|
"command": "npx",
|
|
1043
|
-
"args": ["
|
|
1226
|
+
"args": ["ruflo@v3alpha", "mcp", "start"],
|
|
1044
1227
|
"env": {
|
|
1045
1228
|
"ANTHROPIC_API_KEY": "sk-ant-..."
|
|
1046
1229
|
}
|
|
@@ -1067,11 +1250,11 @@ Click **Refresh** in the MCP settings to connect. Windsurf supports up to 100 MC
|
|
|
1067
1250
|
|
|
1068
1251
|
**Remote Server Setup:**
|
|
1069
1252
|
|
|
1070
|
-
For ChatGPT, you need a remote MCP server (not local stdio). Deploy
|
|
1253
|
+
For ChatGPT, you need a remote MCP server (not local stdio). Deploy ruflo to a server with HTTP transport:
|
|
1071
1254
|
|
|
1072
1255
|
```bash
|
|
1073
1256
|
# Start with HTTP transport
|
|
1074
|
-
npx
|
|
1257
|
+
npx ruflo@v3alpha mcp start --transport http --port 3000
|
|
1075
1258
|
```
|
|
1076
1259
|
|
|
1077
1260
|
Then add the server URL in ChatGPT Connectors settings.
|
|
@@ -1087,7 +1270,7 @@ Google AI Studio supports MCP natively since May 2025, with managed MCP servers
|
|
|
1087
1270
|
|
|
1088
1271
|
**Using MCP SuperAssistant Extension:**
|
|
1089
1272
|
1. Install [MCP SuperAssistant](https://chrome.google.com/webstore) Chrome extension
|
|
1090
|
-
2. Configure your
|
|
1273
|
+
2. Configure your ruflo MCP server
|
|
1091
1274
|
3. Use with Google AI Studio, Gemini, and other AI platforms
|
|
1092
1275
|
|
|
1093
1276
|
**Native SDK Integration:**
|
|
@@ -1100,9 +1283,9 @@ const ai = new GoogleGenAI({ apiKey: 'YOUR_API_KEY' });
|
|
|
1100
1283
|
// MCP definitions are natively supported in the Gen AI SDK
|
|
1101
1284
|
const mcpConfig = {
|
|
1102
1285
|
servers: [{
|
|
1103
|
-
name: '
|
|
1286
|
+
name: 'ruflo',
|
|
1104
1287
|
command: 'npx',
|
|
1105
|
-
args: ['
|
|
1288
|
+
args: ['ruflo@v3alpha', 'mcp', 'start']
|
|
1106
1289
|
}]
|
|
1107
1290
|
};
|
|
1108
1291
|
```
|
|
@@ -1123,9 +1306,9 @@ JetBrains AI Assistant supports MCP for IntelliJ IDEA, PyCharm, WebStorm, and ot
|
|
|
1123
1306
|
|
|
1124
1307
|
```json
|
|
1125
1308
|
{
|
|
1126
|
-
"name": "
|
|
1309
|
+
"name": "ruflo",
|
|
1127
1310
|
"command": "npx",
|
|
1128
|
-
"args": ["
|
|
1311
|
+
"args": ["ruflo@v3alpha", "mcp", "start"]
|
|
1129
1312
|
}
|
|
1130
1313
|
```
|
|
1131
1314
|
|
|
@@ -1355,19 +1538,89 @@ The Hive Mind system implements queen-led hierarchical coordination where strate
|
|
|
1355
1538
|
|
|
1356
1539
|
**CLI Commands:**
|
|
1357
1540
|
```bash
|
|
1358
|
-
npx
|
|
1359
|
-
npx
|
|
1360
|
-
npx
|
|
1361
|
-
npx
|
|
1362
|
-
npx
|
|
1363
|
-
npx
|
|
1364
|
-
npx
|
|
1541
|
+
npx ruflo hive-mind init # Initialize hive mind
|
|
1542
|
+
npx ruflo hive-mind spawn "Build API" # Spawn with objective
|
|
1543
|
+
npx ruflo hive-mind spawn "..." --queen-type strategic --consensus byzantine
|
|
1544
|
+
npx ruflo hive-mind status # Check status
|
|
1545
|
+
npx ruflo hive-mind metrics # Performance metrics
|
|
1546
|
+
npx ruflo hive-mind memory # Collective memory stats
|
|
1547
|
+
npx ruflo hive-mind sessions # List active sessions
|
|
1365
1548
|
```
|
|
1366
1549
|
|
|
1367
1550
|
**Performance:** 10-20x faster batch spawning, 2.8-4.4x speed improvement, 84.8% SWE-Bench solve rate
|
|
1368
1551
|
|
|
1369
1552
|
</details>
|
|
1370
1553
|
|
|
1554
|
+
<details>
|
|
1555
|
+
<summary>👥 <strong>Agent Teams</strong> — Claude Code multi-instance coordination</summary>
|
|
1556
|
+
|
|
1557
|
+
Native integration with Claude Code's experimental Agent Teams feature for spawning and coordinating multiple Claude instances.
|
|
1558
|
+
|
|
1559
|
+
**Enable Agent Teams:**
|
|
1560
|
+
```bash
|
|
1561
|
+
# Automatically enabled with ruflo init
|
|
1562
|
+
npx ruflo@latest init
|
|
1563
|
+
|
|
1564
|
+
# Or manually add to .claude/settings.json
|
|
1565
|
+
{
|
|
1566
|
+
"env": {
|
|
1567
|
+
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
```
|
|
1571
|
+
|
|
1572
|
+
**Agent Teams Components:**
|
|
1573
|
+
|
|
1574
|
+
| Component | Tool | Purpose |
|
|
1575
|
+
|-----------|------|---------|
|
|
1576
|
+
| **Team Lead** | Main Claude | Coordinates teammates, assigns tasks, reviews results |
|
|
1577
|
+
| **Teammates** | `Task` tool | Sub-agents spawned to work on specific tasks |
|
|
1578
|
+
| **Task List** | `TaskCreate/TaskList/TaskUpdate` | Shared todos visible to all team members |
|
|
1579
|
+
| **Mailbox** | `SendMessage` | Inter-agent messaging for coordination |
|
|
1580
|
+
|
|
1581
|
+
**Quick Start:**
|
|
1582
|
+
```javascript
|
|
1583
|
+
// Create a team
|
|
1584
|
+
TeamCreate({ team_name: "feature-dev", description: "Building feature" })
|
|
1585
|
+
|
|
1586
|
+
// Create shared tasks
|
|
1587
|
+
TaskCreate({ subject: "Design API", description: "..." })
|
|
1588
|
+
TaskCreate({ subject: "Implement endpoints", description: "..." })
|
|
1589
|
+
|
|
1590
|
+
// Spawn teammates (parallel background work)
|
|
1591
|
+
Task({ prompt: "Work on task #1...", subagent_type: "architect",
|
|
1592
|
+
team_name: "feature-dev", name: "architect", run_in_background: true })
|
|
1593
|
+
Task({ prompt: "Work on task #2...", subagent_type: "coder",
|
|
1594
|
+
team_name: "feature-dev", name: "developer", run_in_background: true })
|
|
1595
|
+
|
|
1596
|
+
// Message teammates
|
|
1597
|
+
SendMessage({ type: "message", recipient: "developer",
|
|
1598
|
+
content: "Prioritize auth", summary: "Priority update" })
|
|
1599
|
+
|
|
1600
|
+
// Cleanup when done
|
|
1601
|
+
SendMessage({ type: "shutdown_request", recipient: "developer" })
|
|
1602
|
+
TeamDelete()
|
|
1603
|
+
```
|
|
1604
|
+
|
|
1605
|
+
**Agent Teams Hooks:**
|
|
1606
|
+
|
|
1607
|
+
| Hook | Trigger | Purpose |
|
|
1608
|
+
|------|---------|---------|
|
|
1609
|
+
| `teammate-idle` | Teammate finishes turn | Auto-assign pending tasks |
|
|
1610
|
+
| `task-completed` | Task marked complete | Train patterns, notify lead |
|
|
1611
|
+
|
|
1612
|
+
```bash
|
|
1613
|
+
# Handle idle teammate
|
|
1614
|
+
npx ruflo@latest hooks teammate-idle --auto-assign true
|
|
1615
|
+
|
|
1616
|
+
# Handle task completion
|
|
1617
|
+
npx ruflo@latest hooks task-completed --task-id <id> --train-patterns
|
|
1618
|
+
```
|
|
1619
|
+
|
|
1620
|
+
**Display Modes:** `auto` (default), `in-process`, `tmux` (split-pane)
|
|
1621
|
+
|
|
1622
|
+
</details>
|
|
1623
|
+
|
|
1371
1624
|
<details>
|
|
1372
1625
|
<summary>🔧 <strong>MCP Tools & Integration</strong> — 31+ tools across 7 categories</summary>
|
|
1373
1626
|
|
|
@@ -1380,7 +1633,7 @@ Full MCP server with tools for coordination, monitoring, memory, and GitHub inte
|
|
|
1380
1633
|
| **Memory & Neural** | `memory_usage`, `neural_status`, `neural_train`, `neural_patterns` | Memory operations and learning |
|
|
1381
1634
|
| **GitHub** | `github_swarm`, `repo_analyze`, `pr_enhance`, `issue_triage`, `code_review` | Repository integration |
|
|
1382
1635
|
| **Workers** | `worker/run`, `worker/status`, `worker/alerts`, `worker/history` | Background task management |
|
|
1383
|
-
| **Hooks** | `hooks/pre-*`, `hooks/post-*`, `hooks/route`, `hooks/session-*`, `hooks/
|
|
1636
|
+
| **Hooks** | `hooks/pre-*`, `hooks/post-*`, `hooks/route`, `hooks/session-*`, `hooks/teammate-*`, `hooks/task-*` | 33 lifecycle hooks |
|
|
1384
1637
|
| **Progress** | `progress/check`, `progress/sync`, `progress/summary`, `progress/watch` | V3 implementation tracking |
|
|
1385
1638
|
|
|
1386
1639
|
</details>
|
|
@@ -1438,14 +1691,14 @@ Build custom plugins with the fluent builder API. Create MCP tools, hooks, worke
|
|
|
1438
1691
|
|
|
1439
1692
|
### 📦 Available Optional Plugins
|
|
1440
1693
|
|
|
1441
|
-
Install these optional plugins to extend
|
|
1694
|
+
Install these optional plugins to extend Ruflo capabilities:
|
|
1442
1695
|
|
|
1443
1696
|
| Plugin | Version | Description | Install Command |
|
|
1444
1697
|
|--------|---------|-------------|-----------------|
|
|
1445
1698
|
| **@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
1699
|
| **@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
|
|
1700
|
+
| **@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` |
|
|
1701
|
+
| **@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
1702
|
|
|
1450
1703
|
#### 🏥 Domain-Specific Plugins
|
|
1451
1704
|
|
|
@@ -1515,7 +1768,7 @@ npm install @claude-flow/plugin-agentic-qe
|
|
|
1515
1768
|
npm install @claude-flow/plugin-prime-radiant
|
|
1516
1769
|
|
|
1517
1770
|
# Install Gas Town Bridge plugin (WASM-accelerated orchestration)
|
|
1518
|
-
npx
|
|
1771
|
+
npx ruflo@latest plugins install -n @claude-flow/plugin-gastown-bridge
|
|
1519
1772
|
|
|
1520
1773
|
# Install domain-specific plugins
|
|
1521
1774
|
npm install @claude-flow/plugin-healthcare-clinical
|
|
@@ -1534,7 +1787,7 @@ npm install @claude-flow/plugin-quantum-optimizer
|
|
|
1534
1787
|
npm install @claude-flow/plugin-hyperbolic-reasoning
|
|
1535
1788
|
|
|
1536
1789
|
# List all installed plugins
|
|
1537
|
-
npx
|
|
1790
|
+
npx ruflo plugins list --installed
|
|
1538
1791
|
```
|
|
1539
1792
|
|
|
1540
1793
|
</details>
|
|
@@ -1703,8 +1956,8 @@ Workers run automatically based on context, or dispatch manually via MCP tools.
|
|
|
1703
1956
|
| **TestGaps** | `testgaps` | Test coverage analysis | Code changes without tests |
|
|
1704
1957
|
|
|
1705
1958
|
```bash
|
|
1706
|
-
npx
|
|
1707
|
-
npx
|
|
1959
|
+
npx ruflo@v3alpha worker dispatch --trigger audit --context "./src"
|
|
1960
|
+
npx ruflo@v3alpha worker status
|
|
1708
1961
|
```
|
|
1709
1962
|
|
|
1710
1963
|
</details>
|
|
@@ -1928,7 +2181,7 @@ npx claude-flow@v3alpha worker status
|
|
|
1928
2181
|
| Feature | Description | Performance |
|
|
1929
2182
|
|---------|-------------|-------------|
|
|
1930
2183
|
| **Multi-Provider** | Agentic-Flow (ONNX), OpenAI, Transformers.js, Mock | 4 providers |
|
|
1931
|
-
| **Auto-Install** | `
|
|
2184
|
+
| **Auto-Install** | `ruflo embeddings init` or `createEmbeddingServiceAsync()` | Zero config |
|
|
1932
2185
|
| **75x Faster** | Agentic-flow ONNX SIMD vs Transformers.js | 3ms vs 230ms |
|
|
1933
2186
|
| **Hyperbolic Space** | Poincaré ball model for hierarchical data | Exponential capacity |
|
|
1934
2187
|
| **Dimensions** | 384 to 3072 configurable | Quality vs speed tradeoff |
|
|
@@ -1938,13 +2191,13 @@ npx claude-flow@v3alpha worker status
|
|
|
1938
2191
|
|
|
1939
2192
|
```bash
|
|
1940
2193
|
# Initialize ONNX embeddings with hyperbolic config
|
|
1941
|
-
|
|
2194
|
+
ruflo embeddings init
|
|
1942
2195
|
|
|
1943
2196
|
# Use larger model for higher quality
|
|
1944
|
-
|
|
2197
|
+
ruflo embeddings init --model all-mpnet-base-v2
|
|
1945
2198
|
|
|
1946
2199
|
# Semantic search
|
|
1947
|
-
|
|
2200
|
+
ruflo embeddings search -q "authentication patterns"
|
|
1948
2201
|
```
|
|
1949
2202
|
|
|
1950
2203
|
| Mode | Adaptation | Quality | Memory | Use Case |
|
|
@@ -1981,22 +2234,22 @@ claude-flow embeddings search -q "authentication patterns"
|
|
|
1981
2234
|
|
|
1982
2235
|
```bash
|
|
1983
2236
|
# Initialize RuVector in PostgreSQL
|
|
1984
|
-
|
|
2237
|
+
ruflo ruvector init --database mydb --user admin
|
|
1985
2238
|
|
|
1986
2239
|
# Check connection and schema status
|
|
1987
|
-
|
|
2240
|
+
ruflo ruvector status --verbose
|
|
1988
2241
|
|
|
1989
2242
|
# Run pending migrations
|
|
1990
|
-
|
|
2243
|
+
ruflo ruvector migrate --up
|
|
1991
2244
|
|
|
1992
2245
|
# Performance benchmark
|
|
1993
|
-
|
|
2246
|
+
ruflo ruvector benchmark --iterations 1000
|
|
1994
2247
|
|
|
1995
2248
|
# Optimize indices and vacuum
|
|
1996
|
-
|
|
2249
|
+
ruflo ruvector optimize --analyze
|
|
1997
2250
|
|
|
1998
2251
|
# Backup vector data
|
|
1999
|
-
|
|
2252
|
+
ruflo ruvector backup --output ./backup.sql
|
|
2000
2253
|
```
|
|
2001
2254
|
|
|
2002
2255
|
| Migration | Purpose | Features |
|
|
@@ -2028,13 +2281,13 @@ claude-flow ruvector backup --output ./backup.sql
|
|
|
2028
2281
|
|
|
2029
2282
|
**Quick Commands:**
|
|
2030
2283
|
```bash
|
|
2031
|
-
npx
|
|
2032
|
-
npx
|
|
2033
|
-
npx
|
|
2034
|
-
npx
|
|
2284
|
+
npx ruflo hive-mind init # Initialize
|
|
2285
|
+
npx ruflo hive-mind spawn "Build API" --queen-type tactical # Spawn swarm
|
|
2286
|
+
npx ruflo hive-mind spawn "Research AI" --consensus byzantine --claude
|
|
2287
|
+
npx ruflo hive-mind status # Check status
|
|
2035
2288
|
```
|
|
2036
2289
|
|
|
2037
|
-
**
|
|
2290
|
+
**Ruflo Skill:** `/hive-mind-advanced` — Full hive mind orchestration
|
|
2038
2291
|
|
|
2039
2292
|
**Performance:** 10-20x faster batch spawning, 84.8% SWE-Bench solve rate, 32.3% token reduction
|
|
2040
2293
|
|
|
@@ -2146,7 +2399,7 @@ Real-time development status display for Claude Code integration showing DDD pro
|
|
|
2146
2399
|
|
|
2147
2400
|
**Output Format:**
|
|
2148
2401
|
```
|
|
2149
|
-
▊
|
|
2402
|
+
▊ Ruflo V3 ● ruvnet │ ⎇ v3 │ Opus 4.5
|
|
2150
2403
|
─────────────────────────────────────────────────────
|
|
2151
2404
|
🏗️ DDD Domains [●●●●●] 5/5 ⚡ 1.0x → 2.49x-7.47x
|
|
2152
2405
|
🤖 Swarm ◉ [58/15] 👥 0 🟢 CVE 3/3 💾 22282MB 📂 47% 🧠 10%
|
|
@@ -2155,7 +2408,7 @@ Real-time development status display for Claude Code integration showing DDD pro
|
|
|
2155
2408
|
|
|
2156
2409
|
| Indicator | Description | Values |
|
|
2157
2410
|
|-----------|-------------|--------|
|
|
2158
|
-
| `▊
|
|
2411
|
+
| `▊ Ruflo V3` | Project header | Always shown |
|
|
2159
2412
|
| `● ruvnet` | GitHub user (via `gh` CLI) | Dynamic |
|
|
2160
2413
|
| `⎇ v3` | Current git branch | Dynamic |
|
|
2161
2414
|
| `Opus 4.5` | Claude model name | From Claude Code |
|
|
@@ -2176,19 +2429,19 @@ Real-time development status display for Claude Code integration showing DDD pro
|
|
|
2176
2429
|
**Usage:**
|
|
2177
2430
|
```bash
|
|
2178
2431
|
# Default: Safe multi-line (avoids Claude Code collision zone)
|
|
2179
|
-
npx
|
|
2432
|
+
npx ruflo@v3alpha hooks statusline
|
|
2180
2433
|
|
|
2181
2434
|
# Single-line mode (completely avoids collision)
|
|
2182
|
-
npx
|
|
2435
|
+
npx ruflo@v3alpha hooks statusline --single
|
|
2183
2436
|
|
|
2184
2437
|
# Legacy multi-line (original behavior, may have bleeding)
|
|
2185
|
-
npx
|
|
2438
|
+
npx ruflo@v3alpha hooks statusline --legacy
|
|
2186
2439
|
|
|
2187
2440
|
# JSON output for scripting
|
|
2188
|
-
npx
|
|
2441
|
+
npx ruflo@v3alpha hooks statusline --json
|
|
2189
2442
|
|
|
2190
2443
|
# Compact JSON (single line)
|
|
2191
|
-
npx
|
|
2444
|
+
npx ruflo@v3alpha hooks statusline --compact
|
|
2192
2445
|
```
|
|
2193
2446
|
|
|
2194
2447
|
**Collision Zone Fix (Issue #985):**
|
|
@@ -2210,16 +2463,16 @@ Add to `.claude/settings.json`:
|
|
|
2210
2463
|
{
|
|
2211
2464
|
"statusLine": {
|
|
2212
2465
|
"type": "command",
|
|
2213
|
-
"command": "npx
|
|
2466
|
+
"command": "npx ruflo@v3alpha hooks statusline --single"
|
|
2214
2467
|
}
|
|
2215
2468
|
}
|
|
2216
2469
|
```
|
|
2217
2470
|
|
|
2218
2471
|
**Data Sources:**
|
|
2219
|
-
- `.
|
|
2220
|
-
- `.
|
|
2221
|
-
- `.
|
|
2222
|
-
- `.
|
|
2472
|
+
- `.ruflo/metrics/v3-progress.json` - DDD domain progress
|
|
2473
|
+
- `.ruflo/metrics/swarm-activity.json` - Active agent counts
|
|
2474
|
+
- `.ruflo/security/audit-status.json` - CVE remediation status
|
|
2475
|
+
- `.ruflo/learning/patterns.db` - Intelligence score (pattern count)
|
|
2223
2476
|
- Process detection via `ps aux` - Real-time memory and agent counts
|
|
2224
2477
|
- Git branch via `git branch --show-current`
|
|
2225
2478
|
- GitHub user via `gh api user`
|
|
@@ -2244,19 +2497,19 @@ Cross-platform TypeScript-based daemon service with auto-scheduling:
|
|
|
2244
2497
|
**Commands:**
|
|
2245
2498
|
```bash
|
|
2246
2499
|
# Start daemon (auto-runs on SessionStart hooks)
|
|
2247
|
-
npx
|
|
2500
|
+
npx ruflo@v3alpha daemon start
|
|
2248
2501
|
|
|
2249
2502
|
# Check status with worker history
|
|
2250
|
-
npx
|
|
2503
|
+
npx ruflo@v3alpha daemon status
|
|
2251
2504
|
|
|
2252
2505
|
# Manually trigger a worker
|
|
2253
|
-
npx
|
|
2506
|
+
npx ruflo@v3alpha daemon trigger map
|
|
2254
2507
|
|
|
2255
2508
|
# Enable/disable workers
|
|
2256
|
-
npx
|
|
2509
|
+
npx ruflo@v3alpha daemon enable map audit optimize
|
|
2257
2510
|
|
|
2258
2511
|
# Stop daemon
|
|
2259
|
-
npx
|
|
2512
|
+
npx ruflo@v3alpha daemon stop
|
|
2260
2513
|
```
|
|
2261
2514
|
|
|
2262
2515
|
**Daemon Status Output:**
|
|
@@ -2330,7 +2583,7 @@ Shell-based daemons for monitoring (Linux/macOS only):
|
|
|
2330
2583
|
<details>
|
|
2331
2584
|
<summary>⌨️ <strong>V3 CLI Commands</strong> — 26 commands with 140+ subcommands</summary>
|
|
2332
2585
|
|
|
2333
|
-
Complete command-line interface for all
|
|
2586
|
+
Complete command-line interface for all Ruflo operations.
|
|
2334
2587
|
|
|
2335
2588
|
**Core Commands:**
|
|
2336
2589
|
|
|
@@ -2372,25 +2625,25 @@ Complete command-line interface for all Claude-Flow operations.
|
|
|
2372
2625
|
|
|
2373
2626
|
```bash
|
|
2374
2627
|
# Initialize project with wizard
|
|
2375
|
-
npx
|
|
2628
|
+
npx ruflo@v3alpha init --wizard
|
|
2376
2629
|
|
|
2377
2630
|
# Start daemon with background workers
|
|
2378
|
-
npx
|
|
2631
|
+
npx ruflo@v3alpha daemon start
|
|
2379
2632
|
|
|
2380
2633
|
# Spawn an agent with specific type
|
|
2381
|
-
npx
|
|
2634
|
+
npx ruflo@v3alpha agent spawn -t coder --name my-coder
|
|
2382
2635
|
|
|
2383
2636
|
# Initialize swarm with V3 mode
|
|
2384
|
-
npx
|
|
2637
|
+
npx ruflo@v3alpha swarm init --v3-mode
|
|
2385
2638
|
|
|
2386
2639
|
# Search memory (HNSW-indexed, 150x faster)
|
|
2387
|
-
npx
|
|
2640
|
+
npx ruflo@v3alpha memory search -q "authentication patterns"
|
|
2388
2641
|
|
|
2389
2642
|
# Run security scan
|
|
2390
|
-
npx
|
|
2643
|
+
npx ruflo@v3alpha security scan --depth full
|
|
2391
2644
|
|
|
2392
2645
|
# Performance benchmark
|
|
2393
|
-
npx
|
|
2646
|
+
npx ruflo@v3alpha performance benchmark --suite all
|
|
2394
2647
|
```
|
|
2395
2648
|
|
|
2396
2649
|
</details>
|
|
@@ -2398,7 +2651,7 @@ npx claude-flow@v3alpha performance benchmark --suite all
|
|
|
2398
2651
|
<details>
|
|
2399
2652
|
<summary>🩺 <strong>Doctor Health Checks</strong> — System diagnostics with auto-fix</summary>
|
|
2400
2653
|
|
|
2401
|
-
Run `npx
|
|
2654
|
+
Run `npx ruflo@v3alpha doctor` to diagnose and fix common issues.
|
|
2402
2655
|
|
|
2403
2656
|
**Health Checks Performed:**
|
|
2404
2657
|
|
|
@@ -2419,22 +2672,22 @@ Run `npx claude-flow@v3alpha doctor` to diagnose and fix common issues.
|
|
|
2419
2672
|
|
|
2420
2673
|
```bash
|
|
2421
2674
|
# Run full diagnostics
|
|
2422
|
-
npx
|
|
2675
|
+
npx ruflo@v3alpha doctor
|
|
2423
2676
|
|
|
2424
2677
|
# Run diagnostics with auto-fix
|
|
2425
|
-
npx
|
|
2678
|
+
npx ruflo@v3alpha doctor --fix
|
|
2426
2679
|
|
|
2427
2680
|
# Check specific component
|
|
2428
|
-
npx
|
|
2681
|
+
npx ruflo@v3alpha doctor --component memory
|
|
2429
2682
|
|
|
2430
2683
|
# Verbose output
|
|
2431
|
-
npx
|
|
2684
|
+
npx ruflo@v3alpha doctor --verbose
|
|
2432
2685
|
```
|
|
2433
2686
|
|
|
2434
2687
|
**Output Example:**
|
|
2435
2688
|
|
|
2436
2689
|
```
|
|
2437
|
-
🩺
|
|
2690
|
+
🩺 Ruflo Doctor v3.0.0-alpha
|
|
2438
2691
|
|
|
2439
2692
|
✅ Node.js 20.11.0 (required: 20+)
|
|
2440
2693
|
✅ npm 10.2.4 (required: 9+)
|
|
@@ -2478,16 +2731,16 @@ The embeddings package (v3.0.0-alpha.12) provides high-performance vector embedd
|
|
|
2478
2731
|
|
|
2479
2732
|
```bash
|
|
2480
2733
|
# Initialize embeddings system
|
|
2481
|
-
npx
|
|
2734
|
+
npx ruflo@v3alpha embeddings init
|
|
2482
2735
|
|
|
2483
2736
|
# Generate embedding for text
|
|
2484
|
-
npx
|
|
2737
|
+
npx ruflo@v3alpha embeddings embed "authentication patterns"
|
|
2485
2738
|
|
|
2486
2739
|
# Batch embed multiple texts
|
|
2487
|
-
npx
|
|
2740
|
+
npx ruflo@v3alpha embeddings batch --file texts.txt
|
|
2488
2741
|
|
|
2489
2742
|
# Search with semantic similarity
|
|
2490
|
-
npx
|
|
2743
|
+
npx ruflo@v3alpha embeddings search "login flow" --top-k 5
|
|
2491
2744
|
```
|
|
2492
2745
|
|
|
2493
2746
|
**Programmatic:**
|
|
@@ -2524,59 +2777,173 @@ Real-world scenarios and pre-built workflows for common tasks.
|
|
|
2524
2777
|
|
|
2525
2778
|
| Scenario | What It Solves | How To Do It |
|
|
2526
2779
|
|----------|----------------|--------------|
|
|
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
|
|
2780
|
+
| **Code Review** | Get thorough reviews with security, performance, and style checks | `npx ruflo@v3alpha --agent reviewer --task "Review PR #123"` |
|
|
2781
|
+
| **Test Generation** | Auto-generate unit, integration, and e2e tests for existing code | `npx ruflo@v3alpha --agent tester --task "Write tests for auth module"` |
|
|
2782
|
+
| **Refactoring** | Safely restructure code while maintaining behavior | `npx ruflo@v3alpha --agent coder --task "Refactor user service to use repository pattern"` |
|
|
2783
|
+
| **Bug Fixing** | Diagnose and fix bugs with full context analysis | `npx ruflo@v3alpha --agent coder --task "Fix race condition in checkout flow"` |
|
|
2531
2784
|
|
|
2532
2785
|
### 🔒 Security & Compliance
|
|
2533
2786
|
|
|
2534
2787
|
| Scenario | What It Solves | How To Do It |
|
|
2535
2788
|
|----------|----------------|--------------|
|
|
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
|
|
2789
|
+
| **Security Audit** | Find vulnerabilities before attackers do | `npx ruflo@v3alpha --agent security-architect --task "Audit for OWASP Top 10"` |
|
|
2790
|
+
| **Dependency Scan** | Identify vulnerable packages and suggest upgrades | `npx ruflo@v3alpha security scan --depth full` |
|
|
2791
|
+
| **Compliance Check** | Ensure code meets security standards | `npx ruflo@v3alpha --agent security-architect --task "Check PCI-DSS compliance"` |
|
|
2539
2792
|
|
|
2540
2793
|
### 🐝 Multi-Agent Swarms
|
|
2541
2794
|
|
|
2542
2795
|
| Scenario | What It Solves | How To Do It |
|
|
2543
2796
|
|----------|----------------|--------------|
|
|
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
|
|
2797
|
+
| **Feature Development** | Coordinate multiple agents on complex features | `npx ruflo@v3alpha swarm init --topology hierarchical && npx ruflo@v3alpha task orchestrate "Build user dashboard"` |
|
|
2798
|
+
| **Large Refactors** | Parallel refactoring across many files without conflicts | `npx ruflo@v3alpha swarm init --topology mesh --max-agents 8` |
|
|
2799
|
+
| **Codebase Migration** | Migrate frameworks, languages, or patterns systematically | `npx ruflo@v3alpha task orchestrate "Migrate from Express to Fastify" --strategy adaptive` |
|
|
2547
2800
|
|
|
2548
2801
|
### 📊 Performance & Optimization
|
|
2549
2802
|
|
|
2550
2803
|
| Scenario | What It Solves | How To Do It |
|
|
2551
2804
|
|----------|----------------|--------------|
|
|
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
|
|
2805
|
+
| **Performance Profiling** | Find and fix bottlenecks in your application | `npx ruflo@v3alpha --agent perf-analyzer --task "Profile API endpoints"` |
|
|
2806
|
+
| **Query Optimization** | Speed up slow database queries | `npx ruflo@v3alpha hooks route "Optimize database queries"` |
|
|
2807
|
+
| **Memory Analysis** | Reduce memory usage and fix leaks | `npx ruflo@v3alpha --agent perf-analyzer --task "Analyze memory usage patterns"` |
|
|
2555
2808
|
|
|
2556
2809
|
### 🔄 GitHub & DevOps
|
|
2557
2810
|
|
|
2558
2811
|
| Scenario | What It Solves | How To Do It |
|
|
2559
2812
|
|----------|----------------|--------------|
|
|
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
|
|
2813
|
+
| **PR Management** | Review, approve, and merge PRs efficiently | `npx ruflo@v3alpha --agent pr-manager --task "Review open PRs"` |
|
|
2814
|
+
| **Issue Triage** | Categorize, prioritize, and assign issues automatically | `npx ruflo@v3alpha --agent issue-tracker --task "Triage new issues"` |
|
|
2815
|
+
| **Release Management** | Coordinate releases with changelogs and versioning | `npx ruflo@v3alpha --agent release-manager --task "Prepare v2.0 release"` |
|
|
2816
|
+
| **CI/CD Optimization** | Speed up pipelines and reduce flaky tests | `npx ruflo@v3alpha --agent cicd-engineer --task "Optimize GitHub Actions workflow"` |
|
|
2564
2817
|
|
|
2565
2818
|
### 📋 Spec-Driven Development
|
|
2566
2819
|
|
|
2567
2820
|
| Scenario | What It Solves | How To Do It |
|
|
2568
2821
|
|----------|----------------|--------------|
|
|
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
|
|
2822
|
+
| **Generate Specs** | Create complete specifications before coding | `npx ruflo@v3alpha --agent architect --task "Create ADR for authentication system"` |
|
|
2823
|
+
| **Validate Implementation** | Ensure code matches specifications | `npx ruflo@v3alpha hooks progress --detailed` |
|
|
2824
|
+
| **Track Compliance** | Monitor spec adherence across the team | `npx ruflo@v3alpha progress sync` |
|
|
2572
2825
|
|
|
2573
2826
|
### 🧠 Learning & Intelligence
|
|
2574
2827
|
|
|
2575
2828
|
| Scenario | What It Solves | How To Do It |
|
|
2576
2829
|
|----------|----------------|--------------|
|
|
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
|
|
2830
|
+
| **Bootstrap Intelligence** | Train the system on your codebase patterns | `npx ruflo@v3alpha hooks pretrain --depth deep` |
|
|
2831
|
+
| **Optimize Routing** | Improve task-to-agent matching over time | `npx ruflo@v3alpha hooks route "<task>" --include-explanation` |
|
|
2832
|
+
| **Transfer Learning** | Apply patterns learned from other projects | `npx ruflo@v3alpha hooks transfer <sourceProject>` |
|
|
2833
|
+
|
|
2834
|
+
</details>
|
|
2835
|
+
|
|
2836
|
+
---
|
|
2837
|
+
|
|
2838
|
+
## 🧠 Infinite Context & Memory Optimization
|
|
2839
|
+
|
|
2840
|
+
Ruflo eliminates Claude Code's context window ceiling with a real-time memory management system that archives, optimizes, and restores conversation context automatically.
|
|
2841
|
+
|
|
2842
|
+
<details>
|
|
2843
|
+
<summary>♾️ <strong>Context Autopilot</strong> — Never lose context to compaction again</summary>
|
|
2844
|
+
|
|
2845
|
+
### The Problem
|
|
2846
|
+
|
|
2847
|
+
Claude Code has a finite context window (~200K tokens). When full, it **compacts** — summarizing the conversation and discarding details like exact file paths, tool outputs, decision reasoning, and code snippets. This creates a "context cliff" where Claude loses the ability to reference earlier work.
|
|
2848
|
+
|
|
2849
|
+
### The Solution: Context Autopilot (ADR-051)
|
|
2850
|
+
|
|
2851
|
+
Ruflo intercepts the compaction lifecycle with three hooks that make context loss invisible:
|
|
2852
|
+
|
|
2853
|
+
```
|
|
2854
|
+
Every Prompt Context Full After Compact
|
|
2855
|
+
│ │ │
|
|
2856
|
+
▼ ▼ ▼
|
|
2857
|
+
UserPromptSubmit PreCompact SessionStart
|
|
2858
|
+
│ │ │
|
|
2859
|
+
Archive turns Archive + BLOCK Restore from archive
|
|
2860
|
+
to SQLite auto-compaction via additionalContext
|
|
2861
|
+
(incremental) (exit code 2) (importance-ranked)
|
|
2862
|
+
│ │ │
|
|
2863
|
+
▼ ▼ ▼
|
|
2864
|
+
Track tokens Manual /compact Seamless continuation
|
|
2865
|
+
Report % used still allowed with full history
|
|
2866
|
+
```
|
|
2867
|
+
|
|
2868
|
+
### How Memory is Optimized
|
|
2869
|
+
|
|
2870
|
+
| Layer | What It Does | When |
|
|
2871
|
+
|-------|-------------|------|
|
|
2872
|
+
| **Proactive Archiving** | Every user prompt archives new turns to SQLite with SHA-256 dedup | Every prompt |
|
|
2873
|
+
| **Token Tracking** | Reads actual API `usage` data (input + cache tokens) for accurate % | Every prompt |
|
|
2874
|
+
| **Compaction Blocking** | PreCompact hook returns exit code 2 to cancel auto-compaction | When context fills |
|
|
2875
|
+
| **Manual Compact** | `/compact` is allowed — archives first, resets autopilot, then compresses | On user request |
|
|
2876
|
+
| **Importance Ranking** | Entries scored by `recency × frequency × richness` for smart retrieval | On restore |
|
|
2877
|
+
| **Access Tracking** | Restored entries get access_count++ creating a relevance feedback loop | On restore |
|
|
2878
|
+
| **Auto-Pruning** | Never-accessed entries older than 30 days are automatically removed | On PreCompact |
|
|
2879
|
+
| **Content Compaction** | Old session entries trimmed to summaries, reducing archive storage | Manual or scheduled |
|
|
2880
|
+
| **RuVector Sync** | SQLite entries auto-replicated to PostgreSQL when configured | On PreCompact |
|
|
2881
|
+
|
|
2882
|
+
### Optimization Thresholds
|
|
2883
|
+
|
|
2884
|
+
| Zone | Threshold | Statusline | Action |
|
|
2885
|
+
|------|-----------|-----------|--------|
|
|
2886
|
+
| OK | <70% | `🛡️ 43% 86.7K ⊘` (green) | Normal operation, track growth trend |
|
|
2887
|
+
| Warning | 70-85% | `🛡️ 72% 144K ⊘` (yellow) | Flag approaching limit, archive aggressively |
|
|
2888
|
+
| Optimize | 85%+ | `🛡️ 88% 176K ⟳2` (red) | Prune stale entries, keep responses concise |
|
|
2889
|
+
|
|
2890
|
+
### Real-Time Statusline
|
|
2891
|
+
|
|
2892
|
+
The statusline shows live context metrics read from `autopilot-state.json`:
|
|
2893
|
+
|
|
2894
|
+
```
|
|
2895
|
+
🛡️ 45% 89.2K ⊘ 🧠 86%
|
|
2896
|
+
│ │ │ │ │ │
|
|
2897
|
+
│ │ │ │ │ └─ Intelligence score (learning.json + patterns + archive)
|
|
2898
|
+
│ │ │ │ └──── Intelligence indicator
|
|
2899
|
+
│ │ │ └───────── No prune cycles (⊘) or prune count (⟳N)
|
|
2900
|
+
│ │ └─────────────── Token count (actual API usage)
|
|
2901
|
+
│ └─────────────────── Context percentage used
|
|
2902
|
+
└──────────────────────── Autopilot active (shield icon)
|
|
2903
|
+
```
|
|
2904
|
+
|
|
2905
|
+
### Storage Tiers
|
|
2906
|
+
|
|
2907
|
+
| Tier | Backend | Storage | Features |
|
|
2908
|
+
|------|---------|---------|----------|
|
|
2909
|
+
| 1 | **SQLite** (default) | `.claude-flow/data/transcript-archive.db` | WAL mode, indexed queries, ACID, importance ranking |
|
|
2910
|
+
| 2 | **RuVector PostgreSQL** | Configurable remote | TB-scale, pgvector embeddings, GNN search |
|
|
2911
|
+
| 3 | **AgentDB + HNSW** | In-memory + persist | 150x-12,500x faster semantic search |
|
|
2912
|
+
| 4 | **JSON** (fallback) | `.claude-flow/data/transcript-archive.json` | Zero dependencies, always works |
|
|
2913
|
+
|
|
2914
|
+
### Configuration
|
|
2915
|
+
|
|
2916
|
+
```bash
|
|
2917
|
+
# Context Autopilot (all have sensible defaults)
|
|
2918
|
+
CLAUDE_FLOW_CONTEXT_AUTOPILOT=true # Enable/disable autopilot (default: true)
|
|
2919
|
+
CLAUDE_FLOW_CONTEXT_WINDOW=200000 # Context window size in tokens
|
|
2920
|
+
CLAUDE_FLOW_AUTOPILOT_WARN=0.70 # Warning threshold (70%)
|
|
2921
|
+
CLAUDE_FLOW_AUTOPILOT_PRUNE=0.85 # Optimization threshold (85%)
|
|
2922
|
+
CLAUDE_FLOW_COMPACT_RESTORE_BUDGET=4000 # Max chars restored after compaction
|
|
2923
|
+
CLAUDE_FLOW_RETENTION_DAYS=30 # Auto-prune never-accessed entries
|
|
2924
|
+
CLAUDE_FLOW_AUTO_OPTIMIZE=true # Importance ranking + pruning + sync
|
|
2925
|
+
```
|
|
2926
|
+
|
|
2927
|
+
### Commands
|
|
2928
|
+
|
|
2929
|
+
```bash
|
|
2930
|
+
# Check archive status and autopilot state
|
|
2931
|
+
node .claude/helpers/context-persistence-hook.mjs status
|
|
2932
|
+
|
|
2933
|
+
# Manual compact (archives first, then allows Claude Code to compress)
|
|
2934
|
+
# Use /compact in Claude Code — autopilot allows manual, blocks auto
|
|
2935
|
+
|
|
2936
|
+
# Query archive directly
|
|
2937
|
+
sqlite3 .claude-flow/data/transcript-archive.db \
|
|
2938
|
+
"SELECT COUNT(*), SUM(LENGTH(content)) FROM transcript_entries;"
|
|
2939
|
+
```
|
|
2940
|
+
|
|
2941
|
+
### Architecture Reference
|
|
2942
|
+
|
|
2943
|
+
- **ADR-051**: Infinite Context via Compaction-to-Memory Bridge
|
|
2944
|
+
- **ADR-052**: Statusline Observability System
|
|
2945
|
+
- **Implementation**: `.claude/helpers/context-persistence-hook.mjs` (~1560 lines)
|
|
2946
|
+
- **Settings**: `.claude/settings.json` (PreCompact, SessionStart, UserPromptSubmit hooks)
|
|
2580
2947
|
|
|
2581
2948
|
</details>
|
|
2582
2949
|
|
|
@@ -2634,7 +3001,7 @@ When hooks run, they emit signals that guide routing decisions. Watch for these
|
|
|
2634
3001
|
|
|
2635
3002
|
**Example Hook Output:**
|
|
2636
3003
|
```bash
|
|
2637
|
-
$ npx
|
|
3004
|
+
$ npx ruflo@v3alpha hooks pre-task --description "convert var to const in utils.ts"
|
|
2638
3005
|
|
|
2639
3006
|
[AGENT_BOOSTER_AVAILABLE] Intent: var-to-const
|
|
2640
3007
|
Recommendation: Use Edit tool directly
|
|
@@ -2642,6 +3009,101 @@ Performance: <1ms (352x faster than LLM)
|
|
|
2642
3009
|
Cost: $0
|
|
2643
3010
|
```
|
|
2644
3011
|
|
|
3012
|
+
### Intelligence Loop (ADR-050)
|
|
3013
|
+
|
|
3014
|
+
The intelligence loop wires PageRank-ranked memory into the hook system. Every session builds a knowledge graph that improves over time:
|
|
3015
|
+
|
|
3016
|
+
```
|
|
3017
|
+
SessionStart:
|
|
3018
|
+
session-restore → intelligence.init()
|
|
3019
|
+
→ Read MEMORY.md / auto-memory-store.json
|
|
3020
|
+
→ Build graph (nodes + similarity/temporal edges)
|
|
3021
|
+
→ Compute PageRank
|
|
3022
|
+
→ "[INTELLIGENCE] Loaded 13 patterns, 12 edges"
|
|
3023
|
+
|
|
3024
|
+
UserPrompt:
|
|
3025
|
+
route → intelligence.getContext(prompt)
|
|
3026
|
+
→ Jaccard-match prompt against pre-ranked entries
|
|
3027
|
+
→ Inject top-5 patterns into Claude's context:
|
|
3028
|
+
|
|
3029
|
+
[INTELLIGENCE] Relevant patterns for this task:
|
|
3030
|
+
* (0.95) HNSW gives 150x-12,500x speedup [rank #1, 12x accessed]
|
|
3031
|
+
* (0.88) London School TDD preferred [rank #3, 8x accessed]
|
|
3032
|
+
|
|
3033
|
+
PostEdit:
|
|
3034
|
+
post-edit → intelligence.recordEdit(file)
|
|
3035
|
+
→ Append to pending-insights.jsonl (<2ms)
|
|
3036
|
+
|
|
3037
|
+
SessionEnd:
|
|
3038
|
+
session-end → intelligence.consolidate()
|
|
3039
|
+
→ Process pending insights (3+ edits → new entry)
|
|
3040
|
+
→ Confidence boost for accessed patterns (+0.03)
|
|
3041
|
+
→ Confidence decay for unused patterns (-0.005/day)
|
|
3042
|
+
→ Recompute PageRank, rebuild edges
|
|
3043
|
+
→ Save snapshot for trend tracking
|
|
3044
|
+
```
|
|
3045
|
+
|
|
3046
|
+
**Measuring improvement:**
|
|
3047
|
+
|
|
3048
|
+
```bash
|
|
3049
|
+
# Human-readable diagnostics
|
|
3050
|
+
node .claude/helpers/hook-handler.cjs stats
|
|
3051
|
+
|
|
3052
|
+
# JSON output for scripting
|
|
3053
|
+
node .claude/helpers/hook-handler.cjs stats --json
|
|
3054
|
+
|
|
3055
|
+
# Or via intelligence.cjs directly
|
|
3056
|
+
node .claude/helpers/intelligence.cjs stats
|
|
3057
|
+
```
|
|
3058
|
+
|
|
3059
|
+
The stats command shows:
|
|
3060
|
+
|
|
3061
|
+
| Section | What It Tells You |
|
|
3062
|
+
|---------|-------------------|
|
|
3063
|
+
| **Graph** | Node/edge count, density % |
|
|
3064
|
+
| **Confidence** | Min/max/mean/median across all patterns |
|
|
3065
|
+
| **Access** | Total accesses, patterns used vs never accessed |
|
|
3066
|
+
| **PageRank** | Sum (~1.0), highest-ranked node |
|
|
3067
|
+
| **Top Patterns** | Top 10 by composite score with access counts |
|
|
3068
|
+
| **Last Delta** | Changes since previous session (confidence shift, access delta) |
|
|
3069
|
+
| **Trend** | Over all sessions: IMPROVING / DECLINING / STABLE |
|
|
3070
|
+
|
|
3071
|
+
**Example output:**
|
|
3072
|
+
```
|
|
3073
|
+
+--------------------------------------------------------------+
|
|
3074
|
+
| Intelligence Diagnostics (ADR-050) |
|
|
3075
|
+
+--------------------------------------------------------------+
|
|
3076
|
+
|
|
3077
|
+
Graph
|
|
3078
|
+
Nodes: 9
|
|
3079
|
+
Edges: 8 (7 temporal, 1 similar)
|
|
3080
|
+
Density: 22.2%
|
|
3081
|
+
|
|
3082
|
+
Confidence
|
|
3083
|
+
Min: 0.490 Max: 0.600
|
|
3084
|
+
Mean: 0.556 Median: 0.580
|
|
3085
|
+
|
|
3086
|
+
Access
|
|
3087
|
+
Total accesses: 11
|
|
3088
|
+
Patterns used: 6/9
|
|
3089
|
+
Never accessed: 3
|
|
3090
|
+
|
|
3091
|
+
Top Patterns (by composite score)
|
|
3092
|
+
#1 HNSW gives 150x-12,500x speedup
|
|
3093
|
+
conf=0.600 pr=0.2099 score=0.3659 accessed=2x
|
|
3094
|
+
#2 London School TDD preferred
|
|
3095
|
+
conf=0.600 pr=0.1995 score=0.3597 accessed=2x
|
|
3096
|
+
|
|
3097
|
+
Last Delta (5m ago)
|
|
3098
|
+
Confidence: +0.0300
|
|
3099
|
+
Accesses: +6
|
|
3100
|
+
|
|
3101
|
+
Trend (3 snapshots)
|
|
3102
|
+
Confidence drift: +0.0422
|
|
3103
|
+
Direction: IMPROVING
|
|
3104
|
+
+--------------------------------------------------------------+
|
|
3105
|
+
```
|
|
3106
|
+
|
|
2645
3107
|
### All 27 Hooks by Category
|
|
2646
3108
|
|
|
2647
3109
|
#### 🔧 Tool Lifecycle Hooks (6 hooks)
|
|
@@ -2657,8 +3119,8 @@ Cost: $0
|
|
|
2657
3119
|
|
|
2658
3120
|
```bash
|
|
2659
3121
|
# Example: Edit with pattern learning
|
|
2660
|
-
npx
|
|
2661
|
-
npx
|
|
3122
|
+
npx ruflo@v3alpha hooks pre-edit ./src/auth.ts
|
|
3123
|
+
npx ruflo@v3alpha hooks post-edit ./src/auth.ts --success true --train-patterns
|
|
2662
3124
|
```
|
|
2663
3125
|
|
|
2664
3126
|
#### 🧠 Intelligence & Routing Hooks (8 hooks)
|
|
@@ -2676,10 +3138,10 @@ npx claude-flow@v3alpha hooks post-edit ./src/auth.ts --success true --train-pat
|
|
|
2676
3138
|
|
|
2677
3139
|
```bash
|
|
2678
3140
|
# Route a task with explanation
|
|
2679
|
-
npx
|
|
3141
|
+
npx ruflo@v3alpha hooks route "refactor authentication to use JWT" --include-explanation
|
|
2680
3142
|
|
|
2681
3143
|
# Bootstrap intelligence from your codebase
|
|
2682
|
-
npx
|
|
3144
|
+
npx ruflo@v3alpha hooks pretrain --depth deep --model-type moe
|
|
2683
3145
|
```
|
|
2684
3146
|
|
|
2685
3147
|
#### 📅 Session Management Hooks (4 hooks)
|
|
@@ -2693,10 +3155,10 @@ npx claude-flow@v3alpha hooks pretrain --depth deep --model-type moe
|
|
|
2693
3155
|
|
|
2694
3156
|
```bash
|
|
2695
3157
|
# Start session with auto-daemon
|
|
2696
|
-
npx
|
|
3158
|
+
npx ruflo@v3alpha hooks session-start --session-id "feature-auth" --start-daemon
|
|
2697
3159
|
|
|
2698
3160
|
# End session and export learnings
|
|
2699
|
-
npx
|
|
3161
|
+
npx ruflo@v3alpha hooks session-end --export-metrics --persist-patterns
|
|
2700
3162
|
```
|
|
2701
3163
|
|
|
2702
3164
|
#### 🤖 Intelligence System Hooks (9 hooks)
|
|
@@ -2710,18 +3172,22 @@ npx claude-flow@v3alpha hooks session-end --export-metrics --persist-patterns
|
|
|
2710
3172
|
| `trajectory-end` | RL | Finish recording, trigger learning |
|
|
2711
3173
|
| `pattern-store` | Memory | Store a pattern with HNSW indexing |
|
|
2712
3174
|
| `pattern-search` | Memory | Find similar patterns (150x faster) |
|
|
2713
|
-
| `stats` | Analytics |
|
|
3175
|
+
| `stats` | Analytics | Intelligence diagnostics, confidence trends, improvement tracking |
|
|
2714
3176
|
| `attention` | Focus | Compute attention-weighted similarity |
|
|
2715
3177
|
|
|
2716
3178
|
```bash
|
|
2717
3179
|
# Start trajectory for complex task
|
|
2718
|
-
npx
|
|
3180
|
+
npx ruflo@v3alpha hooks intelligence trajectory-start --task "implement OAuth2"
|
|
2719
3181
|
|
|
2720
3182
|
# Record successful action
|
|
2721
|
-
npx
|
|
3183
|
+
npx ruflo@v3alpha hooks intelligence trajectory-step --action "created token service" --quality 0.9
|
|
2722
3184
|
|
|
2723
3185
|
# End trajectory and trigger learning
|
|
2724
|
-
npx
|
|
3186
|
+
npx ruflo@v3alpha hooks intelligence trajectory-end --success true
|
|
3187
|
+
|
|
3188
|
+
# View intelligence diagnostics and improvement trends (ADR-050)
|
|
3189
|
+
node .claude/helpers/hook-handler.cjs stats
|
|
3190
|
+
node .claude/helpers/intelligence.cjs stats --json
|
|
2725
3191
|
```
|
|
2726
3192
|
|
|
2727
3193
|
### 12 Background Workers (Auto-Triggered)
|
|
@@ -2745,13 +3211,13 @@ Workers run automatically based on context, or dispatch manually.
|
|
|
2745
3211
|
|
|
2746
3212
|
```bash
|
|
2747
3213
|
# List all workers
|
|
2748
|
-
npx
|
|
3214
|
+
npx ruflo@v3alpha hooks worker list
|
|
2749
3215
|
|
|
2750
3216
|
# Manually dispatch security audit
|
|
2751
|
-
npx
|
|
3217
|
+
npx ruflo@v3alpha hooks worker dispatch --trigger audit --context "./src/auth"
|
|
2752
3218
|
|
|
2753
3219
|
# Check worker status
|
|
2754
|
-
npx
|
|
3220
|
+
npx ruflo@v3alpha hooks worker status
|
|
2755
3221
|
```
|
|
2756
3222
|
|
|
2757
3223
|
### Model Routing Hooks (3 hooks)
|
|
@@ -2766,10 +3232,10 @@ Automatically selects haiku/sonnet/opus based on task complexity.
|
|
|
2766
3232
|
|
|
2767
3233
|
```bash
|
|
2768
3234
|
# Get model recommendation
|
|
2769
|
-
npx
|
|
3235
|
+
npx ruflo@v3alpha hooks model-route --task "fix typo in README"
|
|
2770
3236
|
# → Recommends: haiku (simple task, low complexity)
|
|
2771
3237
|
|
|
2772
|
-
npx
|
|
3238
|
+
npx ruflo@v3alpha hooks model-route --task "design distributed consensus system"
|
|
2773
3239
|
# → Recommends: opus (complex architecture, high reasoning)
|
|
2774
3240
|
```
|
|
2775
3241
|
|
|
@@ -2789,22 +3255,27 @@ npx claude-flow@v3alpha hooks model-route --task "design distributed consensus s
|
|
|
2789
3255
|
# MOST COMMON HOOKS
|
|
2790
3256
|
# ══════════════════════════════════════════════════════════════════
|
|
2791
3257
|
|
|
2792
|
-
# Route task to best agent
|
|
2793
|
-
npx
|
|
3258
|
+
# Route task to best agent (with intelligence context injection)
|
|
3259
|
+
npx ruflo@v3alpha hooks route "<task>" --include-explanation
|
|
2794
3260
|
|
|
2795
3261
|
# Start/end session with learning
|
|
2796
|
-
npx
|
|
2797
|
-
npx
|
|
3262
|
+
npx ruflo@v3alpha hooks session-start --start-daemon
|
|
3263
|
+
npx ruflo@v3alpha hooks session-end --persist-patterns
|
|
2798
3264
|
|
|
2799
3265
|
# View what the system has learned
|
|
2800
|
-
npx
|
|
2801
|
-
npx
|
|
3266
|
+
npx ruflo@v3alpha hooks metrics
|
|
3267
|
+
npx ruflo@v3alpha hooks intelligence stats
|
|
3268
|
+
|
|
3269
|
+
# Intelligence diagnostics — see if intelligence is improving
|
|
3270
|
+
node .claude/helpers/hook-handler.cjs stats # Human-readable
|
|
3271
|
+
node .claude/helpers/hook-handler.cjs stats --json # JSON for scripting
|
|
3272
|
+
node .claude/helpers/intelligence.cjs stats # Direct access
|
|
2802
3273
|
|
|
2803
3274
|
# Bootstrap on new project
|
|
2804
|
-
npx
|
|
3275
|
+
npx ruflo@v3alpha hooks pretrain --depth deep
|
|
2805
3276
|
|
|
2806
3277
|
# Dispatch background worker
|
|
2807
|
-
npx
|
|
3278
|
+
npx ruflo@v3alpha hooks worker dispatch --trigger audit
|
|
2808
3279
|
```
|
|
2809
3280
|
|
|
2810
3281
|
</details>
|
|
@@ -2830,38 +3301,38 @@ Share learned patterns across projects, teams, and the community via the decentr
|
|
|
2830
3301
|
|
|
2831
3302
|
```bash
|
|
2832
3303
|
# Export learned patterns to file
|
|
2833
|
-
npx
|
|
3304
|
+
npx ruflo@v3alpha memory export --format json --output ./patterns.json
|
|
2834
3305
|
|
|
2835
3306
|
# Export specific namespace
|
|
2836
|
-
npx
|
|
3307
|
+
npx ruflo@v3alpha memory export --namespace "security" --output ./security-patterns.json
|
|
2837
3308
|
|
|
2838
3309
|
# Export with embeddings (larger file, faster import)
|
|
2839
|
-
npx
|
|
3310
|
+
npx ruflo@v3alpha memory export --include-embeddings --output ./full-export.json
|
|
2840
3311
|
|
|
2841
3312
|
# Export agent configurations
|
|
2842
|
-
npx
|
|
3313
|
+
npx ruflo@v3alpha config export --scope project --output ./agent-configs.json
|
|
2843
3314
|
|
|
2844
3315
|
# Export session state
|
|
2845
|
-
npx
|
|
3316
|
+
npx ruflo@v3alpha session export --session-id "my-session" --output ./session.json
|
|
2846
3317
|
```
|
|
2847
3318
|
|
|
2848
3319
|
### Import Commands
|
|
2849
3320
|
|
|
2850
3321
|
```bash
|
|
2851
3322
|
# Import patterns from file
|
|
2852
|
-
npx
|
|
3323
|
+
npx ruflo@v3alpha memory import --input ./patterns.json
|
|
2853
3324
|
|
|
2854
3325
|
# Import and merge with existing (don't overwrite)
|
|
2855
|
-
npx
|
|
3326
|
+
npx ruflo@v3alpha memory import --input ./patterns.json --merge
|
|
2856
3327
|
|
|
2857
3328
|
# Import from another project
|
|
2858
|
-
npx
|
|
3329
|
+
npx ruflo@v3alpha hooks transfer --source-path ../other-project
|
|
2859
3330
|
|
|
2860
3331
|
# Import agent configurations
|
|
2861
|
-
npx
|
|
3332
|
+
npx ruflo@v3alpha config import --input ./agent-configs.json --scope project
|
|
2862
3333
|
|
|
2863
3334
|
# Restore session
|
|
2864
|
-
npx
|
|
3335
|
+
npx ruflo@v3alpha session restore --session-id "my-session"
|
|
2865
3336
|
```
|
|
2866
3337
|
|
|
2867
3338
|
### Pattern Store (IPFS Marketplace)
|
|
@@ -2879,13 +3350,13 @@ Decentralized pattern marketplace for sharing and discovering community patterns
|
|
|
2879
3350
|
|
|
2880
3351
|
```bash
|
|
2881
3352
|
# Search for authentication patterns
|
|
2882
|
-
npx
|
|
3353
|
+
npx ruflo@v3alpha transfer-store search --query "authentication" --min-rating 4.0
|
|
2883
3354
|
|
|
2884
3355
|
# Download a pattern
|
|
2885
|
-
npx
|
|
3356
|
+
npx ruflo@v3alpha transfer-store download --id "auth-jwt-patterns-v2" --verify
|
|
2886
3357
|
|
|
2887
3358
|
# Publish your patterns
|
|
2888
|
-
npx
|
|
3359
|
+
npx ruflo@v3alpha transfer-store publish --input ./my-patterns.json --category "security"
|
|
2889
3360
|
```
|
|
2890
3361
|
|
|
2891
3362
|
### Plugin Store
|
|
@@ -2903,22 +3374,22 @@ Discover and install community plugins from the **live IPFS registry** with 19 o
|
|
|
2903
3374
|
|
|
2904
3375
|
```bash
|
|
2905
3376
|
# List plugins with live ratings from Cloud Function
|
|
2906
|
-
npx
|
|
3377
|
+
npx ruflo@v3alpha plugins list
|
|
2907
3378
|
|
|
2908
3379
|
# Filter by type
|
|
2909
|
-
npx
|
|
3380
|
+
npx ruflo@v3alpha plugins list --type integration
|
|
2910
3381
|
|
|
2911
3382
|
# Rate a plugin
|
|
2912
|
-
npx
|
|
3383
|
+
npx ruflo@v3alpha plugins rate --name @claude-flow/embeddings --rating 5
|
|
2913
3384
|
|
|
2914
3385
|
# Search for MCP tool plugins
|
|
2915
|
-
npx
|
|
3386
|
+
npx ruflo@v3alpha transfer plugin-search --type "mcp-tool" --verified
|
|
2916
3387
|
|
|
2917
3388
|
# Get plugin info
|
|
2918
|
-
npx
|
|
3389
|
+
npx ruflo@v3alpha transfer plugin-info --name "semantic-code-search"
|
|
2919
3390
|
|
|
2920
3391
|
# List official plugins
|
|
2921
|
-
npx
|
|
3392
|
+
npx ruflo@v3alpha transfer plugin-official
|
|
2922
3393
|
```
|
|
2923
3394
|
|
|
2924
3395
|
#### Live IPFS Plugin Registry
|
|
@@ -2951,10 +3422,10 @@ Patterns and models are distributed via IPFS for decentralization and integrity.
|
|
|
2951
3422
|
|
|
2952
3423
|
```bash
|
|
2953
3424
|
# Resolve IPNS name to CID
|
|
2954
|
-
npx
|
|
3425
|
+
npx ruflo@v3alpha transfer ipfs-resolve --name "/ipns/patterns.ruflo.io"
|
|
2955
3426
|
|
|
2956
3427
|
# Detect PII before publishing
|
|
2957
|
-
npx
|
|
3428
|
+
npx ruflo@v3alpha transfer detect-pii --content "$(cat ./patterns.json)"
|
|
2958
3429
|
```
|
|
2959
3430
|
|
|
2960
3431
|
### Model & Learning Pattern Import/Export
|
|
@@ -2977,7 +3448,7 @@ curl -X POST "https://api.pinata.cloud/pinning/pinJSONToIPFS" \
|
|
|
2977
3448
|
"name": "my-patterns",
|
|
2978
3449
|
"patterns": [...]
|
|
2979
3450
|
},
|
|
2980
|
-
"pinataMetadata": {"name": "
|
|
3451
|
+
"pinataMetadata": {"name": "ruflo-learning-pattern"}
|
|
2981
3452
|
}'
|
|
2982
3453
|
|
|
2983
3454
|
# Import a pattern from IPFS CID
|
|
@@ -3019,13 +3490,13 @@ Import pre-trained learning patterns for common tasks. **90.5% average accuracy*
|
|
|
3019
3490
|
curl -s "https://gateway.pinata.cloud/ipfs/QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc" | jq '.models[].name'
|
|
3020
3491
|
|
|
3021
3492
|
# Import all models
|
|
3022
|
-
npx
|
|
3493
|
+
npx ruflo@v3alpha transfer import --cid QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc
|
|
3023
3494
|
|
|
3024
3495
|
# Import specific category
|
|
3025
|
-
npx
|
|
3496
|
+
npx ruflo@v3alpha neural import --model security-review-patterns --source ipfs
|
|
3026
3497
|
|
|
3027
3498
|
# Use patterns in routing
|
|
3028
|
-
npx
|
|
3499
|
+
npx ruflo@v3alpha hooks route --task "review authentication code" --use-patterns
|
|
3029
3500
|
```
|
|
3030
3501
|
|
|
3031
3502
|
#### Benefits vs Fresh Install
|
|
@@ -3050,7 +3521,7 @@ npx claude-flow@v3alpha hooks route --task "review authentication code" --use-pa
|
|
|
3050
3521
|
|
|
3051
3522
|
```bash
|
|
3052
3523
|
# Install a pattern pack
|
|
3053
|
-
npx
|
|
3524
|
+
npx ruflo@v3alpha transfer-store download --id "security-essentials" --apply
|
|
3054
3525
|
```
|
|
3055
3526
|
|
|
3056
3527
|
### RuVector WASM Neural Training
|
|
@@ -3068,25 +3539,25 @@ Real WASM-accelerated neural training using `@ruvector/learning-wasm` and `@ruve
|
|
|
3068
3539
|
|
|
3069
3540
|
```bash
|
|
3070
3541
|
# List available pre-trained models from IPFS registry
|
|
3071
|
-
npx
|
|
3542
|
+
npx ruflo@v3alpha neural list
|
|
3072
3543
|
|
|
3073
3544
|
# List models by category
|
|
3074
|
-
npx
|
|
3545
|
+
npx ruflo@v3alpha neural list --category security
|
|
3075
3546
|
|
|
3076
3547
|
# Train with WASM acceleration
|
|
3077
|
-
npx
|
|
3548
|
+
npx ruflo@v3alpha neural train -p coordination -e 100 --wasm --flash --contrastive
|
|
3078
3549
|
|
|
3079
3550
|
# Train security patterns
|
|
3080
|
-
npx
|
|
3551
|
+
npx ruflo@v3alpha neural train -p security --wasm --contrastive
|
|
3081
3552
|
|
|
3082
3553
|
# Benchmark WASM performance
|
|
3083
|
-
npx
|
|
3554
|
+
npx ruflo@v3alpha neural benchmark -d 256 -i 1000
|
|
3084
3555
|
|
|
3085
3556
|
# Import pre-trained models
|
|
3086
|
-
npx
|
|
3557
|
+
npx ruflo@v3alpha neural import --cid QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc
|
|
3087
3558
|
|
|
3088
3559
|
# Export trained patterns to IPFS
|
|
3089
|
-
npx
|
|
3560
|
+
npx ruflo@v3alpha neural export --ipfs --sign
|
|
3090
3561
|
```
|
|
3091
3562
|
|
|
3092
3563
|
#### Benchmark Results
|
|
@@ -3425,9 +3896,9 @@ Skills are **reusable workflows** that combine agents, hooks, and patterns into
|
|
|
3425
3896
|
/v3-security-overhaul
|
|
3426
3897
|
|
|
3427
3898
|
# Via CLI
|
|
3428
|
-
npx
|
|
3429
|
-
npx
|
|
3430
|
-
npx
|
|
3899
|
+
npx ruflo@v3alpha skill run github-code-review
|
|
3900
|
+
npx ruflo@v3alpha skill list
|
|
3901
|
+
npx ruflo@v3alpha skill info sparc-methodology
|
|
3431
3902
|
```
|
|
3432
3903
|
|
|
3433
3904
|
### Creating Custom Skills
|
|
@@ -3484,21 +3955,21 @@ The Claims system manages **who is working on what** — whether human or agent.
|
|
|
3484
3955
|
|
|
3485
3956
|
| Command | What It Does | Example |
|
|
3486
3957
|
|---------|--------------|---------|
|
|
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
|
|
3958
|
+
| `issues list` | See all issues and their status | `npx ruflo@v3alpha issues list` |
|
|
3959
|
+
| `issues claim` | Claim an issue for yourself/agent | `npx ruflo@v3alpha issues claim #123 --as coder-1` |
|
|
3960
|
+
| `issues release` | Release your claim | `npx ruflo@v3alpha issues release #123` |
|
|
3961
|
+
| `issues handoff` | Hand off to another worker | `npx ruflo@v3alpha issues handoff #123 --to reviewer` |
|
|
3962
|
+
| `issues status` | Update progress on claimed work | `npx ruflo@v3alpha issues status #123 --progress 75` |
|
|
3963
|
+
| `issues stealable` | List abandoned/stuck issues | `npx ruflo@v3alpha issues stealable` |
|
|
3964
|
+
| `issues steal` | Take over stealable issue | `npx ruflo@v3alpha issues steal #123` |
|
|
3965
|
+
| `issues load` | View agent workloads | `npx ruflo@v3alpha issues load` |
|
|
3966
|
+
| `issues rebalance` | Redistribute work evenly | `npx ruflo@v3alpha issues rebalance --dry-run` |
|
|
3967
|
+
| `issues board` | Visual board view | `npx ruflo@v3alpha issues board` |
|
|
3497
3968
|
|
|
3498
3969
|
### Visual Board View
|
|
3499
3970
|
|
|
3500
3971
|
```bash
|
|
3501
|
-
npx
|
|
3972
|
+
npx ruflo@v3alpha issues board
|
|
3502
3973
|
```
|
|
3503
3974
|
|
|
3504
3975
|
```
|
|
@@ -3520,13 +3991,13 @@ When you need to pass work to someone else:
|
|
|
3520
3991
|
|
|
3521
3992
|
```bash
|
|
3522
3993
|
# 1. Request handoff with context
|
|
3523
|
-
npx
|
|
3994
|
+
npx ruflo@v3alpha issues handoff #123 \
|
|
3524
3995
|
--to security-architect \
|
|
3525
3996
|
--reason "Needs security review" \
|
|
3526
3997
|
--progress 80
|
|
3527
3998
|
|
|
3528
3999
|
# 2. Target accepts handoff
|
|
3529
|
-
npx
|
|
4000
|
+
npx ruflo@v3alpha issues accept #123 --as security-architect
|
|
3530
4001
|
|
|
3531
4002
|
# 3. Work continues with full context
|
|
3532
4003
|
```
|
|
@@ -3535,7 +4006,7 @@ npx claude-flow@v3alpha issues accept #123 --as security-architect
|
|
|
3535
4006
|
|
|
3536
4007
|
```bash
|
|
3537
4008
|
# View current load
|
|
3538
|
-
npx
|
|
4009
|
+
npx ruflo@v3alpha issues load
|
|
3539
4010
|
|
|
3540
4011
|
# Output:
|
|
3541
4012
|
# Agent | Claims | Load | Status
|
|
@@ -3546,7 +4017,7 @@ npx claude-flow@v3alpha issues load
|
|
|
3546
4017
|
# security-arch | 0 | 0% | 🟢 Available
|
|
3547
4018
|
|
|
3548
4019
|
# Auto-rebalance
|
|
3549
|
-
npx
|
|
4020
|
+
npx ruflo@v3alpha issues rebalance
|
|
3550
4021
|
```
|
|
3551
4022
|
|
|
3552
4023
|
### MCP Tools
|
|
@@ -3607,14 +4078,14 @@ The Route system uses **Q-Learning** to automatically assign tasks to the best a
|
|
|
3607
4078
|
|
|
3608
4079
|
| Command | What It Does | Example |
|
|
3609
4080
|
|---------|--------------|---------|
|
|
3610
|
-
| `route task` | Get agent recommendation | `npx
|
|
3611
|
-
| `route explain` | Understand routing decision | `npx
|
|
3612
|
-
| `route coverage` | Route based on test coverage | `npx
|
|
4081
|
+
| `route task` | Get agent recommendation | `npx ruflo@v3alpha route task "implement OAuth2"` |
|
|
4082
|
+
| `route explain` | Understand routing decision | `npx ruflo@v3alpha route explain "task"` |
|
|
4083
|
+
| `route coverage` | Route based on test coverage | `npx ruflo@v3alpha route coverage` |
|
|
3613
4084
|
|
|
3614
4085
|
### Example: Route a Task
|
|
3615
4086
|
|
|
3616
4087
|
```bash
|
|
3617
|
-
npx
|
|
4088
|
+
npx ruflo@v3alpha route task "refactor authentication to use JWT"
|
|
3618
4089
|
|
|
3619
4090
|
# Output:
|
|
3620
4091
|
# ╔══════════════════════════════════════════════════════════════╗
|
|
@@ -3641,7 +4112,7 @@ npx claude-flow@v3alpha route task "refactor authentication to use JWT"
|
|
|
3641
4112
|
Routes tasks to agents based on **test coverage gaps**:
|
|
3642
4113
|
|
|
3643
4114
|
```bash
|
|
3644
|
-
npx
|
|
4115
|
+
npx ruflo@v3alpha route coverage
|
|
3645
4116
|
|
|
3646
4117
|
# Finds untested code and routes to tester agent:
|
|
3647
4118
|
# • src/auth/jwt.ts - 23% coverage → tester
|
|
@@ -3653,10 +4124,10 @@ npx claude-flow@v3alpha route coverage
|
|
|
3653
4124
|
|
|
3654
4125
|
```bash
|
|
3655
4126
|
# Route via hooks (preferred)
|
|
3656
|
-
npx
|
|
4127
|
+
npx ruflo@v3alpha hooks route "implement caching layer" --include-explanation
|
|
3657
4128
|
|
|
3658
4129
|
# Record outcome for learning
|
|
3659
|
-
npx
|
|
4130
|
+
npx ruflo@v3alpha hooks post-task --task-id "task-123" --success true --agent coder
|
|
3660
4131
|
```
|
|
3661
4132
|
|
|
3662
4133
|
### How Q-Learning Improves Over Time
|
|
@@ -3676,12 +4147,12 @@ The system **remembers** what works and applies it to future similar tasks.
|
|
|
3676
4147
|
|
|
3677
4148
|
## 💻 Programmatic Usage
|
|
3678
4149
|
|
|
3679
|
-
Use
|
|
4150
|
+
Use Ruflo packages directly in your applications.
|
|
3680
4151
|
|
|
3681
4152
|
<details>
|
|
3682
|
-
<summary>💻 <strong>Programmatic SDK</strong> — Use
|
|
4153
|
+
<summary>💻 <strong>Programmatic SDK</strong> — Use Ruflo in Your Code</summary>
|
|
3683
4154
|
|
|
3684
|
-
Use
|
|
4155
|
+
Use Ruflo packages directly in your TypeScript/JavaScript applications.
|
|
3685
4156
|
|
|
3686
4157
|
### Installation
|
|
3687
4158
|
|
|
@@ -3690,7 +4161,7 @@ Use Claude-Flow packages directly in your TypeScript/JavaScript applications.
|
|
|
3690
4161
|
npm install @claude-flow/cli @claude-flow/memory @claude-flow/swarm
|
|
3691
4162
|
|
|
3692
4163
|
# Or install everything
|
|
3693
|
-
npm install
|
|
4164
|
+
npm install ruflo@v3alpha
|
|
3694
4165
|
```
|
|
3695
4166
|
|
|
3696
4167
|
### Quick Examples
|
|
@@ -3727,21 +4198,21 @@ console.log(results);
|
|
|
3727
4198
|
**CLI Commands:**
|
|
3728
4199
|
```bash
|
|
3729
4200
|
# Initialize memory database
|
|
3730
|
-
npx
|
|
4201
|
+
npx ruflo@alpha memory init --force
|
|
3731
4202
|
|
|
3732
4203
|
# Store patterns
|
|
3733
|
-
npx
|
|
3734
|
-
npx
|
|
4204
|
+
npx ruflo@alpha memory store --key "pattern-auth" --value "JWT authentication with refresh tokens"
|
|
4205
|
+
npx ruflo@alpha memory store --key "pattern-cache" --value "Redis caching for API responses"
|
|
3735
4206
|
|
|
3736
4207
|
# Build HNSW index for 150x-12,500x faster search
|
|
3737
|
-
npx
|
|
4208
|
+
npx ruflo@alpha memory search --query "authentication" --build-hnsw
|
|
3738
4209
|
|
|
3739
4210
|
# Semantic search (uses HNSW if built)
|
|
3740
|
-
npx
|
|
4211
|
+
npx ruflo@alpha memory search --query "how to cache data" --limit 5
|
|
3741
4212
|
|
|
3742
4213
|
# List and manage entries
|
|
3743
|
-
npx
|
|
3744
|
-
npx
|
|
4214
|
+
npx ruflo@alpha memory list --namespace patterns
|
|
4215
|
+
npx ruflo@alpha memory stats
|
|
3745
4216
|
```
|
|
3746
4217
|
|
|
3747
4218
|
</details>
|
|
@@ -3975,35 +4446,35 @@ console.log(`Hit rate: ${(stats.hitRate * 100).toFixed(1)}%`);
|
|
|
3975
4446
|
|
|
3976
4447
|
```bash
|
|
3977
4448
|
# Generate embedding
|
|
3978
|
-
|
|
4449
|
+
ruflo embeddings embed "Your text here"
|
|
3979
4450
|
|
|
3980
4451
|
# Batch embed from file
|
|
3981
|
-
|
|
4452
|
+
ruflo embeddings batch documents.txt -o embeddings.json
|
|
3982
4453
|
|
|
3983
4454
|
# Similarity search
|
|
3984
|
-
|
|
4455
|
+
ruflo embeddings search "query" --index ./vectors
|
|
3985
4456
|
|
|
3986
4457
|
# Document chunking
|
|
3987
|
-
|
|
4458
|
+
ruflo embeddings chunk document.txt --strategy sentence --max-size 512
|
|
3988
4459
|
|
|
3989
4460
|
# Normalize embeddings
|
|
3990
|
-
|
|
4461
|
+
ruflo embeddings normalize embeddings.json --type l2 -o normalized.json
|
|
3991
4462
|
|
|
3992
4463
|
# Convert to hyperbolic
|
|
3993
|
-
|
|
4464
|
+
ruflo embeddings hyperbolic embeddings.json -o poincare.json
|
|
3994
4465
|
|
|
3995
4466
|
# Neural operations
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
4467
|
+
ruflo embeddings neural drift --baseline "context" --input "check"
|
|
4468
|
+
ruflo embeddings neural store --id mem-1 --content "data"
|
|
4469
|
+
ruflo embeddings neural recall "query" --top-k 5
|
|
3999
4470
|
|
|
4000
4471
|
# Model management
|
|
4001
|
-
|
|
4002
|
-
|
|
4472
|
+
ruflo embeddings models list
|
|
4473
|
+
ruflo embeddings models download all-MiniLM-L6-v2
|
|
4003
4474
|
|
|
4004
4475
|
# Cache management
|
|
4005
|
-
|
|
4006
|
-
|
|
4476
|
+
ruflo embeddings cache stats
|
|
4477
|
+
ruflo embeddings cache clear --older-than 7d
|
|
4007
4478
|
```
|
|
4008
4479
|
|
|
4009
4480
|
### Available Models
|
|
@@ -4054,7 +4525,7 @@ await hooks.endTrajectory(trajectory, { success: true });
|
|
|
4054
4525
|
|
|
4055
4526
|
| Package | Purpose | Main Exports |
|
|
4056
4527
|
|---------|---------|--------------|
|
|
4057
|
-
| `@claude-flow/memory` | Vector storage, HNSW | `AgentDB`, `
|
|
4528
|
+
| `@claude-flow/memory` | Vector storage, HNSW, self-learning graph | `AgentDB`, `AutoMemoryBridge`, `LearningBridge`, `MemoryGraph` |
|
|
4058
4529
|
| `@claude-flow/swarm` | Agent coordination | `createSwarm`, `Swarm` |
|
|
4059
4530
|
| `@claude-flow/aidefence` | Threat detection | `isSafe`, `checkThreats`, `createAIDefence` |
|
|
4060
4531
|
| `@claude-flow/embeddings` | Vector embeddings | `createEmbeddingService` |
|
|
@@ -4070,7 +4541,7 @@ await hooks.endTrajectory(trajectory, { success: true });
|
|
|
4070
4541
|
|
|
4071
4542
|
## 🔗 Ecosystem & Integrations
|
|
4072
4543
|
|
|
4073
|
-
Core infrastructure packages powering
|
|
4544
|
+
Core infrastructure packages powering Ruflo's intelligence layer.
|
|
4074
4545
|
|
|
4075
4546
|
<details>
|
|
4076
4547
|
<summary>⚡ <strong>Agentic-Flow Integration</strong> — Core AI Infrastructure</summary>
|
|
@@ -4079,7 +4550,7 @@ Core infrastructure packages powering Claude-Flow's intelligence layer.
|
|
|
4079
4550
|
[](https://www.npmjs.com/package/agentic-flow)
|
|
4080
4551
|
[](https://github.com/ruvnet/agentic-flow)
|
|
4081
4552
|
|
|
4082
|
-
|
|
4553
|
+
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
4554
|
|
|
4084
4555
|
### Quick Start
|
|
4085
4556
|
|
|
@@ -4360,9 +4831,9 @@ claude mcp add agentic-flow -- npx agentic-flow mcp start
|
|
|
4360
4831
|
|
|
4361
4832
|
</details>
|
|
4362
4833
|
|
|
4363
|
-
### Integration with
|
|
4834
|
+
### Integration with Ruflo
|
|
4364
4835
|
|
|
4365
|
-
|
|
4836
|
+
Ruflo automatically leverages agentic-flow for:
|
|
4366
4837
|
|
|
4367
4838
|
| Feature | How It's Used |
|
|
4368
4839
|
|---------|---------------|
|
|
@@ -4373,7 +4844,7 @@ Claude-Flow automatically leverages agentic-flow for:
|
|
|
4373
4844
|
| **Embedding Search** | HNSW-indexed vector search (150x faster) |
|
|
4374
4845
|
|
|
4375
4846
|
```typescript
|
|
4376
|
-
//
|
|
4847
|
+
// Ruflo automatically uses agentic-flow optimizations
|
|
4377
4848
|
import { getTokenOptimizer } from '@claude-flow/integration';
|
|
4378
4849
|
|
|
4379
4850
|
const optimizer = await getTokenOptimizer();
|
|
@@ -4549,9 +5020,9 @@ jj.enableEncryption(key);
|
|
|
4549
5020
|
|
|
4550
5021
|
</details>
|
|
4551
5022
|
|
|
4552
|
-
###
|
|
5023
|
+
### Ruflo Skill
|
|
4553
5024
|
|
|
4554
|
-
|
|
5025
|
+
Ruflo includes a dedicated `/agentic-jujutsu` skill for AI-powered version control:
|
|
4555
5026
|
|
|
4556
5027
|
```bash
|
|
4557
5028
|
# Invoke the skill
|
|
@@ -4634,7 +5105,7 @@ npx agentic-jujutsu examples # Show usage examples
|
|
|
4634
5105
|
[](https://github.com/ruvnet/ruvector)
|
|
4635
5106
|
[](https://hub.docker.com/r/ruvnet/ruvector-postgres)
|
|
4636
5107
|
|
|
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
|
|
5108
|
+
**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
5109
|
|
|
4639
5110
|
### Key Capabilities
|
|
4640
5111
|
|
|
@@ -4716,7 +5187,7 @@ const compressed = ruvector.compress(embedding, 0.3); // 30% quality threshold
|
|
|
4716
5187
|
|
|
4717
5188
|
```bash
|
|
4718
5189
|
# Quick setup with CLI (recommended)
|
|
4719
|
-
npx
|
|
5190
|
+
npx ruflo ruvector setup --output ./my-ruvector
|
|
4720
5191
|
cd my-ruvector && docker-compose up -d
|
|
4721
5192
|
|
|
4722
5193
|
# Or pull directly from Docker Hub
|
|
@@ -4724,12 +5195,12 @@ docker run -d \
|
|
|
4724
5195
|
--name ruvector-postgres \
|
|
4725
5196
|
-p 5432:5432 \
|
|
4726
5197
|
-e POSTGRES_USER=claude \
|
|
4727
|
-
-e POSTGRES_PASSWORD=
|
|
5198
|
+
-e POSTGRES_PASSWORD=ruflo-test \
|
|
4728
5199
|
-e POSTGRES_DB=claude_flow \
|
|
4729
5200
|
ruvnet/ruvector-postgres
|
|
4730
5201
|
|
|
4731
5202
|
# Migrate existing memory to PostgreSQL
|
|
4732
|
-
npx
|
|
5203
|
+
npx ruflo ruvector import --input memory-export.json
|
|
4733
5204
|
```
|
|
4734
5205
|
|
|
4735
5206
|
**RuVector PostgreSQL vs pgvector:**
|
|
@@ -4886,12 +5357,12 @@ await db.createHyperedge(['agent-1', 'agent-2', 'agent-3'], {
|
|
|
4886
5357
|
|
|
4887
5358
|
</details>
|
|
4888
5359
|
|
|
4889
|
-
### Integration with
|
|
5360
|
+
### Integration with Ruflo
|
|
4890
5361
|
|
|
4891
|
-
|
|
5362
|
+
Ruflo automatically uses RuVector when available:
|
|
4892
5363
|
|
|
4893
5364
|
```typescript
|
|
4894
|
-
//
|
|
5365
|
+
// Ruflo detects and uses native ruvector
|
|
4895
5366
|
import { getVectorStore } from '@claude-flow/memory';
|
|
4896
5367
|
|
|
4897
5368
|
const store = await getVectorStore();
|
|
@@ -4909,19 +5380,19 @@ const similarity = attention.attention(queries, keys, values);
|
|
|
4909
5380
|
|
|
4910
5381
|
```bash
|
|
4911
5382
|
# RuVector PostgreSQL Setup (generates Docker files + SQL)
|
|
4912
|
-
npx
|
|
4913
|
-
npx
|
|
4914
|
-
npx
|
|
5383
|
+
npx ruflo ruvector setup # Output to ./ruvector-postgres
|
|
5384
|
+
npx ruflo ruvector setup --output ./mydir # Custom directory
|
|
5385
|
+
npx ruflo ruvector setup --print # Preview files
|
|
4915
5386
|
|
|
4916
5387
|
# Import from sql.js/JSON to PostgreSQL
|
|
4917
|
-
npx
|
|
4918
|
-
npx
|
|
5388
|
+
npx ruflo ruvector import --input data.json # Direct import
|
|
5389
|
+
npx ruflo ruvector import --input data.json --output sql # Dry-run (generate SQL)
|
|
4919
5390
|
|
|
4920
5391
|
# Other RuVector commands
|
|
4921
|
-
npx
|
|
4922
|
-
npx
|
|
4923
|
-
npx
|
|
4924
|
-
npx
|
|
5392
|
+
npx ruflo ruvector status --verbose # Check connection
|
|
5393
|
+
npx ruflo ruvector benchmark --vectors 10000 # Performance test
|
|
5394
|
+
npx ruflo ruvector optimize --analyze # Optimization suggestions
|
|
5395
|
+
npx ruflo ruvector backup --output backup.sql # Backup data
|
|
4925
5396
|
|
|
4926
5397
|
# Native ruvector CLI
|
|
4927
5398
|
npx ruvector status # Check installation
|
|
@@ -4948,11 +5419,11 @@ Cloud platform integration and deployment tools.
|
|
|
4948
5419
|
<details>
|
|
4949
5420
|
<summary>☁️ <strong>Flow Nexus</strong> — Cloud Platform Integration</summary>
|
|
4950
5421
|
|
|
4951
|
-
Flow Nexus is a **cloud platform** for deploying and scaling
|
|
5422
|
+
Flow Nexus is a **cloud platform** for deploying and scaling Ruflo beyond your local machine.
|
|
4952
5423
|
|
|
4953
5424
|
### What Flow Nexus Provides
|
|
4954
5425
|
|
|
4955
|
-
| Feature | Local
|
|
5426
|
+
| Feature | Local Ruflo | + Flow Nexus |
|
|
4956
5427
|
|---------|-------------------|--------------|
|
|
4957
5428
|
| **Swarm Scale** | 15 agents (local resources) | 100+ agents (cloud resources) |
|
|
4958
5429
|
| **Neural Training** | Limited by local GPU/CPU | Distributed GPU clusters |
|
|
@@ -5001,7 +5472,7 @@ Flow Nexus is a **cloud platform** for deploying and scaling Claude-Flow beyond
|
|
|
5001
5472
|
/flow-nexus-swarm
|
|
5002
5473
|
|
|
5003
5474
|
# Or via CLI
|
|
5004
|
-
npx
|
|
5475
|
+
npx ruflo@v3alpha nexus swarm deploy \
|
|
5005
5476
|
--topology hierarchical \
|
|
5006
5477
|
--max-agents 50 \
|
|
5007
5478
|
--region us-east-1
|
|
@@ -5013,13 +5484,13 @@ Isolated execution environments for running untrusted code:
|
|
|
5013
5484
|
|
|
5014
5485
|
```bash
|
|
5015
5486
|
# Create sandbox
|
|
5016
|
-
npx
|
|
5487
|
+
npx ruflo@v3alpha nexus sandbox create --language python
|
|
5017
5488
|
|
|
5018
5489
|
# Execute code safely
|
|
5019
|
-
npx
|
|
5490
|
+
npx ruflo@v3alpha nexus sandbox exec --code "print('Hello')"
|
|
5020
5491
|
|
|
5021
5492
|
# Cleanup
|
|
5022
|
-
npx
|
|
5493
|
+
npx ruflo@v3alpha nexus sandbox destroy
|
|
5023
5494
|
```
|
|
5024
5495
|
|
|
5025
5496
|
### Event-Driven Workflows
|
|
@@ -5045,10 +5516,10 @@ steps:
|
|
|
5045
5516
|
# 1. Sign up at flow-nexus.io
|
|
5046
5517
|
# 2. Get API key
|
|
5047
5518
|
# 3. Configure
|
|
5048
|
-
npx
|
|
5519
|
+
npx ruflo@v3alpha nexus configure --api-key <key>
|
|
5049
5520
|
|
|
5050
5521
|
# 4. Deploy
|
|
5051
|
-
npx
|
|
5522
|
+
npx ruflo@v3alpha nexus swarm deploy
|
|
5052
5523
|
```
|
|
5053
5524
|
|
|
5054
5525
|
</details>
|
|
@@ -5082,7 +5553,7 @@ Stream-Chain enables **sequential processing** where the output of one agent bec
|
|
|
5082
5553
|
/stream-chain
|
|
5083
5554
|
|
|
5084
5555
|
# Define pipeline
|
|
5085
|
-
npx
|
|
5556
|
+
npx ruflo@v3alpha stream-chain create \
|
|
5086
5557
|
--name "feature-pipeline" \
|
|
5087
5558
|
--stages "researcher,architect,coder,tester,reviewer"
|
|
5088
5559
|
```
|
|
@@ -5124,11 +5595,11 @@ stages:
|
|
|
5124
5595
|
|
|
5125
5596
|
```bash
|
|
5126
5597
|
# Run the pipeline
|
|
5127
|
-
npx
|
|
5598
|
+
npx ruflo@v3alpha stream-chain run feature-pipeline \
|
|
5128
5599
|
--input '{"requirements": "Add user dashboard with analytics"}'
|
|
5129
5600
|
|
|
5130
5601
|
# Monitor progress
|
|
5131
|
-
npx
|
|
5602
|
+
npx ruflo@v3alpha stream-chain status feature-pipeline
|
|
5132
5603
|
```
|
|
5133
5604
|
|
|
5134
5605
|
### Use Cases
|
|
@@ -5168,7 +5639,7 @@ The Pair Programming skill provides **human-AI collaborative coding** with role
|
|
|
5168
5639
|
/pair-programming --mode tdd
|
|
5169
5640
|
|
|
5170
5641
|
# Via CLI
|
|
5171
|
-
npx
|
|
5642
|
+
npx ruflo@v3alpha pair start --mode navigator
|
|
5172
5643
|
```
|
|
5173
5644
|
|
|
5174
5645
|
### TDD Mode Workflow
|
|
@@ -5208,16 +5679,16 @@ npx claude-flow@v3alpha pair start --mode navigator
|
|
|
5208
5679
|
|
|
5209
5680
|
```bash
|
|
5210
5681
|
# Switch roles mid-session
|
|
5211
|
-
npx
|
|
5682
|
+
npx ruflo@v3alpha pair switch
|
|
5212
5683
|
|
|
5213
5684
|
# Get AI explanation
|
|
5214
|
-
npx
|
|
5685
|
+
npx ruflo@v3alpha pair explain
|
|
5215
5686
|
|
|
5216
5687
|
# Run tests
|
|
5217
|
-
npx
|
|
5688
|
+
npx ruflo@v3alpha pair test
|
|
5218
5689
|
|
|
5219
5690
|
# End session with summary
|
|
5220
|
-
npx
|
|
5691
|
+
npx ruflo@v3alpha pair end
|
|
5221
5692
|
```
|
|
5222
5693
|
|
|
5223
5694
|
</details>
|
|
@@ -5274,22 +5745,22 @@ Detection Time: 0.04ms | 50+ Patterns | Self-Learning | HNSW Vector Search
|
|
|
5274
5745
|
|
|
5275
5746
|
```bash
|
|
5276
5747
|
# Basic threat scan
|
|
5277
|
-
npx
|
|
5748
|
+
npx ruflo@v3alpha security defend -i "ignore previous instructions"
|
|
5278
5749
|
|
|
5279
5750
|
# Scan a file
|
|
5280
|
-
npx
|
|
5751
|
+
npx ruflo@v3alpha security defend -f ./user-prompts.txt
|
|
5281
5752
|
|
|
5282
5753
|
# Quick scan (faster)
|
|
5283
|
-
npx
|
|
5754
|
+
npx ruflo@v3alpha security defend -i "some text" --quick
|
|
5284
5755
|
|
|
5285
5756
|
# JSON output
|
|
5286
|
-
npx
|
|
5757
|
+
npx ruflo@v3alpha security defend -i "test" -o json
|
|
5287
5758
|
|
|
5288
5759
|
# View statistics
|
|
5289
|
-
npx
|
|
5760
|
+
npx ruflo@v3alpha security defend --stats
|
|
5290
5761
|
|
|
5291
5762
|
# Full security audit
|
|
5292
|
-
npx
|
|
5763
|
+
npx ruflo@v3alpha security scan --depth full
|
|
5293
5764
|
```
|
|
5294
5765
|
|
|
5295
5766
|
### MCP Tools
|
|
@@ -5421,7 +5892,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
5421
5892
|
| Module | Purpose | Key Features |
|
|
5422
5893
|
|--------|---------|--------------|
|
|
5423
5894
|
| `@claude-flow/hooks` | Event-driven lifecycle | ReasoningBank, 27 hooks, pattern learning |
|
|
5424
|
-
| `@claude-flow/memory` | Unified vector storage | AgentDB, HNSW indexing, 150x faster search |
|
|
5895
|
+
| `@claude-flow/memory` | Unified vector storage | AgentDB, HNSW indexing, 150x faster search, LearningBridge, MemoryGraph, AgentMemoryScope |
|
|
5425
5896
|
| `@claude-flow/security` | CVE remediation | Input validation, path security, AIDefence |
|
|
5426
5897
|
| `@claude-flow/swarm` | Multi-agent coordination | 6 topologies, Byzantine consensus, auto-scaling |
|
|
5427
5898
|
| `@claude-flow/plugins` | WASM extensions | RuVector plugins, semantic search, intent routing |
|
|
@@ -5453,6 +5924,12 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
5453
5924
|
| **Swarm** | Agent spawn | <200ms | ✅ 150ms |
|
|
5454
5925
|
| **Swarm** | Consensus latency | <100ms | ✅ 75ms |
|
|
5455
5926
|
| **Neural** | SONA adaptation | <0.05ms | ✅ 0.03ms |
|
|
5927
|
+
| **Graph** | Build (1k nodes) | <200ms | ✅ 2.78ms (71.9x headroom) |
|
|
5928
|
+
| **Graph** | PageRank (1k nodes) | <100ms | ✅ 12.21ms (8.2x headroom) |
|
|
5929
|
+
| **Learning** | Insight recording | <5ms | ✅ 0.12ms (41x headroom) |
|
|
5930
|
+
| **Learning** | Consolidation | <500ms | ✅ 0.26ms (1,955x headroom) |
|
|
5931
|
+
| **Learning** | Confidence decay (1k) | <50ms | ✅ 0.23ms (215x headroom) |
|
|
5932
|
+
| **Transfer** | Knowledge transfer | <100ms | ✅ 1.25ms (80x headroom) |
|
|
5456
5933
|
| **Task** | Success rate | 95%+ | ✅ 100% (7/7) |
|
|
5457
5934
|
|
|
5458
5935
|
### Topology Performance
|
|
@@ -5475,7 +5952,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per
|
|
|
5475
5952
|
|
|
5476
5953
|
[](https://www.npmjs.com/package/@claude-flow/browser)
|
|
5477
5954
|
|
|
5478
|
-
AI-optimized browser automation integrating [agent-browser](https://github.com/AugmentCode/agent-browser) with
|
|
5955
|
+
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
5956
|
|
|
5480
5957
|
### Installation
|
|
5481
5958
|
|
|
@@ -5560,7 +6037,7 @@ const template = getWorkflow('login-basic');
|
|
|
5560
6037
|
<details>
|
|
5561
6038
|
<summary>📦 <strong>Release Management</strong> — @claude-flow/deployment</summary>
|
|
5562
6039
|
|
|
5563
|
-
Automated release management, versioning, and CI/CD for
|
|
6040
|
+
Automated release management, versioning, and CI/CD for Ruflo packages.
|
|
5564
6041
|
|
|
5565
6042
|
### Features
|
|
5566
6043
|
|
|
@@ -5874,10 +6351,10 @@ npm run bench:attention
|
|
|
5874
6351
|
npm run bench:startup
|
|
5875
6352
|
|
|
5876
6353
|
# Performance report
|
|
5877
|
-
npx
|
|
6354
|
+
npx ruflo@v3alpha performance report
|
|
5878
6355
|
|
|
5879
6356
|
# Benchmark specific suite
|
|
5880
|
-
npx
|
|
6357
|
+
npx ruflo@v3alpha performance benchmark --suite memory
|
|
5881
6358
|
```
|
|
5882
6359
|
|
|
5883
6360
|
</details>
|
|
@@ -6258,7 +6735,7 @@ export CLAUDE_FLOW_MEMORY_PATH="./data"
|
|
|
6258
6735
|
| `GCS_PROJECT_ID` | GCS project ID | Optional |
|
|
6259
6736
|
| `GOOGLE_CLOUD_PROJECT` | Alternative project ID variable | Optional |
|
|
6260
6737
|
| `GOOGLE_APPLICATION_CREDENTIALS` | Path to GCS service account JSON | Optional |
|
|
6261
|
-
| `GCS_PREFIX` | Prefix for stored files | `
|
|
6738
|
+
| `GCS_PREFIX` | Prefix for stored files | `ruflo-patterns` |
|
|
6262
6739
|
|
|
6263
6740
|
### Auto-Update System
|
|
6264
6741
|
|
|
@@ -6329,9 +6806,9 @@ CLAUDE_FLOW_HNSW_EF=200
|
|
|
6329
6806
|
|
|
6330
6807
|
### Configuration File Location
|
|
6331
6808
|
|
|
6332
|
-
|
|
6809
|
+
Ruflo looks for configuration in this order:
|
|
6333
6810
|
1. `./claude-flow.config.json` (project root)
|
|
6334
|
-
2. `~/.config/
|
|
6811
|
+
2. `~/.config/ruflo/config.json` (user config)
|
|
6335
6812
|
3. Environment variables (override any file config)
|
|
6336
6813
|
|
|
6337
6814
|
### Complete Configuration Schema
|
|
@@ -6431,7 +6908,7 @@ Claude Flow looks for configuration in this order:
|
|
|
6431
6908
|
"level": "info",
|
|
6432
6909
|
"format": "json",
|
|
6433
6910
|
"destination": "console",
|
|
6434
|
-
"filePath": "./logs/
|
|
6911
|
+
"filePath": "./logs/ruflo.log",
|
|
6435
6912
|
"maxFileSize": "100MB",
|
|
6436
6913
|
"maxFiles": 10
|
|
6437
6914
|
},
|
|
@@ -6498,7 +6975,7 @@ Claude Flow looks for configuration in this order:
|
|
|
6498
6975
|
"version": "3.0.0",
|
|
6499
6976
|
"memory": {
|
|
6500
6977
|
"type": "hybrid",
|
|
6501
|
-
"path": "/var/lib/
|
|
6978
|
+
"path": "/var/lib/ruflo/data",
|
|
6502
6979
|
"encryption": { "enabled": true, "algorithm": "aes-256-gcm" }
|
|
6503
6980
|
},
|
|
6504
6981
|
"swarm": { "topology": "hierarchical", "maxAgents": 15 },
|
|
@@ -6510,7 +6987,7 @@ Claude Flow looks for configuration in this order:
|
|
|
6510
6987
|
"level": "warn",
|
|
6511
6988
|
"format": "json",
|
|
6512
6989
|
"destination": "file",
|
|
6513
|
-
"filePath": "/var/log/
|
|
6990
|
+
"filePath": "/var/log/ruflo/production.log"
|
|
6514
6991
|
},
|
|
6515
6992
|
"monitoring": { "enabled": true, "metricsInterval": 30000 }
|
|
6516
6993
|
}
|
|
@@ -6554,25 +7031,25 @@ Claude Flow looks for configuration in this order:
|
|
|
6554
7031
|
|
|
6555
7032
|
```bash
|
|
6556
7033
|
# View current configuration
|
|
6557
|
-
npx
|
|
7034
|
+
npx ruflo@v3alpha config list
|
|
6558
7035
|
|
|
6559
7036
|
# Get specific value
|
|
6560
|
-
npx
|
|
7037
|
+
npx ruflo@v3alpha config get --key memory.type
|
|
6561
7038
|
|
|
6562
7039
|
# Set configuration value
|
|
6563
|
-
npx
|
|
7040
|
+
npx ruflo@v3alpha config set --key swarm.maxAgents --value 10
|
|
6564
7041
|
|
|
6565
7042
|
# Export configuration
|
|
6566
|
-
npx
|
|
7043
|
+
npx ruflo@v3alpha config export > my-config.json
|
|
6567
7044
|
|
|
6568
7045
|
# Import configuration
|
|
6569
|
-
npx
|
|
7046
|
+
npx ruflo@v3alpha config import --file my-config.json
|
|
6570
7047
|
|
|
6571
7048
|
# Reset to defaults
|
|
6572
|
-
npx
|
|
7049
|
+
npx ruflo@v3alpha config reset --key swarm
|
|
6573
7050
|
|
|
6574
7051
|
# Initialize with wizard
|
|
6575
|
-
npx
|
|
7052
|
+
npx ruflo@v3alpha init --wizard
|
|
6576
7053
|
```
|
|
6577
7054
|
|
|
6578
7055
|
</details>
|
|
@@ -6596,7 +7073,7 @@ lsof -i :3000
|
|
|
6596
7073
|
# Kill existing process
|
|
6597
7074
|
kill -9 <PID>
|
|
6598
7075
|
# Restart MCP server
|
|
6599
|
-
npx
|
|
7076
|
+
npx ruflo@v3alpha mcp start
|
|
6600
7077
|
```
|
|
6601
7078
|
|
|
6602
7079
|
**Agent spawn failures**
|
|
@@ -6610,9 +7087,9 @@ export CLAUDE_FLOW_MAX_AGENTS=5
|
|
|
6610
7087
|
**Pattern search returning no results**
|
|
6611
7088
|
```bash
|
|
6612
7089
|
# Verify patterns are stored
|
|
6613
|
-
npx
|
|
7090
|
+
npx ruflo@v3alpha hooks metrics
|
|
6614
7091
|
# Re-run pretraining if empty
|
|
6615
|
-
npx
|
|
7092
|
+
npx ruflo@v3alpha hooks pretrain
|
|
6616
7093
|
```
|
|
6617
7094
|
|
|
6618
7095
|
**Windows path issues**
|
|
@@ -6620,7 +7097,7 @@ npx claude-flow@v3alpha hooks pretrain
|
|
|
6620
7097
|
# Use forward slashes or escape backslashes
|
|
6621
7098
|
$env:CLAUDE_FLOW_MEMORY_PATH = "./data"
|
|
6622
7099
|
# Or use absolute path
|
|
6623
|
-
$env:CLAUDE_FLOW_MEMORY_PATH = "C:/Users/name/
|
|
7100
|
+
$env:CLAUDE_FLOW_MEMORY_PATH = "C:/Users/name/ruflo/data"
|
|
6624
7101
|
```
|
|
6625
7102
|
|
|
6626
7103
|
**Permission denied errors**
|
|
@@ -6633,7 +7110,7 @@ sudo chown -R $(whoami) ~/.npm
|
|
|
6633
7110
|
**High memory usage**
|
|
6634
7111
|
```bash
|
|
6635
7112
|
# Enable garbage collection
|
|
6636
|
-
node --expose-gc node_modules/.bin/
|
|
7113
|
+
node --expose-gc node_modules/.bin/ruflo
|
|
6637
7114
|
# Reduce HNSW parameters for lower memory
|
|
6638
7115
|
export CLAUDE_FLOW_HNSW_M=8
|
|
6639
7116
|
export CLAUDE_FLOW_HNSW_EF=100
|
|
@@ -6665,45 +7142,45 @@ export CLAUDE_FLOW_HNSW_EF=100
|
|
|
6665
7142
|
|
|
6666
7143
|
| Change | V2 | V3 | Impact |
|
|
6667
7144
|
|--------|----|----|--------|
|
|
6668
|
-
| **Package Structure** | `
|
|
7145
|
+
| **Package Structure** | `ruflo` | `@claude-flow/*` (scoped) | Update imports |
|
|
6669
7146
|
| **Memory Backend** | JSON files | AgentDB + HNSW | Faster search |
|
|
6670
7147
|
| **Hooks System** | Basic patterns | ReasoningBank + SONA | Self-learning |
|
|
6671
7148
|
| **Security** | Manual validation | Automatic strict mode | More secure |
|
|
6672
7149
|
| **CLI Commands** | Flat structure | Nested subcommands | New syntax |
|
|
6673
|
-
| **Config Format** | `.
|
|
7150
|
+
| **Config Format** | `.ruflo/config.json` | `claude-flow.config.json` | Update path |
|
|
6674
7151
|
|
|
6675
7152
|
### Step-by-Step Migration
|
|
6676
7153
|
|
|
6677
7154
|
```bash
|
|
6678
7155
|
# STEP 1: Backup existing data (CRITICAL)
|
|
6679
7156
|
cp -r ./data ./data-backup-v2
|
|
6680
|
-
cp -r ./.
|
|
7157
|
+
cp -r ./.ruflo ./.ruflo-backup-v2
|
|
6681
7158
|
|
|
6682
7159
|
# STEP 2: Check migration status
|
|
6683
|
-
npx
|
|
7160
|
+
npx ruflo@v3alpha migrate status
|
|
6684
7161
|
|
|
6685
7162
|
# STEP 3: Run migration with dry-run first
|
|
6686
|
-
npx
|
|
7163
|
+
npx ruflo@v3alpha migrate run --dry-run
|
|
6687
7164
|
|
|
6688
7165
|
# STEP 4: Execute migration
|
|
6689
|
-
npx
|
|
7166
|
+
npx ruflo@v3alpha migrate run --from v2
|
|
6690
7167
|
|
|
6691
7168
|
# STEP 5: Verify migration
|
|
6692
|
-
npx
|
|
7169
|
+
npx ruflo@v3alpha migrate verify
|
|
6693
7170
|
|
|
6694
7171
|
# STEP 6: Initialize V3 learning
|
|
6695
|
-
npx
|
|
6696
|
-
npx
|
|
7172
|
+
npx ruflo@v3alpha hooks pretrain
|
|
7173
|
+
npx ruflo@v3alpha doctor --fix
|
|
6697
7174
|
```
|
|
6698
7175
|
|
|
6699
7176
|
### Command Changes Reference
|
|
6700
7177
|
|
|
6701
7178
|
| V2 Command | V3 Command | Notes |
|
|
6702
7179
|
|------------|------------|-------|
|
|
6703
|
-
| `
|
|
6704
|
-
| `
|
|
6705
|
-
| `
|
|
6706
|
-
| `
|
|
7180
|
+
| `ruflo start` | `ruflo mcp start` | MCP is explicit |
|
|
7181
|
+
| `ruflo init` | `ruflo init --wizard` | Interactive mode |
|
|
7182
|
+
| `ruflo spawn <type>` | `ruflo agent spawn -t <type>` | Nested under `agent` |
|
|
7183
|
+
| `ruflo swarm create` | `ruflo swarm init --topology mesh` | Explicit topology |
|
|
6707
7184
|
| `--pattern-store path` | `--memory-backend agentdb` | Backend selection |
|
|
6708
7185
|
| `hooks record` | `hooks post-edit --success true` | Explicit success flag |
|
|
6709
7186
|
| `memory get <key>` | `memory retrieve --key <key>` | Explicit flag |
|
|
@@ -6713,7 +7190,7 @@ npx claude-flow@v3alpha doctor --fix
|
|
|
6713
7190
|
|
|
6714
7191
|
### Configuration Migration
|
|
6715
7192
|
|
|
6716
|
-
**V2 Config (`.
|
|
7193
|
+
**V2 Config (`.ruflo/config.json`)**:
|
|
6717
7194
|
```json
|
|
6718
7195
|
{
|
|
6719
7196
|
"mode": "basic",
|
|
@@ -6745,7 +7222,7 @@ npx claude-flow@v3alpha doctor --fix
|
|
|
6745
7222
|
|
|
6746
7223
|
```typescript
|
|
6747
7224
|
// V2 (deprecated)
|
|
6748
|
-
import { ClaudeFlow, Agent, Memory } from '
|
|
7225
|
+
import { ClaudeFlow, Agent, Memory } from 'ruflo';
|
|
6749
7226
|
|
|
6750
7227
|
// V3 (new)
|
|
6751
7228
|
import { ClaudeFlowClient } from '@claude-flow/cli';
|
|
@@ -6760,10 +7237,10 @@ If migration fails, you can rollback:
|
|
|
6760
7237
|
|
|
6761
7238
|
```bash
|
|
6762
7239
|
# Check rollback options
|
|
6763
|
-
npx
|
|
7240
|
+
npx ruflo@v3alpha migrate rollback --list
|
|
6764
7241
|
|
|
6765
7242
|
# Rollback to V2
|
|
6766
|
-
npx
|
|
7243
|
+
npx ruflo@v3alpha migrate rollback --to v2
|
|
6767
7244
|
|
|
6768
7245
|
# Restore backup manually if needed
|
|
6769
7246
|
rm -rf ./data
|
|
@@ -6772,12 +7249,12 @@ cp -r ./data-backup-v2 ./data
|
|
|
6772
7249
|
|
|
6773
7250
|
### Post-Migration Checklist
|
|
6774
7251
|
|
|
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
|
|
7252
|
+
- [ ] Verify all agents spawn correctly: `npx ruflo@v3alpha agent list`
|
|
7253
|
+
- [ ] Check memory search works: `npx ruflo@v3alpha memory search -q "test"`
|
|
7254
|
+
- [ ] Confirm MCP server starts: `npx ruflo@v3alpha mcp start`
|
|
7255
|
+
- [ ] Run doctor diagnostics: `npx ruflo@v3alpha doctor`
|
|
7256
|
+
- [ ] Test a simple swarm: `npx ruflo@v3alpha swarm init --topology mesh`
|
|
7257
|
+
- [ ] Bootstrap learning: `npx ruflo@v3alpha hooks pretrain`
|
|
6781
7258
|
|
|
6782
7259
|
### Common Migration Issues
|
|
6783
7260
|
|