From 3cb6785d743a3d5001c10fb06acb7b720f464be1 Mon Sep 17 00:00:00 2001
From: herjarsa <204746071+herjarsa@users.noreply.github.com>
Date: Tue, 19 May 2026 20:12:47 +0200
Subject: [PATCH] fix(ralph-loop): minimal continuation prompt for default_mode
Reduce the ralph loop continuation prompt from ~15 lines to ~3 lines:
- Keep system directive prefix for proper identification
- Keep the essential 'output DONE' instruction
- Keep the original task prompt (needed context)
- Remove verbose boilerplate about reviewing progress and not stopping
---
src/hooks/ralph-loop/continuation-prompt-builder.ts | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/src/hooks/ralph-loop/continuation-prompt-builder.ts b/src/hooks/ralph-loop/continuation-prompt-builder.ts
index e709caa23..edf1c07c5 100644
--- a/src/hooks/ralph-loop/continuation-prompt-builder.ts
+++ b/src/hooks/ralph-loop/continuation-prompt-builder.ts
@@ -6,16 +6,7 @@ function getMaxIterationsLabel(state: RalphLoopState): string {
}
const CONTINUATION_PROMPT = `${SYSTEM_DIRECTIVE_PREFIX} - RALPH LOOP {{ITERATION}}/{{MAX}}]
-
-Your previous attempt did not output the completion promise. Continue working on the task.
-
-IMPORTANT:
-- Review your progress so far
-- Continue from where you left off
-- When FULLY complete, output: {{PROMISE}}
-- Do not stop until the task is truly done
-
-Original task:
+Continue. Output {{PROMISE}} when done.
{{PROMPT}}`
const ULTRAWORK_VERIFICATION_PROMPT = `${SYSTEM_DIRECTIVE_PREFIX} - ULTRAWORK LOOP VERIFICATION {{ITERATION}}/{{MAX}}]