From 1eb32fc6a9eef6348a28b6d5c21bce3b520eef74 Mon Sep 17 00:00:00 2001 From: rUv Date: Thu, 8 Jan 2026 04:21:20 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-08T04:21:20Z - Changes: 1 file(s) ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../cli/src/init/claudemd-generator.ts | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/v3/@claude-flow/cli/src/init/claudemd-generator.ts b/v3/@claude-flow/cli/src/init/claudemd-generator.ts index 9c83be2890..962fb07057 100644 --- a/v3/@claude-flow/cli/src/init/claudemd-generator.ts +++ b/v3/@claude-flow/cli/src/init/claudemd-generator.ts @@ -551,8 +551,25 @@ NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User. Never save working files, text/mds and tests to the root folder. -After spawning a swarm, WAIT for agents to complete - don't continuously check status. -After swarm completes: review results, confirm, update ADRs/DDD, run security scan. + +## ๐Ÿšจ SWARM EXECUTION RULES (CRITICAL) +1. **SPAWN IN BACKGROUND**: Use \`run_in_background: true\` for all agent Task calls +2. **SPAWN ALL AT ONCE**: Put ALL agent Task calls in ONE message for parallel execution +3. **TELL USER**: After spawning, list what each agent is doing (use emojis for clarity) +4. **STOP AND WAIT**: After spawning, STOP - do NOT add more tool calls or check status +5. **NO POLLING**: Never poll TaskOutput or check swarm status - trust agents to return +6. **SYNTHESIZE**: When agent results arrive, review ALL results before proceeding +7. **NO CONFIRMATION**: Don't ask "should I check?" - just wait for results + +Example spawn message: +\`\`\` +"I've launched 4 agents in background: +- ๐Ÿ” Researcher: [task] +- ๐Ÿ’ป Coder: [task] +- ๐Ÿงช Tester: [task] +- ๐Ÿ‘€ Reviewer: [task] +Working in parallel - I'll synthesize when they complete." +\`\`\` `; }