From ce1ae65c3fe3efda1512ba92f8544ea1c3637686 Mon Sep 17 00:00:00 2001 From: Sjoerd Bozon Date: Mon, 29 Dec 2025 00:21:48 +0100 Subject: [PATCH] fix: respect new chat boundaries in Phase 4 handoffs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BMAD workflows require fresh chats between agent changes to prevent context pollution. Removed cross-agent handoffs that would suggest continuing in the same chat: - create-story no longer hands off to dev-story (different agent) - code-review no longer hands off to create-story (different agent) - dev-story → code-review retained (same DEV agent) --- .../installers/lib/ide/shared/workflow-prompts-config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/cli/installers/lib/ide/shared/workflow-prompts-config.js b/tools/cli/installers/lib/ide/shared/workflow-prompts-config.js index 3a1d5b1f..7290d8a2 100644 --- a/tools/cli/installers/lib/ide/shared/workflow-prompts-config.js +++ b/tools/cli/installers/lib/ide/shared/workflow-prompts-config.js @@ -103,7 +103,8 @@ const workflowPromptsConfig = { // ═══════════════════════════════════════════════════════════════════════ // Phase 4 - Implementation: The "Keep Going" Cycle - // SM → create-story → DEV → dev-story → code-review → (create-story | retrospective) + // New chat → SM → create-story → New chat → DEV → dev-story → code-review + // Each step should be a NEW CHAT to maximize context capacity // ═══════════════════════════════════════════════════════════════════════ { name: 'create-story', @@ -111,7 +112,7 @@ const workflowPromptsConfig = { shortcut: 'CS', description: '[CS] Create developer-ready story from epic', prompt: '*create-story', - handoffs: ['dev-story'], // After story creation: implement it + handoffs: [], // No handoff - user starts new chat with DEV agent }, { name: 'dev-story', @@ -119,7 +120,7 @@ const workflowPromptsConfig = { shortcut: 'DS', description: '[DS] Implement the current story', prompt: '*dev-story', - handoffs: ['code-review'], // After implementation: review + handoffs: ['code-review'], // Same agent, can stay in chat }, { name: 'code-review', @@ -127,7 +128,7 @@ const workflowPromptsConfig = { shortcut: 'CR', description: '[CR] Perform code review on implementation', prompt: '*code-review', - handoffs: ['create-story', 'retrospective'], // After review: next story or retro + handoffs: [], // No handoff - user starts new chat for next story }, { name: 'retrospective',