Skip to content

Commit 082deea

Browse files
committed
base2-fast is now z-ai/glm-4.6:nitro
1 parent a307493 commit 082deea

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.agents/base2/base2.ts

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

99
export function createBase2(
10-
mode: 'fast' | 'max',
10+
mode: 'fast' | 'default' | 'max',
1111
options?: {
1212
hasNoValidation?: boolean
1313
planOnly?: boolean
1414
},
1515
): Omit<SecretAgentDefinition, 'id'> {
1616
const { hasNoValidation = false, planOnly = false } = options ?? {}
17+
const isDefault = mode === 'default'
1718
const isFast = mode === 'fast'
1819
const isMax = mode === 'max'
20+
1921
const isGpt5 = isMax
2022

2123
return {
2224
publisher,
23-
model: isGpt5 ? 'openai/gpt-5' : 'anthropic/claude-sonnet-4.5',
25+
model: isGpt5
26+
? 'openai/gpt-5'
27+
: isFast
28+
? 'z-ai/glm-4.6:nitro'
29+
: 'anthropic/claude-sonnet-4.5',
2430
...(isGpt5 && {
2531
reasoningModel: {
2632
effort: 'high',
@@ -63,7 +69,8 @@ export function createBase2(
6369
'researcher-web',
6470
'researcher-docs',
6571
'commander',
66-
isGpt5 ? 'best-of-n-editor-gpt-5' : 'best-of-n-editor',
72+
isGpt5 && 'best-of-n-editor-gpt-5',
73+
isDefault && 'best-of-n-editor',
6774
'context-pruner',
6875
),
6976

@@ -144,7 +151,8 @@ ${PLACEHOLDER.GIT_CHANGES_PROMPT}
144151
? buildPlanOnlyInstructionsPrompt({})
145152
: buildImplementationInstructionsPrompt({
146153
isGpt5,
147-
isFast,
154+
isDefault,
155+
isMax,
148156
hasNoValidation,
149157
}),
150158
stepPrompt: planOnly
@@ -177,11 +185,13 @@ export default definition
177185

178186
function buildImplementationInstructionsPrompt({
179187
isGpt5,
180-
isFast,
188+
isDefault,
189+
isMax,
181190
hasNoValidation,
182191
}: {
183192
isGpt5: boolean
184-
isFast: boolean
193+
isDefault: boolean
194+
isMax: boolean
185195
hasNoValidation: boolean
186196
}) {
187197
return `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.
@@ -196,7 +206,7 @@ ${buildArray(
196206
`- For multi-step tasks, use the write_todos tool to write out your step-by-step implementation plan. Include ALL of the applicable tasks in the list.${hasNoValidation ? '' : ' You should include at least one step to validate/test your changes: be specific about whether to typecheck, run tests, run lints, etc.'} Skip write_todos for trivial tasks like single-line edits or simple questions.`,
197207
`- You must spawn the ${isGpt5 ? 'best-of-n-editor-gpt-5' : 'best-of-n-editor'} agent to implement non-trivial code changes, since it will generate the best code changes from multiple implementation proposals. This is the best way to make high quality code changes -- strongly prefer using this agent over the str_replace or write_file tools, unless the change is very small and trivial.`,
198208
!hasNoValidation &&
199-
`- Test your changes${isFast ? ' briefly' : ''} by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.).${isFast ? ' If you can, only typecheck/test the area of the project that you are editing, rather than the entire project.' : ' Start by type checking the specific area of the project that you are editing and then test the entire project if necessary.'} You may have to explore the project to find the appropriate commands. Don't skip this step!`,
209+
`- Test your changes${isMax ? '' : ' briefly'} by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.).${isMax ? ' Start by type checking the specific area of the project that you are editing and then test the entire project if necessary.' : ' If you can, only typecheck/test the area of the project that you are editing, rather than the entire project.'} You may have to explore the project to find the appropriate commands. Don't skip this step!`,
200210
`- Inform the user that you have completed the task in one sentence or a few short bullet points. Don't create any markdown summary files or example documentation files, unless asked by the user. If you already finished the user request and said you're done, then don't say anything else.`,
201211
isGpt5 && `- Use the task_completed tool.`,
202212
).join('\n')}`

0 commit comments

Comments
 (0)