🌊 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: File edits
rUv25c66b30d174
diff --git a/v3/@claude-flow/cli/src/commands/hooks.ts b/v3/@claude-flow/cli/src/commands/hooks.tsindex bbce06a8c7..6f8bcd7267 100644--- a/v3/@claude-flow/cli/src/commands/hooks.ts+++ b/v3/@claude-flow/cli/src/commands/hooks.ts@@ -3539,24 +3539,28 @@ const tokenOptimizeCommand: Command = {spinner.start();try {- // Dynamic import of TokenOptimizer- const { getTokenOptimizer } = await import('@claude-flow/integration');- const optimizer = await getTokenOptimizer();+ // Dynamic import of TokenOptimizer from source (until dist is built)+ const mod = await import('../../@claude-flow/integration/src/token-optimizer.js').catch(() => null);++ if (!mod) {+ throw new Error('TokenOptimizer module not found');+ }++ const optimizer = await mod.getTokenOptimizer();spinner.succeed('TokenOptimizer loaded');output.writeln();// Get anti-drift configconst config = optimizer.getOptimalConfig(agentCount);- output.printBox([- output.bold('Anti-Drift Swarm Config'),- '',- `Agents: ${output.highlight(String(agentCount))}`,- `Topology: ${output.highlight(config.topology)}`,- `Batch Size: ${output.highlight(String(config.batchSize))}`,- `Cache: ${output.highlight(config.cacheSizeMB + 'MB')}`,- `Success Rate: ${output.highlight((config.expectedSuccessRate * 100) + '%')}`,- ]);+ output.printBox(+ `Anti-Drift Swarm Config\n\n` ++ `Agents: ${agentCount}\n` ++ `Topology: ${config.topology}\n` ++ `Batch Size: ${config.batchSize}\n` ++ `Cache: ${config.cacheSizeMB}MB\n` ++ `Success Rate: ${(config.expectedSuccessRate * 100)}%`+ );// If query provided, get compact contextif (query) {