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: Edit /workspaces/claude-code-flow/src/cli/simple-commands/memory.js

rUve08599719dac
diff --git a/.claude/checkpoints/1754403629.json b/.claude/checkpoints/1754403629.json
new file mode 100644
index 0000000000..bd085ac5b8
--- /dev/null
+++ b/.claude/checkpoints/1754403629.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250805-142029", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/memory.js", "timestamp": "2025-08-05T14:20:29Z", "type": "pre-edit", "original_branch": "alpha-86"}
diff --git a/.claude/checkpoints/1754403631.json b/.claude/checkpoints/1754403631.json
new file mode 100644
index 0000000000..f2d3c971c3
--- /dev/null
+++ b/.claude/checkpoints/1754403631.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250805-142031", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/memory.js", "timestamp": "2025-08-05T14:20:31Z", "type": "post-edit", "branch": "alpha-86", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 2868 ++++++++++++------------------ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754403590.json | 1 + .claude/checkpoints/1754403592.json | 1 + src/cli/simple-commands/memory.js | 16 +- 6 files changed, 1161 insertions(+), 1733 deletions(-) "}
diff --git a/src/cli/simple-commands/memory.js b/src/cli/simple-commands/memory.js
index 331d0fee96..34a5ac1305 100644
--- a/src/cli/simple-commands/memory.js
+++ b/src/cli/simple-commands/memory.js
@@ -250,6 +250,16 @@ async function clearMemory(subArgs, saveMemory, namespace) {
}
try {
+ // Helper to load memory data
+ async function loadMemory() {
+ try {
+ const content = await fs.readFile('./memory/memory-store.json', 'utf8');
+ return JSON.parse(content);
+ } catch {
+ return {};
+ }
+ }
+
const data = await loadMemory();
if (!data[namespace]) {