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

rUv92fa29f83f99
diff --git a/.claude/helpers/context-persistence-hook.mjs b/.claude/helpers/context-persistence-hook.mjs
index 00d30f05fa..3eaf9791b9 100644
--- a/.claude/helpers/context-persistence-hook.mjs
+++ b/.claude/helpers/context-persistence-hook.mjs
@@ -1364,10 +1364,10 @@ async function autoOptimize(backend, backendType) {
* Find relevant context from OTHER sessions using semantic similarity.
* This enables "What did we discuss about auth?" across sessions.
*/
-function crossSessionSearch(backend, queryText, currentSessionId, k = 5) {
+async function crossSessionSearch(backend, queryText, currentSessionId, k = 5) {
if (!backend.semanticSearch) return [];
try {
- const queryEmb = createHashEmbedding(queryText);
+ const { embedding: queryEmb } = await createEmbedding(queryText);
const results = backend.semanticSearch(queryEmb, k * 2, NAMESPACE);
// Filter out current session entries (we already have those)
return results