You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(core): remove sub-goals feature from LLM planning (#1975)
* refactor(core): rename includeSubGoals to deepThink and remove sub-goal logic from planning prompt
The model no longer needs to do task decomposition (sub-goals). This
removes all goal/subGoal related logic from the planning prompt and its
caller, keeping only the simpler instruction-based flow.
https://claude.ai/code/session_016KXax4JyZu2MKkA2XjRX6t
* fix(core): restore detailed thought tag guidance (without sub-goal references)
Keep the full thought description telling the model what to consider
(user's requirement, current state, next action) - just without the
sub-goal related parts.
https://claude.ai/code/session_016KXax4JyZu2MKkA2XjRX6t
---------
Co-authored-by: Claude <noreply@anthropic.com>
text: `${conversationHistory.pendingFeedbackMessage}. The previous action has been executed, here is the latest screenshot. Please continue according to the instruction.${memoriesSection}${subGoalsSection}`,
165
+
text: `${conversationHistory.pendingFeedbackMessage}. The previous action has been executed, here is the latest screenshot. Please continue according to the instruction.${memoriesSection}${historicalLogsSection}`,
188
166
},
189
167
{
190
168
type: 'image_url',
@@ -203,7 +181,7 @@ export async function plan(
203
181
content: [
204
182
{
205
183
type: 'text',
206
-
text: `this is the latest screenshot${memoriesSection}${subGoalsSection}`,
184
+
text: `this is the latest screenshot${memoriesSection}${historicalLogsSection}`,
207
185
},
208
186
{
209
187
type: 'image_url',
@@ -256,10 +234,6 @@ export async function plan(
256
234
if(planFromAI.finalizeSuccess!==undefined){
257
235
debug('task completed via <complete> tag, stop planning');
258
236
shouldContinuePlanning=false;
259
-
// Mark all sub-goals as finished when goal is completed (only when deepThink is enabled)
260
-
if(includeSubGoals){
261
-
conversationHistory.markAllSubGoalsFinished();
262
-
}
263
237
}
264
238
265
239
constreturnValue: PlanningAIResponse={
@@ -301,25 +275,9 @@ export async function plan(
301
275
});
302
276
});
303
277
304
-
// Update sub-goals in conversation history based on response (only when deepThink is enabled)
0 commit comments