Skip to content

Commit a83e5ae

Browse files
committed
gpt-5.2 in editor, editor-implementor
1 parent c3fca97 commit a83e5ae

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

.agents/editor/best-of-n/editor-implementor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const createBestOfNImplementor = (options: {
1919
? 'anthropic/claude-opus-4.5'
2020
: isGemini
2121
? 'google/gemini-3-pro-preview'
22-
: 'openai/gpt-5.1',
22+
: 'openai/gpt-5.2',
2323
displayName: 'Implementation Generator',
2424
spawnerPrompt:
2525
'Generates a complete implementation plan with all code changes',

.agents/editor/best-of-n/editor-multi-prompt.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ export function createMultiPromptEditor(): Omit<SecretAgentDefinition, 'id'> {
2929
'set_messages',
3030
'set_output',
3131
],
32-
spawnableAgents: ['best-of-n-selector-opus', 'editor-implementor-opus'],
32+
spawnableAgents: [
33+
'best-of-n-selector-opus',
34+
'editor-implementor-opus',
35+
'editor-implementor-gpt-5',
36+
],
3337

3438
inputSchema: {
3539
params: {
@@ -92,10 +96,16 @@ function* handleStepsMultiPrompt({
9296
} satisfies ToolCall<'set_messages'>
9397

9498
// Spawn one opus implementor per prompt
95-
const implementorAgents = prompts.map((prompt) => ({
96-
agent_type: 'editor-implementor-opus',
97-
prompt: `Strategy: ${prompt}`,
98-
}))
99+
const implementorAgents: { agent_type: string; prompt?: string }[] =
100+
prompts.map((prompt) => ({
101+
agent_type: 'editor-implementor-opus',
102+
prompt: `Strategy: ${prompt}`,
103+
}))
104+
105+
// Always spawn an additional gpt-5 implementor with no prompt
106+
implementorAgents.push({
107+
agent_type: 'editor-implementor-gpt-5',
108+
})
99109

100110
// Spawn all implementor agents
101111
const { toolResult: implementorResults } = yield {
@@ -111,16 +121,12 @@ function* handleStepsMultiPrompt({
111121
implementorResults,
112122
) as any[]
113123

114-
logger.info(
115-
{ implementorResults, spawnedImplementations, prompts },
116-
'spawnedImplementations',
117-
)
118-
119124
// Extract all the implementations from the results
120125
const letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
126+
const strategies = [...prompts, prompts[0]]
121127
const implementations = spawnedImplementations.map((result, index) => ({
122128
id: letters[index],
123-
strategy: prompts[index],
129+
strategy: strategies[index],
124130
content:
125131
'errorMessage' in result
126132
? `Error: ${result.errorMessage}`

.agents/editor/editor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const createCodeEditor = (options: {
99
publisher,
1010
model:
1111
options.model === 'gpt-5'
12-
? 'openai/gpt-5.1'
12+
? 'openai/gpt-5.2'
1313
: 'anthropic/claude-opus-4.5',
1414
displayName: 'Code Editor',
1515
spawnerPrompt:
@@ -20,7 +20,7 @@ export const createCodeEditor = (options: {
2020
includeMessageHistory: true,
2121
inheritParentSystemPrompt: true,
2222

23-
instructionsPrompt: `You are an expert code editor with deep understanding of software engineering principles. You were spawned to generate an implementation for the user's request.
23+
instructionsPrompt: `You are an expert code editor with deep understanding of software engineering principles. You were spawned to generate an implementation for the user's request. Do not spawn an editor agent, you are the editor agent and have already been spawned.
2424
2525
Your task is to write out ALL the code changes needed to complete the user's request in a single comprehensive response.
2626

.agents/reviewer/code-reviewer-gpt-5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { SecretAgentDefinition } from '../types/secret-agent-definition'
44
const definition: SecretAgentDefinition = {
55
...codeReviewer,
66
id: 'code-reviewer-gpt-5',
7-
model: 'openai/gpt-5.1',
7+
model: 'openai/gpt-5.2',
88
}
99

1010
export default definition

.agents/reviewer/code-reviewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const createReviewer = (
2525
inheritParentSystemPrompt: true,
2626
includeMessageHistory: true,
2727

28-
instructionsPrompt: `You are a subagent that reviews code changes. Do not use any tools. For reference, here is the original user request:
28+
instructionsPrompt: `You are a subagent that reviews code changes and gives helpful critical feedback. Do not use any tools. For reference, here is the original user request:
2929
<user_message>
3030
${PLACEHOLDER.USER_INPUT_PROMPT}
3131
</user_message>

0 commit comments

Comments
 (0)