diff --git a/src/cli/simple-commands/hive-mind.js b/src/cli/simple-commands/hive-mind.js index c9b34a16a6..a5fc902b31 100644 --- a/src/cli/simple-commands/hive-mind.js +++ b/src/cli/simple-commands/hive-mind.js @@ -2339,12 +2339,30 @@ For the objective: "${objective}" 5. Aggregate and synthesize all worker outputs 6. Deliver comprehensive solution with consensus -⚡ PARALLEL EXECUTION REMINDER: -The Hive Mind operates with massive parallelism. Always batch operations: -- Spawn ALL workers in one message -- Create ALL initial tasks together +⚡ CRITICAL: CONCURRENT EXECUTION WITH CLAUDE CODE'S TASK TOOL: + +The Hive Mind MUST use Claude Code's Task tool for actual agent execution: + +✅ CORRECT Pattern: +[Single Message - All Agents Spawned Concurrently]: + Task("Researcher", "Research patterns and best practices...", "researcher") + Task("Coder", "Implement core features...", "coder") + Task("Tester", "Create comprehensive tests...", "tester") + Task("Analyst", "Analyze performance metrics...", "analyst") + TodoWrite { todos: [8-10 todos ALL in ONE call] } + +❌ WRONG Pattern: +Message 1: Task("agent1", ...) +Message 2: Task("agent2", ...) +Message 3: TodoWrite { single todo } +// This breaks parallel coordination! + +Remember: +- Use Claude Code's Task tool to spawn ALL agents in ONE message +- MCP tools are ONLY for coordination setup, not agent execution +- Batch ALL TodoWrite operations (5-10+ todos minimum) +- Execute ALL file operations concurrently - Store multiple memories simultaneously -- Check all statuses in parallel 🚀 BEGIN HIVE MIND EXECUTION: diff --git a/test-claude-md-update/.claude/checkpoints/1755801135.json b/test-claude-md-update/.claude/checkpoints/1755801135.json new file mode 100644 index 0000000000..f9039c99ae --- /dev/null +++ b/test-claude-md-update/.claude/checkpoints/1755801135.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250821-183215", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind.js", "timestamp": "2025-08-21T18:32:15Z", "type": "pre-edit", "original_branch": "alpha91"} diff --git a/test-claude-md-update/.claude/checkpoints/1755801137.json b/test-claude-md-update/.claude/checkpoints/1755801137.json new file mode 100644 index 0000000000..375710aead --- /dev/null +++ b/test-claude-md-update/.claude/checkpoints/1755801137.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250821-183217", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind.js", "timestamp": "2025-08-21T18:32:17Z", "type": "post-edit", "branch": "alpha91", "diff_summary": " .claude-flow/metrics/system-metrics.json | 84 ++++++++++++++++++++++ claude-flow-wiki | 0 src/cli/simple-commands/hive-mind.js | 23 +++++- .../.claude/checkpoints/task-1755800931.json | 1 + 4 files changed, 105 insertions(+), 3 deletions(-) "}