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

rUv433fb36f0ed8
diff --git a/.claude/checkpoints/1755115724.json b/.claude/checkpoints/1755115724.json
new file mode 100644
index 0000000000..762effe0ac
--- /dev/null
+++ b/.claude/checkpoints/1755115724.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250813-200844", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/token-tracker.js", "timestamp": "2025-08-13T20:08:44Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755115726.json b/.claude/checkpoints/1755115726.json
new file mode 100644
index 0000000000..d09f998613
--- /dev/null
+++ b/.claude/checkpoints/1755115726.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250813-200846", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/token-tracker.js", "timestamp": "2025-08-13T20:08:46Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 +++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/task-1755115641.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/token-tracker.js | 369 +++++++++++++++++++++++++++++++ 6 files changed, 410 insertions(+), 4 deletions(-) "}
diff --git a/src/cli/simple-commands/analysis.js b/src/cli/simple-commands/analysis.js
index fe2b2b5aac..294e853653 100644
--- a/src/cli/simple-commands/analysis.js
+++ b/src/cli/simple-commands/analysis.js
@@ -15,6 +15,14 @@ import {
getBottleneckAnalysis,
exportMetrics
} from './performance-metrics.js';
+import {
+ getRealTokenUsage,
+ calculateCost,
+ generateOptimizationSuggestions,
+ generateTokenUsageReport,
+ getAgentIcon,
+ trackTokens
+} from './token-tracker.js';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);