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
@@ -183,7 +187,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
183
187
isMax&&
184
188
`- IMPORTANT: You must spawn the editor-multi-prompt agent to implement the changes after you have gathered all the context you need. You must spawn this agent for non-trivial changes, since it writes much better code than you would with the str_replace or write_file tools. Don't spawn the editor in parallel with context-gathering agents.`,
185
189
isFree&&
186
-
'- Spawn a code-reviewer-lite to review the changes after you have implemented the changes.',
190
+
`- Spawn a ${freeCodeReviewerAgentId} to review the changes after you have implemented the changes.`,
187
191
'- Spawn bashers sequentially if the second command depends on the the first.',
188
192
isDefault&&
189
193
'- Spawn a code-reviewer to review the changes after you have implemented the changes.',
@@ -252,7 +256,7 @@ ${
252
256
isDefault
253
257
? `[ You spawn a code-reviewer, a basher to typecheck the changes, and another basher to run tests, all in parallel ]`
254
258
: isFree
255
-
? `[ You spawn a code-reviewer-lite to review the changes, a basher to typecheck the local changes, a basher to typecheck the whole project, and another basher to run tests, all in parallel ]`
259
+
? `[ You spawn a ${freeCodeReviewerAgentId} to review the changes, a basher to typecheck the local changes, a basher to typecheck the whole project, and another basher to run tests, all in parallel ]`
256
260
: isMax
257
261
? `[ You spawn a basher to typecheck the changes, and another basher to run tests, in parallel. Then, you spawn a code-reviewer-multi-prompt to review the changes. ]`
258
262
: '[ You spawn a basher to typecheck the changes and another basher to run tests, all in parallel ]'
@@ -262,7 +266,7 @@ ${
262
266
isDefault
263
267
? `[ You fix the issues found by the code-reviewer and type/test errors ]`
264
268
: isFree
265
-
? `[ You fix the issues found by the code-reviewer-lite and type/test errors ]`
269
+
? `[ You fix the issues found by the ${freeCodeReviewerAgentId} and type/test errors ]`
266
270
: isMax
267
271
? `[ You fix the issues found by the code-reviewer-multi-prompt and type/test errors ]`
268
272
: '[ You fix the issues found by the type/test errors and spawn more bashers to confirm ]'
// handleSteps is serialized via .toString() and re-eval'd, so closure
@@ -367,6 +373,7 @@ function buildImplementationInstructionsPrompt({
367
373
hasFreeGeminiThinker,
368
374
hasNoValidation,
369
375
noAskUser,
376
+
freeCodeReviewerAgentId,
370
377
}: {
371
378
isSonnet: boolean
372
379
isFast: boolean
@@ -376,6 +383,7 @@ function buildImplementationInstructionsPrompt({
376
383
hasFreeGeminiThinker: boolean
377
384
hasNoValidation: boolean
378
385
noAskUser: boolean
386
+
freeCodeReviewerAgentId: string
379
387
}){
380
388
return`Act as a helpful assistant and freely respond to the user's request however would be most helpful to the user. Use your judgement to orchestrate the completion of the user's request using your specialized sub-agents and tools as needed. Take your time and be comprehensive. Don't surprise the user. For example, don't modify files if the user has not asked you to do so at least implicitly.
381
389
@@ -407,7 +415,7 @@ ${buildArray(
407
415
(isDefault||isMax)&&
408
416
`- Spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-multi-prompt'} to review the changes after you have implemented changes. (Skip this step only if the change is extremely straightforward and obvious.)`,
409
417
isFree&&
410
-
`- Spawn a code-reviewer-lite to review the changes after you have implemented changes. (Skip this step only if the change is extremely straightforward and obvious.)`,
418
+
`- Spawn a ${freeCodeReviewerAgentId} to review the changes after you have implemented changes. (Skip this step only if the change is extremely straightforward and obvious.)`,
411
419
`- Inform the user that you have completed the task in one sentence or a few short bullet points.${isSonnet ? " Don't create any markdown summary files or example documentation files, unless asked by the user." : ''}`,
412
420
!isFast&&
413
421
!noAskUser&&
@@ -424,6 +432,7 @@ function buildImplementationStepPrompt({
424
432
isFree,
425
433
hasFreeGeminiThinker,
426
434
noAskUser,
435
+
freeCodeReviewerAgentId,
427
436
}: {
428
437
isDefault: boolean
429
438
isFast: boolean
@@ -433,6 +442,7 @@ function buildImplementationStepPrompt({
433
442
isFree: boolean
434
443
hasFreeGeminiThinker: boolean
435
444
noAskUser: boolean
445
+
freeCodeReviewerAgentId: string
436
446
}){
437
447
returnbuildArray(
438
448
isMax&&
@@ -444,7 +454,7 @@ function buildImplementationStepPrompt({
444
454
(isDefault||isMax)&&
445
455
`You must spawn a ${isDefault ? 'code-reviewer' : 'code-reviewer-multi-prompt'} to review the changes after you have implemented the changes and in parallel with typechecking or testing.`,
446
456
isFree&&
447
-
`You must spawn a code-reviewer-lite to review the changes after you have implemented the changes and in parallel with typechecking or testing.`,
457
+
`You must spawn a ${freeCodeReviewerAgentId} to review the changes after you have implemented the changes and in parallel with typechecking or testing.`,
448
458
`After completing the user request, summarize your changes in a sentence${isFast ? '' : ' or a few short bullet points'}.${isSonnet ? " Don't create any summary markdown files or example documentation files, unless asked by the user." : ''}.`,
0 commit comments