🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/swarm.js

This commit is contained in:
rUv committed 2025-08-03 12:29:02 +00:00
1 parent eb8804c48a
commit 7dedb9276f
3 files changed
+3 -52

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250803-122819", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:28:19Z", "type": "pre-edit", "original_branch": "alpha-84b"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250803-122820", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:28:20Z", "type": "post-edit", "branch": "alpha-84b", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1754224065.json | 1 + .claude/checkpoints/1754224067.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/swarm.js | 10 +--------- 7 files changed, 31 insertions(+), 13 deletions(-) "}
+1 -52
View File
@@ -876,58 +876,7 @@ The swarm should be self-documenting - use memory_store to save all important in
}
console.log();
// swarmPrompt is already built above, just continue with the original code
🎯 OBJECTIVE: ${objective}
🐝 SWARM CONFIGURATION:
- Strategy: ${strategy}
- Mode: ${mode}
- Max Agents: ${maxAgents}
- Timeout: ${flags.timeout || 60} minutes
- Parallel Execution: MANDATORY (Always use BatchTool)
- Review Mode: ${flags.review || false}
- Testing Mode: ${flags.testing || false}
- Analysis Mode: ${isAnalysisMode ? 'ENABLED (Read-Only)' : 'DISABLED'}
${
isAnalysisMode
? `🔍 ANALYSIS MODE CONSTRAINTS:
⚠️ READ-ONLY MODE ACTIVE - NO CODE MODIFICATIONS ALLOWED
REQUIRED BEHAVIORS:
1. ✅ READ files for analysis (Read tool)
2. ✅ SEARCH codebases (Glob, Grep tools)
3. ✅ ANALYZE code structure and patterns
4. ✅ GENERATE reports and documentation
5. ✅ CREATE analysis summaries
6. ✅ STORE findings in memory for collaboration
7. ✅ COMMUNICATE between agents about findings
FORBIDDEN OPERATIONS:
1. ❌ NEVER use Write tool to modify files
2. ❌ NEVER use Edit or MultiEdit tools
3. ❌ NEVER use Bash to run commands that modify files
4. ❌ NEVER create new files or directories
5. ❌ NEVER install packages or dependencies
6. ❌ NEVER modify configuration files
7. ❌ NEVER execute code that changes system state
ALL AGENTS MUST OPERATE IN READ-ONLY MODE. Focus on:
- Code analysis and understanding
- Security vulnerability assessment
- Performance bottleneck identification
- Architecture documentation
- Technical debt analysis
- Dependency mapping
- Testing strategy recommendations
Generate comprehensive reports instead of making changes.
`
: ''
}🚨 CRITICAL: PARALLEL EXECUTION IS MANDATORY! 🚨
// Continue with the default swarm behavior if not using --claude flag
📋 CLAUDE-FLOW SWARM BATCHTOOL INSTRUCTIONS