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

rUvcc7b11aa7c5a
diff --git a/v3/implementation/adrs/ADR-006-UNIFIED-MEMORY.md b/v3/implementation/adrs/ADR-006-UNIFIED-MEMORY.md
index 1c006d995e..5811632882 100644
--- a/v3/implementation/adrs/ADR-006-UNIFIED-MEMORY.md
+++ b/v3/implementation/adrs/ADR-006-UNIFIED-MEMORY.md
@@ -142,6 +142,45 @@ async bulkDelete(ids: string[]): Promise<Map<string, boolean>>;
---
+## Updates (2026-01-08)
+
+### CLI Memory Init Command
+
+Added `memory init` command to CLI (`@claude-flow/[email protected]`) using **sql.js** (WASM SQLite) for cross-platform compatibility without native compilation.
+
+```bash
+# Initialize memory database
+npx @claude-flow/cli@latest memory init
+
+# Options
+npx @claude-flow/cli@latest memory init --backend sqlite # Default
+npx @claude-flow/cli@latest memory init --path ./data/custom.db
+npx @claude-flow/cli@latest memory init --force # Overwrite existing
+```
+
+**Schema (6 tables):**
+
+| Table | Schema |
+|-------|--------|
+| `memory_entries` | `id, namespace, key, value, metadata, created_at, updated_at, ttl` |
+| `vectors` | `id, entry_id, embedding (768-dim), norm` |
+| `patterns` | `id, name, pattern_data, confidence, created_at, updated_at` |
+| `sessions` | `id, session_data, started_at, ended_at, status` |
+| `trajectories` | `id, session_id, step, state, action, reward, next_state, created_at` |
+| `metadata` | `key, value, updated_at` |
+
+**Why sql.js:**
+- βœ… Cross-platform (WASM, no native compilation)
+- βœ… Works in GitHub Codespaces, Docker, CI
+- βœ… No `better-sqlite3` native binding issues
+- βœ… Persistent storage via file sync
+
+**Locations:**
+- `.swarm/memory.db` - Primary database
+- `.claude/memory.db` - Sync location for Claude Code hooks
+
+---
+
**Implementation Date:** 2026-01-04
-**Last Updated:** 2026-01-07
-**Status:** βœ… Complete (with optimizations)
+**Last Updated:** 2026-01-08
+**Status:** βœ… Complete (with CLI init)