Skip to content

Commit 881a8a9

Browse files
committed
Update base-max: use sonnet for researcher, reviewer. remove thinker within planner for better latency.
1 parent 8150802 commit 881a8a9

File tree

7 files changed

+21
-37
lines changed

7 files changed

+21
-37
lines changed

.agents/base-max.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const definition: SecretAgentDefinition = {
99
...base('anthropic/claude-sonnet-4.5', 'max'),
1010
spawnableAgents: [
1111
'file-explorer',
12-
'researcher-web-gpt-5',
13-
'researcher-docs-gpt-5',
12+
'researcher-web-sonnet',
13+
'researcher-docs-sonnet',
1414
'implementation-planner-max',
1515
'thinker',
1616
'reviewer-max',

.agents/prompts/base-prompts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const baseAgentUserInputPrompt = (
254254
`Important: you *must* read as many files with the read_files tool as possible from the results of the file picker agents. Don't be afraid to read ${isLite ? '8' : '20'} files. The more files you read, the better context you have on the codebase and the better your response will be.`,
255255

256256
isMax &&
257-
`You must spawn the implementation-planner-max agent for medium to hard coding tasks. It will help you write the best possible code changes.`,
257+
`Important: You must spawn the implementation-planner-max agent for all medium-to-hard coding tasks. It will help you come up with the best possible code changes.`,
258258

259259
'If the users uses "@agent-id" or "@AgentName" in their message, you must spawn that agent. If you don\'t know what input parameters that agent expects, use the lookup_agent_info tool to get the agent metadata. Spawn all the agents that the user mentions.',
260260

@@ -309,6 +309,9 @@ export const baseAgentUserInputPrompt = (
309309
(isLite || isFlash || isGeminiPro) &&
310310
`You must use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many agents as you want. It is a good idea to spawn a file explorer agent first to explore the codebase. ${isLite ? '' : 'Finally, you must spawn the reviewer agent to review your code changes.'}`,
311311

312+
isMax &&
313+
`Important: You must spawn the implementation-planner-max agent for all medium-to-hard coding tasks. It will help you come up with the best possible code changes.`,
314+
312315
!isGPT5 &&
313316
'Finally, you must use the end_turn tool at the end of your response when you have completed the user request or want the user to respond to your message.',
314317

.agents/researcher/gpt-5/researcher-codebase-explorer-gpt-5.ts renamed to .agents/researcher/sonnet/researcher-codebase-explorer-sonnet.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ import researcherCodebaseExplorer from '../researcher-codebase-explorer'
44

55
const definition: SecretAgentDefinition = {
66
...researcherCodebaseExplorer,
7-
id: 'researcher-codebase-explorer-gpt-5',
7+
id: 'researcher-codebase-explorer-sonnet',
88
publisher,
9-
displayName: 'Codebase Explorer GPT-5',
10-
model: 'openai/gpt-5',
11-
reasoningOptions: {
12-
enabled: true,
13-
effort: 'medium',
14-
},
9+
displayName: 'Codebase Explorer Sonnet',
10+
model: 'anthropic/claude-4.5-sonnet',
1511
}
1612

1713
export default definition

.agents/researcher/gpt-5/researcher-docs-gpt-5.ts renamed to .agents/researcher/sonnet/researcher-docs-sonnet.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ import researcherDocs from '../researcher-docs'
44

55
const definition: SecretAgentDefinition = {
66
...researcherDocs,
7-
id: 'researcher-docs-gpt-5',
7+
id: 'researcher-docs-sonnet',
88
publisher,
9-
displayName: 'Docs Researcher GPT-5',
10-
model: 'openai/gpt-5',
11-
reasoningOptions: {
12-
effort: 'medium',
13-
},
9+
displayName: 'Docs Researcher Sonnet',
10+
model: 'anthropic/claude-4.5-sonnet',
1411
}
1512

1613
export default definition

.agents/researcher/gpt-5/researcher-gpt-5.ts renamed to .agents/researcher/sonnet/researcher-sonnet.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,15 @@ import researcher from '../researcher-grok-4-fast'
44

55
const definition: SecretAgentDefinition = {
66
...researcher,
7-
id: 'researcher-gpt-5',
7+
id: 'researcher-sonnet',
88
publisher,
9-
displayName: 'Researcher GPT-5',
10-
model: 'openai/gpt-5',
11-
reasoningOptions: {
12-
enabled: true,
13-
effort: 'medium',
14-
},
9+
displayName: 'Researcher Sonnet',
10+
model: 'anthropic/claude-4.5-sonnet',
1511

1612
spawnableAgents: [
1713
'file-explorer',
18-
'researcher-codebase-explorer-gpt-5',
19-
'researcher-web-gpt-5',
20-
'researcher-docs-gpt-5',
14+
'researcher-web-sonnet',
15+
'researcher-docs-sonnet',
2116
],
2217
}
2318

.agents/researcher/gpt-5/researcher-web-gpt-5.ts renamed to .agents/researcher/sonnet/researcher-web-sonnet.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ import researcherWeb from '../researcher-web'
44

55
const definition: SecretAgentDefinition = {
66
...researcherWeb,
7-
id: 'researcher-web-gpt-5',
7+
id: 'researcher-web-sonnet',
88
publisher,
9-
displayName: 'Web Researcher GPT-5',
10-
model: 'openai/gpt-5',
11-
reasoningOptions: {
12-
effort: 'medium',
13-
},
9+
displayName: 'Web Researcher Sonnet',
10+
model: 'anthropic/claude-4.5-sonnet',
1411
}
1512

1613
export default definition

.agents/reviewer/reviewer-max.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ import { reviewer } from './reviewer-factory'
33
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
44

55
const definition: SecretAgentDefinition = {
6-
...reviewer('openai/gpt-5'),
6+
...reviewer('anthropic/claude-4.5-sonnet'),
77
id: 'reviewer-max',
8-
reasoningOptions: {
9-
enabled: true,
10-
effort: 'medium',
11-
},
128
}
139

1410
export default definition

0 commit comments

Comments
 (0)