Skip to content

Commit dce3f39

Browse files
committed
Make validation standard for base2
1 parent 4dea9f2 commit dce3f39

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.agents/base2/base2-fast-with-validation.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

.agents/base2/base2.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import {
77
} from '../types/secret-agent-definition'
88

99
export const createBase2: (
10-
mode: 'fast' | 'max' | 'fast-with-validation',
10+
mode: 'fast' | 'max',
1111
) => Omit<SecretAgentDefinition, 'id'> = (mode) => {
12-
const isFast = mode === 'fast' || mode === 'fast-with-validation'
12+
const isFast = mode === 'fast'
1313
const isMax = mode === 'max'
14-
const isFastWithValidation = mode === 'fast-with-validation'
1514
return {
1615
publisher,
1716
model: 'anthropic/claude-sonnet-4.5',
@@ -140,13 +139,12 @@ The user asks you to implement a new feature. You respond in multiple steps:
140139
${
141140
isFast
142141
? `3. Write out your implementation plan as a bullet point list.
143-
4. Use the str_replace or write_file tool to make the changes.
144-
${isFastWithValidation ? '5. Test your changes by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.). You may have to explore the project to find the appropriate commands.\n' : ''}`
145-
: `3. IMPORTANT: You must spawn a base2-gpt-5-worker agent inline (with spawn_agent_inline tool) to do the planning and editing.
146-
4. Fix any issues left by the base2-gpt-5-worker agent.`
142+
4. Use the str_replace or write_file tool to make the changes.`
143+
: `3. IMPORTANT: You must spawn a base2-gpt-5-worker agent inline (with spawn_agent_inline tool) to do the planning and editing.`
147144
}
148-
${isFastWithValidation ? '6' : '5'}. Inform the user that you have completed the task in one sentence without a final summary. Don't create any markdown summary files either, unless asked by the user. If you already finished the user request and said you're done, then don't say anything else.`,
149-
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker-max and code-searcher to get codebase context,${isMax ? ' the base2-gpt-5-worker agent to do the planning and editing,' : ''}. After completing the user request, summarize your changes in a sentence or a few short bullet points. Do not create any summary markdown files, unless asked by the user. Then, end your turn.`,
145+
${isFast ? '5' : '4'}. Test your changes${isFast ? ' briefly' : ''} by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.). You may have to explore the project to find the appropriate commands.
146+
${isFast ? '6' : '5'}. Inform the user that you have completed the task in one sentence without a final summary. Don't create any markdown summary files either, unless asked by the user. If you already finished the user request and said you're done, then don't say anything else.`,
147+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker-max and code-searcher to get codebase context${isMax ? ', and the base2-gpt-5-worker agent to do the planning and editing' : ''}. After completing the user request, summarize your changes in a sentence or a few short bullet points. Do not create any summary markdown files, unless asked by the user. Then, end your turn.`,
150148
handleSteps: function* ({ params }) {
151149
let steps = 0
152150
while (true) {

0 commit comments

Comments
 (0)