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/bin/claude-flow.js

rUv87eeaf5af5d0
diff --git a/.claude/checkpoints/task-1754074213.json b/.claude/checkpoints/task-1754074213.json
new file mode 100644
index 0000000000..83fb1adcd8
--- /dev/null
+++ b/.claude/checkpoints/task-1754074213.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250801-185012", "task": "{{user_prompt}} ", "timestamp": "2025-08-01T18:50:13Z", "commit": "472dd1006708d1fe255822c68b661fbafa32064b", "github_release": "true"}
diff --git a/bin/claude-flow.js b/bin/claude-flow.js
index 1abf0d78eb..4d919fa999 100755
--- a/bin/claude-flow.js
+++ b/bin/claude-flow.js
@@ -40,11 +40,29 @@ async function main() {
if (existsSync(jsFile)) {
const child = spawn('node', [jsFile, ...args], {
stdio: 'inherit',
- shell: false
+ shell: false,
+ detached: false // Prevent orphaned processes
});
+ // Enhanced process cleanup for all platforms
+ const cleanup = () => {
+ if (!child.killed) {
+ child.kill('SIGTERM');
+ setTimeout(() => {
+ if (!child.killed) {
+ child.kill('SIGKILL');
+ }
+ }, 5000);
+ }
+ };
+
+ process.on('SIGTERM', cleanup);
+ process.on('SIGINT', cleanup);
+ process.on('exit', cleanup);
+
child.on('error', (error) => {
console.error('❌ Node.js execution failed:', error.message);
+ cleanup();
process.exit(1);
});