Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv8da8abbcb896
diff --git a/v3/@claude-flow/cli/CLAUDE.md b/v3/@claude-flow/cli/CLAUDE.md
index 906e64d966..5d8bb76e5f 100644
--- a/v3/@claude-flow/cli/CLAUDE.md
+++ b/v3/@claude-flow/cli/CLAUDE.md
@@ -415,9 +415,10 @@ npx @claude-flow/cli@latest migrate validate
V3 includes the RuVector Intelligence System:
- **SONA**: Self-Optimizing Neural Architecture (<0.05ms adaptation)
- **MoE**: Mixture of Experts for specialized routing
-- **HNSW**: 150x-12,500x faster pattern search
+- **HNSW**: 150x-12,500x faster pattern search (persistent to disk)
- **EWC++**: Elastic Weight Consolidation (prevents forgetting)
- **Flash Attention**: 2.49x-7.47x speedup
+- **Int8 Quantization**: 3.92x memory compression
The 4-step intelligence pipeline:
1. **RETRIEVE** - Fetch relevant patterns via HNSW
@@ -425,6 +426,57 @@ The 4-step intelligence pipeline:
3. **DISTILL** - Extract key learnings via LoRA
4. **CONSOLIDATE** - Prevent catastrophic forgetting via EWC++
+### Implemented Optimizations (alpha.76+)
+
+| Feature | Benefit | Location |
+|---------|---------|----------|
+| **Persistent HNSW** | 0ms warm loads, instant startup | `.swarm/hnsw.index` |
+| **Int8 Quantization** | 3.92x compression, 75% less memory | `quantizeInt8()` |
+| **ReasoningBank** | Pattern storage & similarity search | `intelligence.ts` |
+| **SONA Coordinator** | Trajectory recording & learning | `initializeIntelligence()` |
+
+### Using the Intelligence API
+
+```typescript
+import {
+ initializeIntelligence,
+ recordStep,
+ recordTrajectory,
+ findSimilarPatterns,
+ getIntelligenceStats
+} from '@claude-flow/cli/memory/intelligence';
+
+// Initialize SONA + ReasoningBank
+const init = await initializeIntelligence();
+
+// Record steps during task execution
+await recordStep({ type: 'observation', content: 'Found bug in auth module' });
+await recordStep({ type: 'action', content: 'Fixed validation logic' });
+
+// Record complete trajectory with verdict
+await recordTrajectory(steps, 'success');
+
+// Find similar patterns for new tasks
+const patterns = await findSimilarPatterns('authentication bug');
+```
+
+### Using Int8 Quantization
+
+```typescript
+import { quantizeInt8, dequantizeInt8, getQuantizationStats } from '@claude-flow/cli/memory';
+
+// Quantize embeddings for storage
+const { quantized, scale, zeroPoint } = quantizeInt8(embedding);
+// Result: Int8Array with 3.92x smaller footprint
+
+// Dequantize when needed
+const restored = dequantizeInt8(quantized, scale, zeroPoint);
+
+// Check compression stats
+const stats = getQuantizationStats(embedding);
+// { originalBytes: 1536, quantizedBytes: 392, compressionRatio: 3.92 }
+```
+
## 📦 Embeddings Package (v3.0.0-alpha.12)
Features:
diff --git a/v3/@claude-flow/cli/agents/architect.yaml b/v3/@claude-flow/cli/agents/architect.yaml
index 10b09a1026..9784ee52be 100644
--- a/v3/@claude-flow/cli/agents/architect.yaml
+++ b/v3/@claude-flow/cli/agents/architect.yaml
@@ -8,4 +8,4 @@ capabilities:
optimizations:
- context-caching
- memory-persistence
-createdAt: "2026-01-12T23:53:45.476Z"
+createdAt: "2026-01-13T00:24:32.819Z"
diff --git a/v3/@claude-flow/cli/agents/coder.yaml b/v3/@claude-flow/cli/agents/coder.yaml
index 8dd8ad83ca..626ade398f 100644
--- a/v3/@claude-flow/cli/agents/coder.yaml
+++ b/v3/@claude-flow/cli/agents/coder.yaml
@@ -8,4 +8,4 @@ capabilities:
optimizations:
- flash-attention
- token-reduction
-createdAt: "2026-01-12T23:53:45.476Z"
+createdAt: "2026-01-13T00:24:32.819Z"
diff --git a/v3/@claude-flow/cli/agents/reviewer.yaml b/v3/@claude-flow/cli/agents/reviewer.yaml
index eb7e73911e..3ea6ae9384 100644
--- a/v3/@claude-flow/cli/agents/reviewer.yaml
+++ b/v3/@claude-flow/cli/agents/reviewer.yaml
@@ -7,4 +7,4 @@ capabilities:
- best-practices
optimizations:
- incremental-analysis
-createdAt: "2026-01-12T23:53:45.476Z"
+createdAt: "2026-01-13T00:24:32.819Z"
diff --git a/v3/@claude-flow/cli/agents/security-architect.yaml b/v3/@claude-flow/cli/agents/security-architect.yaml
index f98f118538..bff15f0c25 100644
--- a/v3/@claude-flow/cli/agents/security-architect.yaml
+++ b/v3/@claude-flow/cli/agents/security-architect.yaml
@@ -7,4 +7,4 @@ capabilities:
- security-review
optimizations:
- pattern-matching
-createdAt: "2026-01-12T23:53:45.476Z"
+createdAt: "2026-01-13T00:24:32.819Z"
diff --git a/v3/@claude-flow/cli/agents/tester.yaml b/v3/@claude-flow/cli/agents/tester.yaml
index 9825f87bd2..125c8d6de3 100644
--- a/v3/@claude-flow/cli/agents/tester.yaml
+++ b/v3/@claude-flow/cli/agents/tester.yaml
@@ -7,4 +7,4 @@ capabilities:
- coverage
optimizations:
- parallel-execution
-createdAt: "2026-01-12T23:53:45.476Z"
+createdAt: "2026-01-13T00:24:32.819Z"