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

rUvd0e132cbc1ca
diff --git a/.claude/helpers/context-persistence-hook.mjs b/.claude/helpers/context-persistence-hook.mjs
index 742af94b1f..744ac20c60 100644
--- a/.claude/helpers/context-persistence-hook.mjs
+++ b/.claude/helpers/context-persistence-hook.mjs
@@ -112,6 +112,17 @@ class SQLiteBackend {
CREATE INDEX IF NOT EXISTS idx_te_created ON transcript_entries(created_at);
`);
+ // Schema migration: add confidence + embedding columns (self-learning support)
+ try {
+ this.db.exec(`ALTER TABLE transcript_entries ADD COLUMN confidence REAL NOT NULL DEFAULT 0.8`);
+ } catch { /* column already exists */ }
+ try {
+ this.db.exec(`ALTER TABLE transcript_entries ADD COLUMN embedding BLOB`);
+ } catch { /* column already exists */ }
+ try {
+ this.db.exec(`CREATE INDEX IF NOT EXISTS idx_te_confidence ON transcript_entries(confidence)`);
+ } catch { /* index already exists */ }
+
// Prepare statements for reuse
this._stmts = {
insert: this.db.prepare(`