🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
Checkpoint: File edits
rUvbb3a02155f3e
diff --git a/v3/@claude-flow/memory/src/auto-memory-bridge.ts b/v3/@claude-flow/memory/src/auto-memory-bridge.tsindex f9d8b714f6..4ae5dad039 100644--- a/v3/@claude-flow/memory/src/auto-memory-bridge.ts+++ b/v3/@claude-flow/memory/src/auto-memory-bridge.ts@@ -469,12 +469,31 @@ export class AutoMemoryBridge extends EventEmitter {}}+ // ADR-049: Use graph PageRank to prioritize sections+ let sectionOrder: string[] | undefined;+ if (this.memoryGraph) {+ const topNodes = this.memoryGraph.getTopNodes(20);+ const categoryCounts = new Map<string, number>();+ for (const node of topNodes) {+ const cat = node.community || 'general';+ categoryCounts.set(cat, (categoryCounts.get(cat) || 0) + 1);+ }+ sectionOrder = [...categoryCounts.entries()]+ .sort((a, b) => b[1] - a[1])+ .map(([cat]) => cat)+ .filter((cat) => sections[cat]);+ }+// Prune sections before building the index to avoid O(n^2) rebuild loopconst budget = this.config.maxIndexLines;pruneSectionsToFit(sections, budget, this.config.pruneStrategy);- // Build the final index- const lines = buildIndexLines(sections, this.config.topicMapping as Record<string, string>);+ // Build the final index (with optional graph-aware ordering)+ const lines = buildIndexLines(+ sections,+ this.config.topicMapping as Record<string, string>,+ sectionOrder,+ );await fs.writeFile(this.getIndexPath(), lines.join('\n'), 'utf-8');this.emit('index:curated', { lines: lines.length });