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/init/templates/claude-md.js

rUv932519b15659
diff --git a/.claude/checkpoints/1755800761.json b/.claude/checkpoints/1755800761.json
new file mode 100644
index 0000000000..d01c83271f
--- /dev/null
+++ b/.claude/checkpoints/1755800761.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250821-182600", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/templates/claude-md.js", "timestamp": "2025-08-21T18:26:01Z", "type": "pre-edit", "original_branch": "alpha91"}
diff --git a/.claude/checkpoints/1755800762.json b/.claude/checkpoints/1755800762.json
new file mode 100644
index 0000000000..d1beeb0e6d
--- /dev/null
+++ b/.claude/checkpoints/1755800762.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250821-182602", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/templates/claude-md.js", "timestamp": "2025-08-21T18:26:02Z", "type": "post-edit", "branch": "alpha91", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 72 ++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755800718.json | 1 + .claude/checkpoints/1755800720.json | 1 + claude-flow-wiki | 0 .../simple-commands/init/templates/claude-md.js | 47 ++++++++------ 7 files changed, 106 insertions(+), 23 deletions(-) "}
diff --git a/src/cli/simple-commands/init/templates/claude-md.js b/src/cli/simple-commands/init/templates/claude-md.js
index 1d936cc13d..5d7e8e8e64 100644
--- a/src/cli/simple-commands/init/templates/claude-md.js
+++ b/src/cli/simple-commands/init/templates/claude-md.js
@@ -635,9 +635,39 @@ claude mcp add claude-flow npx claude-flow@alpha mcp start
### System
\`benchmark_run\`, \`features_detect\`, \`swarm_monitor\`
+## 🚀 Agent Execution Flow with Claude Code
+
+### The Correct Pattern:
+
+1. **Optional**: Use MCP tools to set up coordination topology
+2. **REQUIRED**: Use Claude Code's Task tool to spawn agents that do actual work
+3. **REQUIRED**: Each agent runs hooks for coordination
+4. **REQUIRED**: Batch all operations in single messages
+
+### Example Full-Stack Development:
+
+\`\`\`javascript
+// Single message with all agent spawning via Claude Code's Task tool
+[Parallel Agent Execution]:
+ Task("Backend Developer", "Build REST API with Express. Use hooks for coordination.", "backend-dev")
+ Task("Frontend Developer", "Create React UI. Coordinate with backend via memory.", "coder")
+ Task("Database Architect", "Design PostgreSQL schema. Store schema in memory.", "code-analyzer")
+ Task("Test Engineer", "Write Jest tests. Check memory for API contracts.", "tester")
+ Task("DevOps Engineer", "Setup Docker and CI/CD. Document in memory.", "cicd-engineer")
+ Task("Security Auditor", "Review authentication. Report findings via hooks.", "reviewer")
+
+ // All todos batched together
+ TodoWrite { todos: [...8-10 todos...] }
+
+ // All file operations together
+ Write "backend/server.js"
+ Write "frontend/App.jsx"
+ Write "database/schema.sql"
+\`\`\`
+
## 📋 Agent Coordination Protocol
-### Every Agent MUST:
+### Every Agent Spawned via Task Tool MUST:
**1️⃣ BEFORE Work:**
\`\`\`bash