From 849219fedf714cee8a213ea72c8cebb9f502d796 Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 21 Aug 2025 18:32:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/src/cli/simple-commands/hive-mind.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cli/simple-commands/hive-mind.js | 23 ++++++++++++++++--- .../.claude/checkpoints/task-1755800931.json | 1 + 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 test-claude-md-update/.claude/checkpoints/task-1755800931.json diff --git a/src/cli/simple-commands/hive-mind.js b/src/cli/simple-commands/hive-mind.js index 1cf1dadf70..c9b34a16a6 100644 --- a/src/cli/simple-commands/hive-mind.js +++ b/src/cli/simple-commands/hive-mind.js @@ -2228,13 +2228,30 @@ ${workerTypes.map((type) => `• ${type}: ${workerGroups[type].length} agents`). As the Queen coordinator, you must: -1. **INITIALIZE THE HIVE** (Single BatchTool Message): - [BatchTool]: +1. **INITIALIZE THE HIVE** (CRITICAL: Use Claude Code's Task Tool for Agents): + + Step 1: Optional MCP Coordination Setup (Single Message): + [MCP Tools - Coordination Only]: ${workerTypes.map((type) => ` mcp__claude-flow__agent_spawn { "type": "${type}", "count": ${workerGroups[type].length} }`).join('\n')} mcp__claude-flow__memory_store { "key": "hive/objective", "value": "${objective}" } mcp__claude-flow__memory_store { "key": "hive/queen", "value": "${queenType}" } mcp__claude-flow__swarm_think { "topic": "initial_strategy" } - TodoWrite { "todos": [/* Create 5-10 high-level tasks */] } + + Step 2: REQUIRED - Spawn ACTUAL Agents with Claude Code's Task Tool (Single Message): + [Claude Code Task Tool - CONCURRENT Agent Execution]: + ${workerTypes.map((type) => ` Task("${type.charAt(0).toUpperCase() + type.slice(1)} Agent", "You are a ${type} in the hive. Coordinate via hooks. ${getWorkerTypeInstructions(type).split('\n')[0]}", "${type}")`).join('\n')} + + Step 3: Batch ALL Todos Together (Single TodoWrite Call): + TodoWrite { "todos": [ + { "id": "1", "content": "Initialize hive mind collective", "status": "in_progress", "priority": "high" }, + { "id": "2", "content": "Establish consensus protocols", "status": "pending", "priority": "high" }, + { "id": "3", "content": "Distribute initial tasks to workers", "status": "pending", "priority": "high" }, + { "id": "4", "content": "Set up collective memory", "status": "pending", "priority": "high" }, + { "id": "5", "content": "Monitor worker health", "status": "pending", "priority": "medium" }, + { "id": "6", "content": "Aggregate worker outputs", "status": "pending", "priority": "medium" }, + { "id": "7", "content": "Learn from patterns", "status": "pending", "priority": "low" }, + { "id": "8", "content": "Optimize performance", "status": "pending", "priority": "low" } + ] } 2. **ESTABLISH COLLECTIVE INTELLIGENCE**: - Use consensus_vote for major decisions diff --git a/test-claude-md-update/.claude/checkpoints/task-1755800931.json b/test-claude-md-update/.claude/checkpoints/task-1755800931.json new file mode 100644 index 0000000000..140d2b2c45 --- /dev/null +++ b/test-claude-md-update/.claude/checkpoints/task-1755800931.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250821-182849", "task": "include the guidance in the prompts injected as part of the swarm and hive-mind non-interactive. ", "timestamp": "2025-08-21T18:28:50Z", "commit": "0d2362eb71131f669677109db98f9b981e91e579", "github_release": "true"}