Skip to content

[Bug] Memory is not working at all #530

@datrinh

Description

@datrinh

Still have no working memory in v2.0.0-alpha.78
It's pretty unusable right now

After trying with ~5 hive-mind spawns i still get this output:

✅ Memory Bank Statistics:
   Total Entries: 0
   Namespaces: 0
   Size: 0.00 KB

Furthermore all my hive-mind spawns show the same status basically regardless of their progress:

Status: active
Created: 7/30/2025, 6:18:10 AM

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

During the runs I can sometimes see successful outputs like this though:

claude-flow - memory_usage (MCP)(action: "store", key: "hive/quality-assessment", value:
                                  "Code-Analyzer confirms excellent architecture (8.5/10), strong
                                  TypeScript implementation, production-ready foundations")
  ⎿  {
       "success": true,
       "action": "store",
       "key": "hive/quality-assessment",
       "namespace": "default",
       "stored": true,
       "size": 118,
       "id": 1578,
       "storage_type": "sqlite",
       "timestamp": "2025-07-30T06:46:24.849Z"
     }

⏺ claude-flow - memory_usage (MCP)(action: "store", key: "hive/testing-status", value: "QA-Engineer
                                  reports MVP validation complete with success criteria mostly met,
                                  configuration issues identified")
  ⎿  {
       "success": true,
       "action": "store",
       "key": "hive/testing-status",
       "namespace": "default",
       "stored": true,
       "size": 109,
       "id": 1579,
       "storage_type": "sqlite",
       "timestamp": "2025-07-30T06:46:25.908Z"
     }

When I quit (Ctrl+C) claude-flow after a session I get this:

✓ Claude Code completed successfully
/Users/xxx/.local/share/mise/installs/node/22.14.0/lib/node_modules/claude-flow/node_modules/better-sqlite3/lib/methods/wrappers.js:5
        return this[cppdb].prepare(sql, this, false);
                           ^

TypeError: The database connection is not open
    at Database.prepare (/Users/xxx/.local/share/mise/installs/node/22.14.0/lib/node_modules/claude-flow/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
    at HiveMindSessionManager.logSessionEvent (file:///Users/xxx/.local/share/mise/installs/node/22.14.0/lib/node_modules/claude-flow/src/cli/simple-commands/hive-mind/session-manager.js:644:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Node.js v22.14.0

Is there any workaround? Any previous version I should downgrade to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions