Skip to content

Commit cb12e31

Browse files
committed
Rename gpt-5-thinker to gpt-5-agent and give it tools to edit files
1 parent f35687f commit cb12e31

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

agents/base2/base2.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function createBase2(
7474
'researcher-docs',
7575
isLite ? 'commander-lite' : 'commander',
7676
isDefault && 'thinker',
77-
(isDefault || isMax) && 'thinker-gpt-5',
77+
(isDefault || isMax) && 'gpt-5-agent',
7878
isMax && 'thinker-best-of-n-opus',
7979
isLite && 'editor-gpt-5',
8080
isDefault && 'editor',
@@ -139,7 +139,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
139139
isDefault &&
140140
'- Spawn the editor agent to implement the changes after you have gathered all the context you need.',
141141
(isDefault || isMax) &&
142-
`- Spawn the ${isDefault ? 'thinker' : 'thinker-best-of-n-opus'} after gathering context to solve complex problems or when the user asks you to think about a problem. (thinker-gpt-5 is a last resort for complex problems)`,
142+
`- Spawn the ${isDefault ? 'thinker' : 'thinker-best-of-n-opus'} after gathering context to solve complex problems or when the user asks you to think about a problem. (gpt-5-agent is a last resort for complex problems)`,
143143
isMax &&
144144
`- 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.`,
145145
'- Spawn commanders sequentially if the second command depends on the the first.',
@@ -324,7 +324,7 @@ ${buildArray(
324324
(isDefault || isMax) &&
325325
`- 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.`,
326326
(isDefault || isMax) &&
327-
`- For quick problems, briefly explain your reasoning to the user. If you need to think longer, write your thoughts within the <think> tags. Finally, for complex problems, spawn the thinker agent to help find the best solution. (thinker-gpt-5 is a last resort for complex problems)`,
327+
`- For quick problems, briefly explain your reasoning to the user. If you need to think longer, write your thoughts within the <think> tags. Finally, for complex problems, spawn the thinker agent to help find the best solution. (gpt-5-agent is a last resort for complex problems)`,
328328
isLite &&
329329
'- IMPORTANT: You must spawn the editor-gpt-5 agent to implement the changes after you have gathered all the context you need. This agent will do the best job of implementing the changes so you must spawn it for all changes. Do not pass any prompt or params to the editor agent when spawning it. It will make its own best choices of what to do.',
330330
isDefault &&
Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
import { publisher } from '../constants'
1+
import { publisher } from './constants'
22

3-
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
3+
import type { SecretAgentDefinition } from './types/secret-agent-definition'
44

55
const definition: SecretAgentDefinition = {
6-
id: 'thinker-gpt-5',
6+
id: 'gpt-5-agent',
77
publisher,
88
model: 'openai/gpt-5.2',
9-
displayName: 'GPT-5 Thinker',
9+
reasoningOptions: {
10+
enabled: true,
11+
effort: 'high',
12+
exclude: false,
13+
},
14+
displayName: 'GPT-5 Agent',
1015
spawnerPrompt:
11-
'Does deep thinking given the prompt and optionally provided files. Use this to help you solve a specific problem that requires extended reasoning.',
16+
'A general-purpose, deep-thinking agent that can be used to solve a wide range of problems. Use this to help you solve a specific problem that requires extended reasoning.',
1217
inputSchema: {
1318
prompt: {
1419
type: 'string',
@@ -31,7 +36,13 @@ const definition: SecretAgentDefinition = {
3136
},
3237
outputMode: 'last_message',
3338
spawnableAgents: ['researcher-web', 'researcher-docs', 'file-picker', 'code-searcher', 'directory-lister', 'glob-matcher', 'commander'],
34-
toolNames: ['spawn_agents', 'read_files'],
39+
toolNames: [
40+
'spawn_agents',
41+
'read_files',
42+
'read_subtree',
43+
'str_replace',
44+
'write_file',
45+
],
3546

3647
handleSteps: function* ({ params }) {
3748
const filePaths = params?.filePaths as string[] | undefined

0 commit comments

Comments
 (0)