From eccc23967a8682c6644ed84e9378b2fdec003480 Mon Sep 17 00:00:00 2001 From: laststylebender14 Date: Mon, 11 May 2026 15:21:35 +0530 Subject: [PATCH] fix(doom-loop): improve wording of doom loop reminder Replace the vague reminder with clearer, more actionable language that explicitly directs the agent to change approach rather than repeat the same tool call. Co-Authored-By: ForgeCode --- templates/forge-doom-loop-reminder.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/templates/forge-doom-loop-reminder.md b/templates/forge-doom-loop-reminder.md index 833be5600d..92e71a674e 100644 --- a/templates/forge-doom-loop-reminder.md +++ b/templates/forge-doom-loop-reminder.md @@ -1,6 +1,10 @@ -You appear to be stuck in a repetitive loop, having made {{consecutive_calls}} similar calls. -This indicates you are not making progress. Please: +You are stuck in a loop: you have made {{consecutive_calls}} identical or semantically equivalent tool calls without meaningful progress. -1. Reconsider your approach to solving this problem -2. Try a different tool or different arguments -3. If you're stuck, explain what you're trying to accomplish and ask for clarification +For your next step, do NOT repeat the same tool call with the same or semantically equivalent arguments. + +You must choose one of these actions: +1. Use a different tool. +2. Use the same tool with materially different arguments, and briefly state what new information you expect. +3. Stop tool use and explain the blocker, including what you already tried and why it did not work. + +Do not call the same tool again merely to inspect, verify, retry, or double-check. \ No newline at end of file