π 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
π Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/analysis.js
rUvae4ef3889c39
diff --git a/.claude/checkpoints/1755115737.json b/.claude/checkpoints/1755115737.jsonnew file mode 100644index 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.jsonnew file mode 100644index 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.jsindex 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.`);}