From 95a141f79104a350f09ce0fc1ba5dac015e3be16 Mon Sep 17 00:00:00 2001 From: Clawd Date: Sat, 28 Feb 2026 07:53:12 -0800 Subject: Fix: system prompt passing and strengthen phase enforcement - Fix systemPrompt option (was incorrectly using extraArgs) - Rewrite research phase prompt: - Emphasize writing to research.md as PRIMARY output - Explicitly forbid asking about phase transitions - Add document format template - Clarify that chat is for questions only - Rewrite plan phase prompt: - Same emphasis on plan.md as primary output - Include code snippet format examples - Forbid implementation attempts - Change research/plan permissionMode to acceptEdits (was 'plan') - 'plan' mode may have been blocking file writes --- src/main/claude/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/main/claude/index.ts') diff --git a/src/main/claude/index.ts b/src/main/claude/index.ts index 34a914e..8bdcccd 100644 --- a/src/main/claude/index.ts +++ b/src/main/claude/index.ts @@ -45,10 +45,7 @@ export async function sendMessage({ resume: session.claude_session_id ?? undefined, tools: phaseConfig.tools, permissionMode: phaseConfig.permissionMode, - // Add system prompt via extraArgs since there's no direct option - extraArgs: { - "system-prompt": phaseConfig.systemPrompt, - }, + systemPrompt: phaseConfig.systemPrompt, }, }); -- cgit v1.2.3