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

rUv5f547c18d012
diff --git a/v3/@claude-flow/cli/src/init/statusline-generator.ts b/v3/@claude-flow/cli/src/init/statusline-generator.ts
index 01e2b1998c..95872c6ad6 100644
--- a/v3/@claude-flow/cli/src/init/statusline-generator.ts
+++ b/v3/@claude-flow/cli/src/init/statusline-generator.ts
@@ -205,7 +205,7 @@ function getSwarmStatus() {
};
}
-// Get system metrics
+// Get system metrics (dynamic based on actual state)
function getSystemMetrics() {
let memoryMB = 0;
let subAgents = 0;
@@ -218,10 +218,27 @@ function getSystemMetrics() {
memoryMB = Math.floor(process.memoryUsage().heapUsed / 1024 / 1024);
}
+ // Get learning stats for intelligence %
+ const learning = getLearningStats();
+
+ // Intelligence % based on learned patterns (0 patterns = 0%, 1000+ = 100%)
+ const intelligencePct = Math.min(100, Math.floor((learning.patterns / 10) * 1));
+
+ // Context % based on session history (0 sessions = 0%, grows with usage)
+ const contextPct = Math.min(100, Math.floor(learning.sessions * 5));
+
+ // Count active sub-agents from process list
+ try {
+ const agents = execSync('ps aux 2>/dev/null | grep -c "claude-flow.*agent" || echo "0"', { encoding: 'utf-8' });
+ subAgents = Math.max(0, parseInt(agents.trim()) - 1);
+ } catch (e) {
+ // Ignore
+ }
+
return {
memoryMB,
- contextPct: 56, // Would need Claude Code input
- intelligencePct: 30,
+ contextPct,
+ intelligencePct,
subAgents,
};
}