@@ -1023,9 +1023,9 @@ def _generate_tool_context(self, repetitive_tools):
10231023 self ._last_repetitive_warning_severity += 1
10241024
10251025 repetition_warning = f"""
1026- ## Repetition Detected: Strategy Adjustment Required
1026+ ## Repetition Detected
10271027You have been using the following tools repetitively: { ', ' .join ([f'`{ t } `' for t in repetitive_tools ])} .
1028- **Constraint:** Do not repeat the same parameters for these tools in your next turns. Prioritize editing.
1028+ Do not repeat the same parameters for these tools in your next turns. Prioritize editing.
10291029 """
10301030
10311031 if self ._last_repetitive_warning_severity > 5 :
@@ -1074,13 +1074,11 @@ def _generate_tool_context(self, repetitive_tools):
10741074 )
10751075
10761076 repetition_warning += f"""
1077- ### CRITICAL: Execution Loop Detected
1078- You are currently "spinning gears". To break the exploration loop, you must:
1079- 1. **Analyze**: Use the `Thinking` tool exactly once to summarize what you have found so far and why you were stuck.
1080- 2. **Pivot**: Modify your current exploration strategy. Try alternative methods. Prioritize editing.
1081- 3. **Reframe**: To ensure your logic reset, include a 2-sentence story about { animal } { verb } { fruit } in your thoughts.
1082-
1083- Prioritize editing or verification over further exploration.
1077+ ## CRITICAL: Execution Loop Detected
1078+ You may be stuck in a cycle. To break the exploration loop and continue making progress, please do the following:
1079+ 1. **Analyze**: Use the `Thinking` tool exactly once to summarize your findings and why you are repeating yourself.
1080+ 2. **Reframe**: To help with creativity, include a 2-sentence story about { animal } { verb } { fruit } in your thoughts.
1081+ 3. **Pivot**: Modify your current exploration strategy. Try alternative methods. Prioritize editing.
10841082 """
10851083
10861084 context_parts .append (repetition_warning )
0 commit comments