Skip to content

Commit 237aba1

Browse files
committed
Enable write_todos for free mode
1 parent 154c835 commit 237aba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agents/base2/base2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function createBase2(
5858
'spawn_agents',
5959
'read_files',
6060
'read_subtree',
61-
!isFast && !isFree && 'write_todos',
61+
!isFast && 'write_todos',
6262
!isFast && !noAskUser && 'suggest_followups',
6363
'str_replace',
6464
'write_file',
@@ -331,7 +331,7 @@ ${buildArray(
331331
`- Important: Read as many files as could possibly be relevant to the task over several steps to improve your understanding of the user's request and produce the best possible code changes. Find more examples within the codebase similar to the user's request, dependencies that help with understanding how things work, tests, etc. This is frequently 12-20 files, depending on the task.`,
332332
!noAskUser &&
333333
'After getting context on the user request from the codebase or from research, use the ask_user tool to ask the user for important clarifications on their request or alternate implementation strategies. You should skip this step if the choice is obvious -- only ask the user if you need their help making the best choice.',
334-
(isDefault || isMax) &&
334+
(isDefault || isMax || isFree) &&
335335
`- For any task requiring 3+ steps, use the write_todos tool to write out your step-by-step implementation plan. Include ALL of the applicable tasks in the list.${isFast ? '' : ' You should include a step to review the changes after you have implemented the changes.'}:${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'} You may be able to do reviewing and validation in parallel in the same step. Skip write_todos for simple tasks like quick edits or answering questions.`,
336336
isFree &&
337337
`- For most requests, spawn the thinker-with-files-gemini agent to think through and plan the best response. This agent is extremely useful as it is very smart. You must take advantage of it and spawn it about once per user request. Gather all the necessary context *before* spawning it, and pass the relevant filePaths since it does not have access to the conversation history.`,

0 commit comments

Comments
 (0)