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/automation-executor.js

rUv2a36b6a8c393
diff --git a/.claude/checkpoints/1754345073.json b/.claude/checkpoints/1754345073.json
new file mode 100644
index 0000000000..5560dc6741
--- /dev/null
+++ b/.claude/checkpoints/1754345073.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250804-220433", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-04T22:04:33Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754345075.json b/.claude/checkpoints/1754345075.json
new file mode 100644
index 0000000000..96382e7253
--- /dev/null
+++ b/.claude/checkpoints/1754345075.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250804-220435", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-04T22:04:35Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++ .claude-flow/metrics/task-metrics.json | 6 +-- .claude/checkpoints/task-1754345020.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation-executor.js | 61 ++++++++++++++------------ 6 files changed, 61 insertions(+), 33 deletions(-) "}
diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js
index 7b9073bb5e..c69cd19282 100644
--- a/src/cli/simple-commands/automation-executor.js
+++ b/src/cli/simple-commands/automation-executor.js
@@ -460,6 +460,117 @@ WORKFLOW COORDINATION:
Execute your role in the MLE-STAR workflow with full coordination and hook integration.`;
}
+ /**
+ * Create master coordination prompt for interactive mode
+ */
+ createMasterCoordinationPrompt(agents) {
+ const workflowData = this.currentWorkflow || { name: 'MLE-STAR Workflow', description: 'Machine Learning Engineering via Search and Targeted Refinement' };
+
+ return `πŸš€ MLE-STAR WORKFLOW COORDINATION MASTER
+
+You are the MASTER COORDINATOR for a comprehensive MLE-STAR (Machine Learning Engineering via Search and Targeted Refinement) workflow.
+
+πŸ“‹ WORKFLOW: ${workflowData.name}
+🎯 DESCRIPTION: ${workflowData.description}
+πŸ†” EXECUTION ID: ${this.executionId}
+πŸ”„ SESSION ID: ${this.sessionId}
+
+πŸ€– SUB-AGENTS TO COORDINATE (${agents.length} total):
+${agents.map((agent, index) => `
+${index + 1}. ${agent.name} (${agent.type})
+ 🎯 Role: ${this.getAgentRoleDescription(agent.type)}
+ πŸ“‹ Capabilities: ${agent.config?.capabilities?.join(', ') || 'general automation'}
+ πŸ†” ID: ${agent.id}`).join('')}
+
+πŸ”§ CRITICAL: USE CONCURRENT STREAMS FOR PARALLEL EXECUTION
+
+You MUST coordinate these agents using Claude's concurrent execution capabilities:
+
+1. **USE TASK TOOL FOR CONCURRENT AGENTS**:
+ For each sub-agent, use the Task tool to spawn them with detailed prompts:
+
+ Task("You are ${agent.name}. ${detailed_role_prompt}", "${agent.id}", "agent-${agent.type}")
+
+2. **PARALLEL EXECUTION PATTERN**:
+ Execute multiple agents simultaneously using the Task tool in a single response:
+
+ \`\`\`
+ Task("Detailed prompt for Search Agent...", "search_agent", "researcher")
+ Task("Detailed prompt for Foundation Agent...", "foundation_agent", "coder")
+ Task("Detailed prompt for Refinement Agent...", "refinement_agent", "optimizer")
+ Task("Detailed prompt for Ensemble Agent...", "ensemble_agent", "analyst")
+ Task("Detailed prompt for Validation Agent...", "validation_agent", "tester")
+ \`\`\`
+
+3. **DETAILED SUB-AGENT PROMPTS**:
+ Each Task call should include comprehensive instructions:
+ - Specific MLE-STAR role and responsibilities
+ - Required actions and deliverables
+ - Coordination requirements with other agents
+ - Output format specifications
+ - Use of --output-format stream-json for progress tracking
+
+4. **COORDINATION WORKFLOW**:
+ Phase 1: Search & Foundation (parallel)
+ Phase 2: Refinement & Optimization (depends on Phase 1)
+ Phase 3: Ensemble & Validation (depends on Phase 2)
+
+5. **OUTPUT MANAGEMENT**:
+ Instruct each agent to use appropriate Claude CLI flags:
+ - Use --print --output-format stream-json --verbose for real-time progress
+ - Coordinate results through file system and memory
+
+🎯 YOUR MISSION:
+1. Launch all ${agents.length} sub-agents using concurrent Task calls
+2. Provide detailed, specific prompts for each agent's MLE-STAR role
+3. Coordinate the workflow execution phases
+4. Monitor progress and provide updates
+5. Synthesize final results
+
+METHODOLOGY PHASES:
+${this.getMasterMethodologyGuide()}
+
+πŸš€ BEGIN: Start by deploying all sub-agents with detailed prompts using the Task tool for concurrent execution. Each agent should receive comprehensive instructions for their specific MLE-STAR role.`;
+ }
+
+ /**
+ * Get agent role description for coordination
+ */
+ getAgentRoleDescription(agentType) {
+ const roles = {
+ researcher: 'Web Search & Foundation Discovery - Find state-of-the-art approaches',
+ coder: 'Model Implementation & Training Pipeline - Build foundation models',
+ optimizer: 'Performance Tuning & Architecture Refinement - Optimize models',
+ analyst: 'Ensemble Methods & Meta-Learning - Combine multiple approaches',
+ tester: 'Validation & Debugging - Ensure quality and performance',
+ coordinator: 'Workflow Orchestration - Manage overall pipeline'
+ };
+ return roles[agentType] || 'Specialized automation task execution';
+ }
+
+ /**
+ * Get comprehensive methodology guide for master coordinator
+ */
+ getMasterMethodologyGuide() {
+ return `
+PHASE 1 - SEARCH & FOUNDATION (Parallel):
+πŸ”¬ Search Agent: Research ML approaches, algorithms, and best practices
+πŸ’» Foundation Agent: Implement baseline models and training infrastructure
+
+PHASE 2 - REFINEMENT (Sequential, depends on Phase 1):
+⚑ Refinement Agent: Optimize models, tune hyperparameters, improve performance
+
+PHASE 3 - ENSEMBLE & VALIDATION (Parallel, depends on Phase 2):
+πŸ›οΈ Ensemble Agent: Combine models, implement voting/stacking strategies
+πŸ§ͺ Validation Agent: Test, debug, validate performance, generate reports
+
+COORDINATION KEY POINTS:
+- Use shared file system for intermediate results
+- Maintain communication through progress updates
+- Each phase builds on previous phases
+- Final deliverable: Production-ready ML pipeline`;
+ }
+
/**
* Get methodology guidance for agent type
*/