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

rUv1ddbcb7c46bf
diff --git a/.claude/checkpoints/task-1755800594.json b/.claude/checkpoints/task-1755800594.json
new file mode 100644
index 0000000000..ce75e7d88f
--- /dev/null
+++ b/.claude/checkpoints/task-1755800594.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250821-182313", "task": "i need to update the claude.md that gets generated and the instructions inserts using --claude to be", "timestamp": "2025-08-21T18:23:14Z", "commit": "56d0a503802aac1bc3328f683a9c789d5300ee59", "github_release": "true"}
diff --git a/src/cli/simple-commands/init/templates/claude-md.js b/src/cli/simple-commands/init/templates/claude-md.js
index c260b1cdad..f04e0244db 100644
--- a/src/cli/simple-commands/init/templates/claude-md.js
+++ b/src/cli/simple-commands/init/templates/claude-md.js
@@ -479,16 +479,35 @@ export function createOptimizedSparcClaudeMd() {
1. ALL operations MUST be concurrent/parallel in a single message
2. **NEVER save working files, text/mds and tests to the root folder**
3. ALWAYS organize files in appropriate subdirectories
+4. **USE CLAUDE CODE'S TASK TOOL** for spawning agents concurrently, not just MCP
### ⚑ GOLDEN RULE: "1 MESSAGE = ALL RELATED OPERATIONS"
**MANDATORY PATTERNS:**
- **TodoWrite**: ALWAYS batch ALL todos in ONE call (5-10+ todos minimum)
-- **Task tool**: ALWAYS spawn ALL agents in ONE message with full instructions
+- **Task tool (Claude Code)**: ALWAYS spawn ALL agents in ONE message with full instructions
- **File operations**: ALWAYS batch ALL reads/writes/edits in ONE message
- **Bash commands**: ALWAYS batch ALL terminal operations in ONE message
- **Memory operations**: ALWAYS batch ALL memory store/retrieve in ONE message
+### 🎯 CRITICAL: Claude Code Task Tool for Agent Execution
+
+**Claude Code's Task tool is the PRIMARY way to spawn agents:**
+\`\`\`javascript
+// βœ… CORRECT: Use Claude Code's Task tool for parallel agent execution
+[Single Message]:
+ Task("Research agent", "Analyze requirements and patterns...", "researcher")
+ Task("Coder agent", "Implement core features...", "coder")
+ Task("Tester agent", "Create comprehensive tests...", "tester")
+ Task("Reviewer agent", "Review code quality...", "reviewer")
+ Task("Architect agent", "Design system architecture...", "system-architect")
+\`\`\`
+
+**MCP tools are ONLY for coordination setup:**
+- \`mcp__claude-flow__swarm_init\` - Initialize coordination topology
+- \`mcp__claude-flow__agent_spawn\` - Define agent types for coordination
+- \`mcp__claude-flow__task_orchestrate\` - Orchestrate high-level workflows
+
### πŸ“ File Organization Rules
**NEVER save to root folder. Use these directories:**