π 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/swarm.js
rUvaf6fec58847c
diff --git a/.claude/checkpoints/task-1755117467.json b/.claude/checkpoints/task-1755117467.jsonnew file mode 100644index 0000000000..009e1f365f--- /dev/null+++ b/.claude/checkpoints/task-1755117467.json@@ -0,0 +1 @@+{"checkpoint": "task-20250813-203746", "task": "it doesn't open the claude code cli any more. @ruvnet β /workspaces/claude-code-flow (alpha-89) $ ", "timestamp": "2025-08-13T20:37:47Z", "commit": "2f71b56ca30d3aa8e6dc38b86bfe00c394739f12", "github_release": "true"}diff --git a/src/cli/simple-commands/swarm.js b/src/cli/simple-commands/swarm.jsindex fea8a23a07..73cc41e186 100644--- a/src/cli/simple-commands/swarm.js+++ b/src/cli/simple-commands/swarm.js@@ -792,28 +792,23 @@ The swarm should be self-documenting - use memory_store to save all important in// --claude flag means interactive mode, so don't add non-interactive flags- // Spawn claude with telemetry tracking if enabled- const useWrapper = process.env.CLAUDE_CODE_ENABLE_TELEMETRY === '1';+ // For --claude interactive mode, don't use the wrapper that interferes with stdio+ // Just spawn Claude directly with telemetry environment variables+ const claudeEnv = { ...process.env };- if (useWrapper) {- // Use telemetry wrapper to track tokens- const { runClaudeWithTelemetry } = await import('./claude-telemetry.js');- console.log(`π Telemetry enabled - tracking token usage...`);-- const result = await runClaudeWithTelemetry(claudeArgs, {- sessionId: `swarm-${Date.now()}`,- agentType: 'swarm-claude',- });-- console.log('\nβ Claude Code session completed with telemetry!');- process.exit(result.code);- } else {- const claudeProcess = spawn('claude', claudeArgs, {- stdio: 'inherit',- shell: false,- });+ if (process.env.CLAUDE_CODE_ENABLE_TELEMETRY === '1') {+ console.log(`π Telemetry enabled - token usage will be tracked`);+ // Set telemetry to file output instead of console to avoid interference+ claudeEnv.OTEL_METRICS_EXPORTER = 'none'; // Disable console output+ claudeEnv.OTEL_LOGS_EXPORTER = 'none'; // Disable console output}+ const claudeProcess = spawn('claude', claudeArgs, {+ stdio: 'inherit',+ shell: false,+ env: claudeEnv+ });+console.log('\nβ Claude Code launched with swarm coordination prompt!');console.log(' The swarm coordinator will orchestrate all agent tasks');console.log(' Use MCP tools for coordination and memory sharing');