Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 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

fix: hive-mind_status reads real agent state instead of hardcoded values (#1382) (#1385)

rUv66cd6cbbc8d2
diff --git a/v3/@claude-flow/cli/src/mcp-tools/hive-mind-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/hive-mind-tools.ts
index 2035142716..697221fa6f 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/hive-mind-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/hive-mind-tools.ts
@@ -356,13 +356,17 @@ export const hiveMindTools: MCPTool[] = [
electedAt: state.queen.electedAt,
term: state.queen.term,
} : { id: 'N/A', status: 'offline', load: 0, tasksQueued: 0 },
- workers: state.workers.map(w => ({
- id: w,
- type: 'worker',
- status: 'idle',
- currentTask: null,
- tasksCompleted: 0,
- })),
+ workers: state.workers.map(w => {
+ const agentStore = loadAgentStore();
+ const agent = agentStore.agents[w] as Record<string, unknown> | undefined;
+ return {
+ id: w,
+ type: (agent?.agentType as string) || 'worker',
+ status: (agent?.status as string) || 'unknown',
+ currentTask: (agent?.currentTask as string) || null,
+ tasksCompleted: (agent?.taskCount as number) || 0,
+ };
+ }),
metrics: {
totalTasks: state.consensus.history.length + state.consensus.pending.length,
completedTasks: state.consensus.history.length,