Skip to content

Commit bed1837

Browse files
committed
Rename thinker-gpt to thinker-codex
1 parent 7be3be7 commit bed1837

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

agents/base2/base-deep.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
2626
- **Spawn multiple agents in parallel:** This increases the speed of your response **and** allows you to be more comprehensive by spawning more total agents to synthesize the best response.
2727
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other.
2828
- Spawn context-gathering agents (file pickers, code-searcher, directory-lister, glob-matcher, and web/docs researchers) before making edits.
29-
- Spawn the thinker-gpt 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)
29+
- Spawn the thinker-codex 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)
3030
- Implement code changes using direct file editing tools.
3131
- Prefer apply_patch for existing-file edits. Use write_file only for creating or replacing entire files when that is simpler.
3232
- Spawn commanders sequentially if the second command depends on the the first.
@@ -105,7 +105,7 @@ The user asks you to implement a new feature. You respond in multiple steps:
105105
106106
- Iteratively spawn file pickers, code-searchers, directory-listers, glob-matchers, commanders, and web/docs researchers to gather context as needed. The file-picker agent in particular is very useful to find relevant files -- try spawning multiple in parallel (say, 2-5) to explore different parts of the codebase. Use read_subtree if you need to grok a particular part of the codebase. Read the relevant files using the read_files tool.
107107
- After getting context on the user request from the codebase or from research, use the ask_user tool to ask the user for important clarifications on their request or alternate implementation strategies. You should skip this step if the choice is obvious -- only ask the user if you need their help making the best choice.
108-
- For complex problems, spawn the thinker-gpt agent to help find the best solution.
108+
- For complex problems, spawn the thinker-codex agent to help find the best solution.
109109
- Implement the changes using direct file editing tools. Implement all the changes in one go.
110110
- Prefer apply_patch for targeted edits and avoid draft/proposal edit flows.
111111
- For non-trivial changes, test them by running appropriate validation commands for the project (e.g. typechecks, tests, lints, etc.). Try to run all appropriate commands in parallel. If you can, only 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, unless the change is very small and targeted (< 10 lines and unlikely to have a type error)!
@@ -159,7 +159,7 @@ export function createBaseDeep(): SecretAgentDefinition {
159159
'researcher-web',
160160
'researcher-docs',
161161
'commander',
162-
'thinker-gpt',
162+
'thinker-codex',
163163
'code-reviewer-codex',
164164
'gpt-5-agent',
165165
'context-pruner',

agents/e2e/base-deep.e2e.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { beforeAll, describe, expect, it } from 'bun:test'
88
import { $ } from 'bun'
99

1010
import baseDeep from '../base2/base-deep'
11-
import thinkerGpt from '../thinker/thinker-gpt'
11+
import thinkerCodex from '../thinker/thinker-codex'
1212

1313
import type { PrintModeEvent } from '@codebuff/common/types/print-mode'
1414

@@ -77,7 +77,7 @@ describe('Base Deep Agent Integration', () => {
7777
let count = 0
7878
for (const event of events) {
7979
if (event.type !== 'tool_result') continue
80-
if (!event.parentAgentId?.includes('thinker-gpt')) continue
80+
if (!event.parentAgentId?.includes('thinker-codex')) continue
8181
for (const part of event.output) {
8282
if (part.type !== 'json') continue
8383
if (typeof part.value !== 'object' || part.value === null) continue
@@ -174,7 +174,7 @@ describe('Base Deep Agent Integration', () => {
174174
})
175175

176176
it(
177-
'spawns thinker-gpt when requested',
177+
'spawns thinker-codex when requested',
178178
async () => {
179179
const apiKey = getApiKeyOrSkip()
180180
if (!apiKey) return
@@ -186,13 +186,13 @@ describe('Base Deep Agent Integration', () => {
186186
projectFiles: {
187187
'README.md': '# Base2 Codex Thinker Test\n',
188188
},
189-
agentDefinitions: [baseDeep, thinkerGpt],
189+
agentDefinitions: [baseDeep, thinkerCodex],
190190
})
191191

192192
const run = await client.run({
193193
agent: baseDeep.id,
194194
prompt:
195-
'Use @thinker-gpt to think briefly about adding validation to a sum function, then answer in one sentence.',
195+
'Use @thinker-codex to think briefly about adding validation to a sum function, then answer in one sentence.',
196196
handleEvent: (event) => {
197197
events.push(event)
198198
},
@@ -202,12 +202,12 @@ describe('Base Deep Agent Integration', () => {
202202

203203
const thinkerSpawned = events.some(
204204
(event) =>
205-
event.type === 'subagent_start' && event.agentType === 'thinker-gpt',
205+
event.type === 'subagent_start' && event.agentType === 'thinker-codex',
206206
)
207207
expect(thinkerSpawned).toBe(true)
208208

209209
await writeTrace({
210-
testName: 'spawns thinker-gpt when requested',
210+
testName: 'spawns thinker-codex when requested',
211211
events,
212212
runOutput: run.output,
213213
cwd: '/tmp/base-deep-thinker-test',
@@ -231,7 +231,7 @@ describe('Base Deep Agent Integration', () => {
231231
const client = new CodebuffClient({
232232
apiKey,
233233
cwd: tmpDir,
234-
agentDefinitions: [baseDeep, thinkerGpt],
234+
agentDefinitions: [baseDeep, thinkerCodex],
235235
})
236236
const events: PrintModeEvent[] = []
237237

@@ -299,7 +299,7 @@ describe('Base Deep Agent Integration', () => {
299299
const client = new CodebuffClient({
300300
apiKey,
301301
cwd: tmpDir,
302-
agentDefinitions: [baseDeep, thinkerGpt],
302+
agentDefinitions: [baseDeep, thinkerCodex],
303303
})
304304

305305
const run = await client.run({
@@ -372,7 +372,7 @@ describe('Base Deep Agent Integration', () => {
372372
projectFiles: {
373373
'src/a.ts': 'export const a = 1\n',
374374
},
375-
agentDefinitions: [baseDeep, thinkerGpt],
375+
agentDefinitions: [baseDeep, thinkerCodex],
376376
})
377377

378378
const run = await client.run({
@@ -434,7 +434,7 @@ describe('Base Deep Agent Integration', () => {
434434
const client = new CodebuffClient({
435435
apiKey,
436436
cwd: tmpDir,
437-
agentDefinitions: [baseDeep, thinkerGpt],
437+
agentDefinitions: [baseDeep, thinkerCodex],
438438
})
439439

440440
const run = await client.run({
@@ -573,7 +573,7 @@ describe('Base Deep Agent Integration', () => {
573573
const client = new CodebuffClient({
574574
apiKey,
575575
cwd: tmpDir,
576-
agentDefinitions: [baseDeep, thinkerGpt],
576+
agentDefinitions: [baseDeep, thinkerCodex],
577577
})
578578

579579
const run = await client.run({
@@ -656,13 +656,13 @@ describe('Base Deep Agent Integration', () => {
656656
const client = new CodebuffClient({
657657
apiKey,
658658
cwd: cloneDir,
659-
agentDefinitions: [baseDeep, thinkerGpt],
659+
agentDefinitions: [baseDeep, thinkerCodex],
660660
})
661661

662662
const run = await client.run({
663663
agent: baseDeep.id,
664664
prompt:
665-
'Commit-inspired task: add a new integration test file at agents/e2e/base-deep-clone-smoke.e2e.test.ts that verifies base-deep can spawn thinker-gpt. Keep it concise and actually write the file.',
665+
'Commit-inspired task: add a new integration test file at agents/e2e/base-deep-clone-smoke.e2e.test.ts that verifies base-deep can spawn thinker-codex. Keep it concise and actually write the file.',
666666
handleEvent: (event) => {
667667
events.push(event)
668668
},
@@ -676,7 +676,7 @@ describe('Base Deep Agent Integration', () => {
676676
)
677677
const createdContent = await fs.promises.readFile(createdPath, 'utf-8')
678678
expect(createdContent).toContain('base-deep')
679-
expect(createdContent).toContain('thinker-gpt')
679+
expect(createdContent).toContain('thinker-codex')
680680

681681
const diffStats = await getDiffLineStats(cloneDir)
682682

@@ -706,7 +706,7 @@ describe('Base Deep Agent Integration', () => {
706706
const client = new CodebuffClient({
707707
apiKey,
708708
cwd: cloneDir,
709-
agentDefinitions: [baseDeep, thinkerGpt],
709+
agentDefinitions: [baseDeep, thinkerCodex],
710710
})
711711

712712
let finalRun = await client.run({
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import type { SecretAgentDefinition } from '../types/secret-agent-definition'
44

55
const definition: SecretAgentDefinition = {
66
...thinker,
7-
id: 'thinker-gpt',
7+
id: 'thinker-codex',
88
model: 'openai/gpt-5.3-codex',
99
outputSchema: undefined,
1010
outputMode: 'last_message',
11-
instructionsPrompt: `You are the thinker-gpt agent. Think deeply about the user request and when satisfied, write out your response.
11+
instructionsPrompt: `You are the thinker-codex agent. Think deeply about the user request and when satisfied, write out your response.
1212
1313
The parent agent will see your response. DO NOT call any tools. No need to spawn the thinker agent, because you are already the thinker agent. Just do the thinking work now.`,
1414
handleSteps: function* () {

0 commit comments

Comments
 (0)