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 edits

rUv04d6e55e4c9f
diff --git a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
index bf0106cea8..de085b11b3 100644
--- a/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
+++ b/v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs
@@ -168,6 +168,15 @@ const handlers = {
},
'session-end': () => {
+ // Consolidate intelligence before ending session
+ if (intelligence && intelligence.consolidate) {
+ try {
+ const result = intelligence.consolidate();
+ if (result && result.entries > 0) {
+ console.log(`[INTELLIGENCE] Consolidated: ${result.entries} entries, ${result.edges} edges${result.newEntries > 0 ? `, ${result.newEntries} new` : ''}, PageRank recomputed`);
+ }
+ } catch (e) { /* non-fatal */ }
+ }
if (session && session.end) {
session.end();
} else {