Skip to content

Commit 9d433a6

Browse files
committed
Update agents to opus 4.6
1 parent b69d2e9 commit 9d433a6

File tree

13 files changed

+117
-119
lines changed

13 files changed

+117
-119
lines changed

agents/__tests__/editor.test.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('editor agent', () => {
2828
})
2929

3030
test('uses opus model by default', () => {
31-
expect(editor.model).toBe('anthropic/claude-opus-4.5')
31+
expect(editor.model).toBe('anthropic/claude-opus-4.6')
3232
})
3333

3434
test('has output mode set to structured_output', () => {
@@ -54,7 +54,7 @@ describe('editor agent', () => {
5454
describe('createCodeEditor', () => {
5555
test('creates opus editor by default', () => {
5656
const opusEditor = createCodeEditor({ model: 'opus' })
57-
expect(opusEditor.model).toBe('anthropic/claude-opus-4.5')
57+
expect(opusEditor.model).toBe('anthropic/claude-opus-4.6')
5858
})
5959

6060
test('creates gpt-5 editor', () => {
@@ -160,10 +160,10 @@ describe('editor agent', () => {
160160
]
161161
const mockAgentState = createMockAgentState(initialMessages)
162162
const mockLogger = {
163-
debug: () => {},
164-
info: () => {},
165-
warn: () => {},
166-
error: () => {},
163+
debug: () => { },
164+
info: () => { },
165+
warn: () => { },
166+
error: () => { },
167167
}
168168

169169
const generator = editor.handleSteps!({
@@ -183,10 +183,10 @@ describe('editor agent', () => {
183183
]
184184
const mockAgentState = createMockAgentState(initialMessages)
185185
const mockLogger = {
186-
debug: () => {},
187-
info: () => {},
188-
warn: () => {},
189-
error: () => {},
186+
debug: () => { },
187+
info: () => { },
188+
warn: () => { },
189+
error: () => { },
190190
}
191191

192192
const generator = editor.handleSteps!({
@@ -227,10 +227,10 @@ describe('editor agent', () => {
227227
]
228228
const mockAgentState = createMockAgentState(initialMessages)
229229
const mockLogger = {
230-
debug: () => {},
231-
info: () => {},
232-
warn: () => {},
233-
error: () => {},
230+
debug: () => { },
231+
info: () => { },
232+
warn: () => { },
233+
error: () => { },
234234
}
235235

236236
const generator = editor.handleSteps!({
@@ -278,10 +278,10 @@ describe('editor agent', () => {
278278
const initialMessages: any[] = []
279279
const mockAgentState = createMockAgentState(initialMessages)
280280
const mockLogger = {
281-
debug: () => {},
282-
info: () => {},
283-
warn: () => {},
284-
error: () => {},
281+
debug: () => { },
282+
info: () => { },
283+
warn: () => { },
284+
error: () => { },
285285
}
286286

287287
const generator = editor.handleSteps!({
@@ -315,10 +315,10 @@ describe('editor agent', () => {
315315
test('works with empty initial message history', () => {
316316
const mockAgentState = createMockAgentState([])
317317
const mockLogger = {
318-
debug: () => {},
319-
info: () => {},
320-
warn: () => {},
321-
error: () => {},
318+
debug: () => { },
319+
info: () => { },
320+
warn: () => { },
321+
error: () => { },
322322
}
323323

324324
const generator = editor.handleSteps!({

agents/__tests__/thinker.test.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('thinker agent', () => {
2929
})
3030

3131
test('uses opus model', () => {
32-
expect(thinker.model).toBe('anthropic/claude-opus-4.5')
32+
expect(thinker.model).toBe('anthropic/claude-opus-4.6')
3333
})
3434

3535
test('has output mode set to structured_output', () => {
@@ -94,10 +94,10 @@ describe('thinker agent', () => {
9494
test('yields STEP to get agent state', () => {
9595
const mockAgentState = createMockAgentState()
9696
const mockLogger = {
97-
debug: () => {},
98-
info: () => {},
99-
warn: () => {},
100-
error: () => {},
97+
debug: () => { },
98+
info: () => { },
99+
warn: () => { },
100+
error: () => { },
101101
}
102102

103103
const generator = thinker.handleSteps!({
@@ -125,10 +125,10 @@ describe('thinker agent', () => {
125125

126126
const mockAgentState = createMockAgentState(messages)
127127
const mockLogger = {
128-
debug: () => {},
129-
info: () => {},
130-
warn: () => {},
131-
error: () => {},
128+
debug: () => { },
129+
info: () => { },
130+
warn: () => { },
131+
error: () => { },
132132
}
133133

134134
const generator = thinker.handleSteps!({
@@ -170,10 +170,10 @@ describe('thinker agent', () => {
170170

171171
const mockAgentState = createMockAgentState(messages)
172172
const mockLogger = {
173-
debug: () => {},
174-
info: () => {},
175-
warn: () => {},
176-
error: () => {},
173+
debug: () => { },
174+
info: () => { },
175+
warn: () => { },
176+
error: () => { },
177177
}
178178

179179
const generator = thinker.handleSteps!({
@@ -220,10 +220,10 @@ Actual response here`,
220220

221221
const mockAgentState = createMockAgentState(messages)
222222
const mockLogger = {
223-
debug: () => {},
224-
info: () => {},
225-
warn: () => {},
226-
error: () => {},
223+
debug: () => { },
224+
info: () => { },
225+
warn: () => { },
226+
error: () => { },
227227
}
228228

229229
const generator = thinker.handleSteps!({
@@ -255,10 +255,10 @@ Actual response here`,
255255

256256
const mockAgentState = createMockAgentState(messages)
257257
const mockLogger = {
258-
debug: () => {},
259-
info: () => {},
260-
warn: () => {},
261-
error: () => {},
258+
debug: () => { },
259+
info: () => { },
260+
warn: () => { },
261+
error: () => { },
262262
}
263263

264264
const generator = thinker.handleSteps!({
@@ -298,10 +298,10 @@ Actual response here`,
298298

299299
const mockAgentState = createMockAgentState(messages)
300300
const mockLogger = {
301-
debug: () => {},
302-
info: () => {},
303-
warn: () => {},
304-
error: () => {},
301+
debug: () => { },
302+
info: () => { },
303+
warn: () => { },
304+
error: () => { },
305305
}
306306

307307
const generator = thinker.handleSteps!({
@@ -337,10 +337,10 @@ Actual response here`,
337337

338338
const mockAgentState = createMockAgentState(messages)
339339
const mockLogger = {
340-
debug: () => {},
341-
info: () => {},
342-
warn: () => {},
343-
error: () => {},
340+
debug: () => { },
341+
info: () => { },
342+
warn: () => { },
343+
error: () => { },
344344
}
345345

346346
const generator = thinker.handleSteps!({
@@ -389,10 +389,10 @@ Actual response here`,
389389

390390
const mockAgentState = createMockAgentState(messages)
391391
const mockLogger = {
392-
debug: () => {},
393-
info: () => {},
394-
warn: () => {},
395-
error: () => {},
392+
debug: () => { },
393+
info: () => { },
394+
warn: () => { },
395+
error: () => { },
396396
}
397397

398398
const generator = thinker.handleSteps!({
@@ -442,10 +442,10 @@ Actual response here`,
442442

443443
const mockAgentState = createMockAgentState(messages)
444444
const mockLogger = {
445-
debug: () => {},
446-
info: () => {},
447-
warn: () => {},
448-
error: () => {},
445+
debug: () => { },
446+
info: () => { },
447+
warn: () => { },
448+
error: () => { },
449449
}
450450

451451
const generator = thinker.handleSteps!({
@@ -477,10 +477,10 @@ Actual response here`,
477477

478478
const mockAgentState = createMockAgentState(messages)
479479
const mockLogger = {
480-
debug: () => {},
481-
info: () => {},
482-
warn: () => {},
483-
error: () => {},
480+
debug: () => { },
481+
info: () => { },
482+
warn: () => { },
483+
error: () => { },
484484
}
485485

486486
const generator = thinker.handleSteps!({

agents/base2/base2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function createBase2(
2828

2929
return {
3030
publisher,
31-
model: isFree ? 'x-ai/grok-4.1-fast' : 'anthropic/claude-opus-4.5',
31+
model: isFree ? 'x-ai/grok-4.1-fast' : 'anthropic/claude-opus-4.6',
3232
displayName: 'Buffy the Orchestrator',
3333
spawnerPrompt:
3434
'Advanced base agent that orchestrates planning, editing, and reviewing for complex coding tasks',

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const createBestOfNSelector2 = (options: {
1616
model: isSonnet
1717
? 'anthropic/claude-sonnet-4.5'
1818
: isOpus
19-
? 'anthropic/claude-opus-4.5'
19+
? 'anthropic/claude-opus-4.6'
2020
: 'openai/gpt-5.2',
2121
...(isGpt5 && {
2222
reasoningOptions: {
@@ -126,13 +126,12 @@ Try to select an implementation that fulfills all the requirements in the user's
126126
127127
## Response Format
128128
129-
${
130-
isSonnet || isOpus
131-
? `Use <think> tags to write out your thoughts about the implementations as needed to pick the best implementation. IMPORTANT: You should think really really hard to make sure you pick the absolute best implementation! Also analyze the non-chosen implementations for any valuable techniques or approaches that could improve the selected one.
129+
${isSonnet || isOpus
130+
? `Use <think> tags to write out your thoughts about the implementations as needed to pick the best implementation. IMPORTANT: You should think really really hard to make sure you pick the absolute best implementation! Also analyze the non-chosen implementations for any valuable techniques or approaches that could improve the selected one.
132131
133132
Then, do not write any other explanations AT ALL. You should directly output a single tool call to set_output with the selected implementationId, short reason, and suggestedImprovements array.`
134-
: `Output a single tool call to set_output with the selected implementationId, reason, and suggestedImprovements. Do not write anything else.`
135-
}`,
133+
: `Output a single tool call to set_output with the selected implementationId, reason, and suggestedImprovements. Do not write anything else.`
134+
}`,
136135
}
137136
}
138137

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const createBestOfNImplementor = (options: {
1616
model: isSonnet
1717
? 'anthropic/claude-sonnet-4.5'
1818
: isOpus
19-
? 'anthropic/claude-opus-4.5'
19+
? 'anthropic/claude-opus-4.6'
2020
: isGemini
2121
? 'google/gemini-3-pro-preview'
2222
: 'openai/gpt-5.1',
@@ -67,10 +67,9 @@ OR for new files or major rewrites:
6767
"content": "Complete file content or edit snippet"
6868
}
6969
</codebuff_tool_call>
70-
${
71-
isGpt5 || isGemini
72-
? ``
73-
: `
70+
${isGpt5 || isGemini
71+
? ``
72+
: `
7473
IMPORTANT: Before you start writing your implementation, you should use <think> tags to think about the best way to implement the changes. You should think really really hard to make sure you implement the changes in the best way possible. Take as much time as you to think through all the cases to produce the best changes.
7574
7675
You can also use <think> tags interspersed between tool calls to think about the best way to implement the changes.
@@ -98,7 +97,7 @@ You can also use <think> tags interspersed between tool calls to think about the
9897
</codebuff_tool_call>
9998
10099
</example>`
101-
}
100+
}
102101
103102
After the edit tool calls, you can optionally mention any follow-up steps to take, like deleting a file, or a specific way to validate the changes. There's no need to use the set_output tool as your entire response will be included in the output.
104103

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { SecretAgentDefinition } from '../../types/secret-agent-definition'
1111
export function createMultiPromptEditor(): Omit<SecretAgentDefinition, 'id'> {
1212
return {
1313
publisher,
14-
model: 'anthropic/claude-opus-4.5',
14+
model: 'anthropic/claude-opus-4.6',
1515
displayName: 'Multi-Prompt Editor',
1616
spawnerPrompt:
1717
'Edits code by spawning multiple implementor agents with different strategy prompts, selects the best implementation, and applies the changes. It also returns further suggested improvements which you should take seriously and act on. Pass as input an array of short prompts specifying different implementation approaches or strategies. Make sure to read any files intended to be edited before spawning this agent.',

agents/editor/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const createCodeEditor = (options: {
1414
? 'openai/gpt-5.1'
1515
: options.model === 'glm'
1616
? 'z-ai/glm-4.7'
17-
: 'anthropic/claude-opus-4.5',
17+
: 'anthropic/claude-opus-4.6',
1818
...(model === 'glm' && {
1919
reasoningOptions: {
2020
effort: 'high',

agents/general-agent/general-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const createGeneralAgent = (options: {
1212

1313
return {
1414
publisher,
15-
model: isGpt5 ? 'openai/gpt-5.2' : 'anthropic/claude-opus-4.5',
15+
model: isGpt5 ? 'openai/gpt-5.2' : 'anthropic/claude-opus-4.6',
1616
...(isGpt5 && {
1717
reasoningOptions: {
1818
effort: 'high' as const,

agents/reviewer/code-reviewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Be extremely concise.`,
6464
const definition: SecretAgentDefinition = {
6565
id: 'code-reviewer',
6666
publisher,
67-
...createReviewer('anthropic/claude-opus-4.5'),
67+
...createReviewer('anthropic/claude-opus-4.6'),
6868
}
6969

7070
export default definition

agents/reviewer/multi-prompt/code-reviewer-multi-prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function createCodeReviewerMultiPrompt(): Omit<
1414
> {
1515
return {
1616
publisher,
17-
model: 'anthropic/claude-opus-4.5',
17+
model: 'anthropic/claude-opus-4.6',
1818
displayName: 'Multi-Prompt Code Reviewer',
1919
spawnerPrompt:
2020
'Reviews code by spawning multiple code-reviewer agents with different focus prompts, then combines all review outputs into a comprehensive review. Make sure to read relevant files before spawning this agent. Pass an input array of short prompts specifying several different review focuses or perspectives.',

0 commit comments

Comments
 (0)