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

checkpoint: File edit:

rUv648bb4f201df
diff --git a/v3/@claude-flow/swarm/src/topology-manager.ts b/v3/@claude-flow/swarm/src/topology-manager.ts
index d318ffc3bf..5219eed351 100644
--- a/v3/@claude-flow/swarm/src/topology-manager.ts
+++ b/v3/@claude-flow/swarm/src/topology-manager.ts
@@ -92,6 +92,9 @@ export class TopologyManager extends EventEmitter implements ITopologyManager {
this.nodeIndex.set(agentId, node);
this.state.nodes.push(node);
+ // Update role index for O(1) role-based lookups
+ this.addToRoleIndex(node);
+
// Initialize adjacency list
this.adjacencyList.set(agentId, new Set(connections));