You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agents/base2/base-deep.ts
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Use the spawn_agents tool to spawn specialized agents to help you complete the u
29
29
- **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.
30
30
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other.
31
31
- Spawn context-gathering agents (file pickers, code-searcher, directory-lister, glob-matcher, and web/docs researchers) before making edits.
32
-
- 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)
32
+
- 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)
33
33
- Implement code changes using direct file editing tools.
34
34
- Prefer apply_patch for existing-file edits. Use write_file only for creating or replacing entire files when that is simpler.
35
35
- Spawn commanders sequentially if the second command depends on the the first.
@@ -62,13 +62,13 @@ For other questions, you can direct them to codebuff.com, or especially codebuff
62
62
63
63
[ Phase 1 — Codebase Context & Research: You spawn file-pickers, code-searchers, and researchers (web/docs) in parallel to find relevant files and research external libraries/APIs, then read the results to build understanding ]
64
64
65
-
[ Phase 2 — Spec: You draft an initial SPEC.md, then use ask_user iteratively to refine it, then run thinker-codex critique loop until clean ]
65
+
[ Phase 2 — Spec: You draft an initial SPEC.md, then use ask_user iteratively to refine it, then run thinker-gpt critique loop until clean ]
66
66
67
-
[ Phase 3 — Plan: You write a detailed PLAN.md with all implementation steps, run thinker-codex critique loop, then write implementation todos ]
67
+
[ Phase 3 — Plan: You write a detailed PLAN.md with all implementation steps, run thinker-gpt critique loop, then write implementation todos ]
68
68
69
69
[ Phase 4 — Implement: You fully implement the spec using direct file editing tools ]
70
70
71
-
[ Phase 5 — Review Loop: You spawn code-reviewer-codex, fix any issues found, and re-run the reviewer until no new issues are found ]
71
+
[ Phase 5 — Review Loop: You spawn code-reviewer-gpt, fix any issues found, and re-run the reviewer until no new issues are found ]
72
72
73
73
[ Phase 6 — Validate: You run unit tests, add new tests, fix failures, and attempt E2E verification by running the application ]${noLearning ? '' : `
74
74
@@ -156,9 +156,9 @@ Draft a spec first, then refine it with the user:
156
156
5. **Do NOT ask obvious questions.** If you are >80% confident you know what the user would choose, just make that choice and move on. Only ask questions where the user's input would genuinely change the outcome.
157
157
6. As the LAST question before finishing this phase, ask one open-ended question giving the user a chance to share any final feedback, concerns, or changes to the spec. For example: "Before I finalize the spec, is there anything else you'd like to add, change, or flag about the requirements?"`}
158
158
${noAskUser ? '3' : '7'}. Iteratively critique the spec:
159
-
a. Spawn thinker-codex to critique the spec — ask it to identify missing requirements, ambiguities, contradictions, overlooked edge cases, or technical approach issues.
159
+
a. Spawn thinker-gpt to critique the spec — ask it to identify missing requirements, ambiguities, contradictions, overlooked edge cases, or technical approach issues.
160
160
b. If the thinker raises valid critiques, update SPEC.md to address them.
161
-
c. After updating, you MUST spawn thinker-codex again to re-critique the revised spec.
161
+
c. After updating, you MUST spawn thinker-gpt again to re-critique the revised spec.
162
162
d. Repeat until the thinker finds no new substantive critiques. Do NOT skip the re-critique — every revision must be verified.
163
163
${noAskUser ? '4' : '8'}. Do NOT proceed until you are confident the spec captures the full picture.
164
164
@@ -171,17 +171,17 @@ Create a detailed implementation plan, iteratively critique it, and save it alon
171
171
- **Dependencies / Ordering**: Note which steps depend on others and the recommended order of implementation.
172
172
- **Risk Areas**: Flag any steps that are tricky, uncertain, or likely to need iteration.
173
173
2. Iteratively critique the plan:
174
-
a. Spawn thinker-codex to critique the plan — ask it to identify gaps, missed edge cases, better approaches, ordering issues, or unnecessary steps.
174
+
a. Spawn thinker-gpt to critique the plan — ask it to identify gaps, missed edge cases, better approaches, ordering issues, or unnecessary steps.
175
175
b. If the thinker raises valid critiques, update PLAN.md to address them.
176
-
c. After updating, you MUST spawn thinker-codex again to re-critique the revised plan.
176
+
c. After updating, you MUST spawn thinker-gpt again to re-critique the revised plan.
177
177
d. Repeat until the thinker finds no new substantive critiques. Do NOT skip the re-critique — every revision must be verified.
178
178
3. Write implementation todos (the second phase of todos) — one todo per plan step, plus todos for phases 5-${noLearning ? '6' : '7'}.
179
179
180
180
## Phase 4 — Implement
181
181
182
182
Fully implement the spec:
183
183
184
-
1. For complex problems, spawn the thinker-codex agent to help find the best solution.
184
+
1. For complex problems, spawn the thinker-gpt agent to help find the best solution.
185
185
2. Implement all changes using direct file editing tools. Prefer apply_patch for edits.
186
186
3. Implement ALL requirements from the spec — do not leave anything partially done.
187
187
4. Narrate what you are doing as you go.
@@ -190,9 +190,9 @@ Fully implement the spec:
190
190
191
191
Iteratively review until the code is clean:
192
192
193
-
1. Spawn code-reviewer-codex to review all changes.
193
+
1. Spawn code-reviewer-gpt to review all changes.
194
194
2. If the reviewer finds ANY issues, fix them.
195
-
3. After fixing, you MUST spawn code-reviewer-codex again to re-review.
195
+
3. After fixing, you MUST spawn code-reviewer-gpt again to re-review.
196
196
4. Repeat steps 1-3 until the reviewer finds no new issues. Do NOT skip the re-review — every fix must be verified.
197
197
198
198
## Phase 6 — Validate
@@ -234,9 +234,9 @@ Capture learnings for future sessions:
234
234
- Reference the specific session directory where each piece of knowledge was learned (e.g. "(from .agents/sessions/2025-01-15-add-auth/)")
235
235
- Only include insights that are genuinely useful for future work — not generic advice
236
236
3. Iteratively improve lessons and skills:
237
-
a. Spawn thinker-codex to critique your LESSONS.md and skill file edits — ask it to identify missing insights, improvements to existing entries, and brainstorm additional skills that could be created or updated based on the work done in this session.
237
+
a. Spawn thinker-gpt to critique your LESSONS.md and skill file edits — ask it to identify missing insights, improvements to existing entries, and brainstorm additional skills that could be created or updated based on the work done in this session.
238
238
b. If the thinker suggests valid improvements or new skill ideas, update the relevant files accordingly.
239
-
c. After updating, you MUST spawn thinker-codex again to re-critique and brainstorm further.
239
+
c. After updating, you MUST spawn thinker-gpt again to re-critique and brainstorm further.
240
240
d. Repeat until the thinker finds no new substantive improvements or skill ideas. Do NOT skip the re-critique — every revision must be verified.`}${noAskUser ? '' : `
241
241
${noLearning ? '1' : '4'}. Use suggest_followups to suggest ~3 next steps the user might want to take.`}
242
242
@@ -255,8 +255,8 @@ export function createBaseDeep(options?: {
Copy file name to clipboardExpand all lines: agents/thinker/thinker-gpt.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4
4
5
5
constdefinition: SecretAgentDefinition={
6
6
...thinker,
7
-
id: 'thinker-codex',
8
-
model: 'openai/gpt-5.3-codex',
7
+
id: 'thinker-gpt',
8
+
model: 'openai/gpt-5.4',
9
9
outputSchema: undefined,
10
10
outputMode: 'last_message',
11
-
instructionsPrompt: `You are the thinker-codex agent. Think deeply about the user request and when satisfied, write out your response.
11
+
instructionsPrompt: `You are the thinker-gpt agent. Think deeply about the user request and when satisfied, write out your response.
12
12
13
13
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.`,
0 commit comments