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

rUvc8127d3766b5
diff --git a/.claude/checkpoints/1755800718.json b/.claude/checkpoints/1755800718.json
new file mode 100644
index 0000000000..5e2e594998
--- /dev/null
+++ b/.claude/checkpoints/1755800718.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250821-182518", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/templates/claude-md.js", "timestamp": "2025-08-21T18:25:18Z", "type": "pre-edit", "original_branch": "alpha91"}
diff --git a/.claude/checkpoints/1755800720.json b/.claude/checkpoints/1755800720.json
new file mode 100644
index 0000000000..c3a017643c
--- /dev/null
+++ b/.claude/checkpoints/1755800720.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250821-182520", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/templates/claude-md.js", "timestamp": "2025-08-21T18:25:20Z", "type": "post-edit", "branch": "alpha91", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 48 ++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +-- .claude/checkpoints/1755800702.json | 1 + .claude/checkpoints/1755800704.json | 1 + claude-flow-wiki | 0 .../simple-commands/init/templates/claude-md.js | 12 +++--- 7 files changed, 61 insertions(+), 9 deletions(-) "}
diff --git a/src/cli/simple-commands/init/templates/claude-md.js b/src/cli/simple-commands/init/templates/claude-md.js
index 20c553ea17..1d936cc13d 100644
--- a/src/cli/simple-commands/init/templates/claude-md.js
+++ b/src/cli/simple-commands/init/templates/claude-md.js
@@ -659,34 +659,43 @@ npx claude-flow@alpha hooks session-end --export-metrics true
## 🎯 Concurrent Execution Examples
-### βœ… CORRECT (Single Message):
+### βœ… CORRECT WORKFLOW: MCP Coordinates, Claude Code Executes
+
\`\`\`javascript
-[BatchTool]:
- // Initialize swarm
+// Step 1: MCP tools set up coordination (optional, for complex tasks)
+[Single Message - Coordination Setup]:
mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 6 }
mcp__claude-flow__agent_spawn { type: "researcher" }
mcp__claude-flow__agent_spawn { type: "coder" }
mcp__claude-flow__agent_spawn { type: "tester" }
+
+// Step 2: Claude Code Task tool spawns ACTUAL agents that do the work
+[Single Message - Parallel Agent Execution]:
+ // Claude Code's Task tool spawns real agents concurrently
+ Task("Research agent", "Analyze API requirements and best practices. Check memory for prior decisions.", "researcher")
+ Task("Coder agent", "Implement REST endpoints with authentication. Coordinate via hooks.", "coder")
+ Task("Database agent", "Design and implement database schema. Store decisions in memory.", "code-analyzer")
+ Task("Tester agent", "Create comprehensive test suite with 90% coverage.", "tester")
+ Task("Reviewer agent", "Review code quality and security. Document findings.", "reviewer")
- // Spawn agents with Task tool
- Task("Research agent: Analyze requirements...")
- Task("Coder agent: Implement features...")
- Task("Tester agent: Create test suite...")
-
- // Batch todos
+ // Batch ALL todos in ONE call
TodoWrite { todos: [
- {id: "1", content: "Research", status: "in_progress", priority: "high"},
- {id: "2", content: "Design", status: "pending", priority: "high"},
- {id: "3", content: "Implement", status: "pending", priority: "high"},
- {id: "4", content: "Test", status: "pending", priority: "medium"},
- {id: "5", content: "Document", status: "pending", priority: "low"}
+ {id: "1", content: "Research API patterns", status: "in_progress", priority: "high"},
+ {id: "2", content: "Design database schema", status: "in_progress", priority: "high"},
+ {id: "3", content: "Implement authentication", status: "pending", priority: "high"},
+ {id: "4", content: "Build REST endpoints", status: "pending", priority: "high"},
+ {id: "5", content: "Write unit tests", status: "pending", priority: "medium"},
+ {id: "6", content: "Integration tests", status: "pending", priority: "medium"},
+ {id: "7", content: "API documentation", status: "pending", priority: "low"},
+ {id: "8", content: "Performance optimization", status: "pending", priority: "low"}
]}
- // File operations
- Bash "mkdir -p app/{src,tests,docs}"
- Write "app/src/index.js"
- Write "app/tests/index.test.js"
- Write "app/docs/README.md"
+ // Parallel file operations
+ Bash "mkdir -p app/{src,tests,docs,config}"
+ Write "app/package.json"
+ Write "app/src/server.js"
+ Write "app/tests/server.test.js"
+ Write "app/docs/API.md"
\`\`\`
### ❌ WRONG (Multiple Messages):