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: Edit /workspaces/claude-code-flow/src/cli/simple-commands/analysis.js

rUvae4ef3889c39
diff --git a/.claude/checkpoints/1755115737.json b/.claude/checkpoints/1755115737.json
new file mode 100644
index 0000000000..6ee3484577
--- /dev/null
+++ b/.claude/checkpoints/1755115737.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250813-200857", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/analysis.js", "timestamp": "2025-08-13T20:08:57Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755115739.json b/.claude/checkpoints/1755115739.json
new file mode 100644
index 0000000000..8a1a1153b4
--- /dev/null
+++ b/.claude/checkpoints/1755115739.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250813-200859", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/analysis.js", "timestamp": "2025-08-13T20:08:59Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 7992 ++++-------------------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755115724.json | 1 + .claude/checkpoints/1755115726.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/analysis.js | 8 + 7 files changed, 848 insertions(+), 7162 deletions(-) "}
diff --git a/src/cli/simple-commands/analysis.js b/src/cli/simple-commands/analysis.js
index 294e853653..179ea2c2d7 100644
--- a/src/cli/simple-commands/analysis.js
+++ b/src/cli/simple-commands/analysis.js
@@ -490,27 +490,29 @@ async function generateTokenUsageReport(tokenData, agent) {
}
async function showSimulatedTokenUsage(breakdown, costAnalysis) {
- // Existing simulated data as fallback
- console.log(`\nπŸ”’ TOKEN USAGE SUMMARY (Simulated):`);
- console.log(` πŸ“ Total tokens consumed: 45,231`);
- console.log(` πŸ“₯ Input tokens: 28,567 (63.2%)`);
- console.log(` πŸ“€ Output tokens: 16,664 (36.8%)`);
+ // Show honest message about no data instead of fake numbers
+ console.log(`\nπŸ”’ TOKEN USAGE ANALYSIS:`);
+ console.log(` ℹ️ No token usage data available yet.`);
+ console.log(`\n Token tracking requires:`);
+ console.log(` β€’ Claude Code API calls to be made`);
+ console.log(` β€’ Commands run with --claude flag`);
+ console.log(` β€’ Or set CLAUDE_CODE_ENABLE_TELEMETRY=1`);
+
+ console.log(`\nπŸ’‘ To start tracking tokens:`);
+ console.log(` 1. Run: export CLAUDE_CODE_ENABLE_TELEMETRY=1`);
+ console.log(` 2. Use: ./claude-flow swarm "task" --claude`);
+ console.log(` 3. Check back after running Claude commands`);
if (costAnalysis) {
- console.log(` πŸ’° Estimated cost: $0.23`);
+ console.log(`\nπŸ’° Cost analysis will be available once tokens are tracked.`);
+ console.log(` Pricing: $15/1M input tokens, $75/1M output tokens (Claude 3 Opus)`);
}
if (breakdown) {
- console.log(`\\nπŸ“Š BREAKDOWN BY AGENT TYPE:`);
- console.log(` 🎯 Coordinator: 12,430 tokens (27.5%)`);
- console.log(` πŸ‘¨β€πŸ’» Developer: 18,965 tokens (41.9%)`);
- console.log(` πŸ” Researcher: 8,734 tokens (19.3%)`);
- console.log(` πŸ“Š Analyzer: 5,102 tokens (11.3%)`);
-
- console.log(`\\nπŸ’‘ OPTIMIZATION OPPORTUNITIES:`);
- console.log(` β€’ Developer agents: Consider prompt optimization (-15% potential)`);
- console.log(` β€’ Coordinator agents: Implement response caching (-8% potential)`);
+ console.log(`\nπŸ“Š Agent breakdown will show once agents use Claude Code.`);
+ console.log(` Each agent type's token usage will be tracked separately.`);
}
- console.log(`\\nπŸ“„ Note: Enable CLAUDE_CODE_ENABLE_TELEMETRY=1 for real metrics`);
+ console.log(`\nπŸ“„ Reports will be generated once data is available.`);
+ console.log(` Enable CLAUDE_CODE_ENABLE_TELEMETRY=1 for automatic tracking.`);
}