[macOS] `hive-mind spawn` hangs: printed Swarm ID never shows up in `hive-mind status`, workers stay `idle`, tasks remain `0`
- Dominant language
- TypeScript
- Stars
- 72.7k
- Forks
- 8.6k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 83
Description
## Summary
Following the README instructions, spawning a new Hive Mind reports that the swarm is initialized and workers are starting, but then everything stalls. The Swarm ID printed by `spawn` never appears in `hive-mind status`. Instead, `status` shows a different swarm with `0` tasks and all workers `idle`. Waiting >3,000 seconds shows no progress.
There also appears to be an **ID mismatch/normalization issue**: the `spawn` output uses an ID with **underscores**, while `status` shows a different ID with **hyphens** and different numeric segments. An MCP `memory_usage` store event writes to yet another swarm namespace, suggesting the components arenβt referencing the same swarm.
## Steps to Reproduce
1. In a clean project directory, initialize:
```bash
npx claude-flow@alpha init --force
```
2. Spawn a hive mind (per docs):
```bash
npx claude-flow@alpha hive-mind spawn "gameplay" --namespace gameplay --claude
```
3. Observe the spawn output and then check status:
```bash
npx claude-flow@alpha hive-mind status
```
## Expected Behavior
* The Swarm ID printed by `spawn` appears in `hive-mind status`.
* Initial tasks are created (>0), and workers progress from `idle` to `in progress`.
* Ongoing activity/updates are visible within a reasonable time.
## Actual Behavior
* `spawn` prints an initialized swarm and βdeployingβ message, then stalls indefinitely. Example:
```
π HIVE MIND INITIALIZED - Swarm ID: swarm_1755248730668_xjfiuzvrf
Active Workers:
- π¬ researcher-alpha: Game mechanics, player psychology, market analysis
- π» coder-beta: Game engine, physics, rendering, optimization
- π analyst-gamma: Performance metrics, UX, balancing
- π§ͺ tester-delta: QA testing, bug tracking, playtesting
Now deploying the swarm to begin gameplay development. Let me coordinate the workers on initial tasks:
```
* MCP events show mixed IDs/namespaces:
```
βΊ claude-flow - swarm_status (MCP)(swarmId: "swarm_1755248730668_xjfiuzvrf")
βΊ claude-flow - memory_usage (MCP)(action: "store", key: "hive/phase1/complete", value: "Research and architecture phase
complete. Core mechanics defined: 3-layer loop system, hybrid-casual balance, ECS
architecture, performance targets set.", namespace: "swarm-1755248699199")
```
> Note: `swarm_status` references `swarm_1755248730668_xjfiuzvrf` (underscores),
> while `memory_usage` writes under `swarm-1755248699199` (hyphens, different numbers).
* `hive-mind status` shows **another** swarm entirely, with no tasks and all workers `idle`:
```
π Active Hive Mind Swarms
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Swarm: hive-1755248699193
ID: swarm-1755248699199-e0m7d9vlr
Objective: gameplay
Queen Type: strategic
Status: active
Created: 15.8.2025, 09:04:59
Agents:
π Queen: Queen Coordinator (active)
π Workers:
- Researcher Worker 1 (researcher) idle
- Coder Worker 2 (coder) idle
- Analyst Worker 3 (analyst) idle
- Tester Worker 4 (tester) idle
Tasks:
Total: 0
Completed: null
In Progress: null
Pending: null
Collective Memory:
Entries: 4
Consensus Decisions:
Total: 0
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
* After >3,000 seconds, nothing progresses.
## Observations / Hypothesis
* **Swarm ID normalization mismatch** (underscores vs hyphens) and differing numeric suffixes suggest the CLI, MCP event handlers, and persistence layer are not referring to the same swarm record.
* The βNow deploying β¦ initial tasksβ message doesnβt result in any tasks; the task seeding/enqueue step may be failing or writing to the wrong namespace.
* MCP `memory_usage` storing under a different swarm namespace further indicates cross-wiring between IDs.
## Workarounds Tried
* Re-initializing with `init --force`.
* Re-running `spawn` and polling `status` for >3,000 seconds.
No effective workaround found.
## Environment
* **OS:** macOS 15.6 (Sequoia)
* **Hardware:** Apple Silicon (M-series)
* **Editor:** Claude Code (latest version)
* **CLI invocation:** `npx claude-flow@alpha`
* **Network:** No special proxy/VPN involved (standard home connection)
> If helpful, I can re-run with verbose/debug (e.g., `DEBUG=claude-flow*`) and share full logs.
Contributor guide
Research direction
Start by reproducing the issue with the documented `hive-mind spawn` and `hive-mind status` commands, then trace how their Swarm IDs are passed through the MCP `swarm_status` and `memory_usage` entry points. Compare the generated identifiers and namespaces, and verify task seeding. Done means the spawned ID appears in status, tasks are created, and workers progress beyond idle.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100