Skip to content

Commit 7b2ecf5

Browse files
committed
Try asking the user more questions by default
1 parent a0c3ed9 commit 7b2ecf5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.agents/base2/base2.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ ${buildArray(
187187
188188
[ You spawn one more code-searcher and file-picker ]
189189
190-
[ You read a few other relevant files using the read_files tool ]
190+
[ You read a few other relevant files using the read_files tool ]${
191+
!noAskUser
192+
? `\n\n[ You ask the user for important clarifications on their request or alternate implementation strategies using the ask_user tool ]`
193+
: ''
194+
}
191195
${
192196
isDefault
193197
? `[ You implement the changes using the editor agent ]`
@@ -310,8 +314,7 @@ ${buildArray(
310314
isMax &&
311315
`- 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.`,
312316
!noAskUser &&
313-
isMax &&
314-
'If needed, use the ask_user tool to ask the user for clarification on their request or alternate implementation strategies. It is good to get context on the codebase before asking questions so you can ask informed questions.',
317+
'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 there are no important clarifications to make.',
315318
(isDefault || isMax) &&
316319
`- 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.`,
317320
(isDefault || isMax) &&

0 commit comments

Comments
 (0)