Skip to content

Commit 2a736ba

Browse files
committed
Create base2-max as an alloy of sonnet & gpt-5!
1 parent 9a878c6 commit 2a736ba

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { createBase2 } from './base2'
2+
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
3+
4+
const definition: SecretAgentDefinition = {
5+
...createBase2('normal'),
6+
id: 'base2-gpt-5-single-step',
7+
model: 'openai/gpt-5',
8+
reasoningOptions: {
9+
enabled: true,
10+
effort: 'medium',
11+
exclude: false,
12+
},
13+
14+
inputSchema: {},
15+
16+
handleSteps: function* ({ params }) {
17+
// Run context-pruner before each step
18+
yield {
19+
toolName: 'spawn_agent_inline',
20+
input: {
21+
agent_type: 'context-pruner',
22+
params: params ?? {},
23+
},
24+
includeToolCall: false,
25+
} as any
26+
27+
yield 'STEP'
28+
},
29+
}
30+
31+
export default definition

.agents/base2/base2-max.ts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
import { createBase2 } from './base2'
2+
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
23

3-
const definition = { ...createBase2('max'), id: 'base2-max' }
4+
const base2 = createBase2('max')
5+
const definition: SecretAgentDefinition = {
6+
...base2,
7+
id: 'base2-max',
8+
spawnableAgents: [
9+
...(base2.spawnableAgents ?? []),
10+
'base2-gpt-5-single-step',
11+
],
12+
handleSteps: function* ({ params }) {
13+
while (true) {
14+
// Run context-pruner before each step
15+
yield {
16+
toolName: 'spawn_agent_inline',
17+
input: {
18+
agent_type: 'context-pruner',
19+
params: params ?? {},
20+
},
21+
includeToolCall: false,
22+
} as any
23+
24+
const { stepsComplete } = yield 'STEP'
25+
if (stepsComplete) break
26+
27+
yield {
28+
toolName: 'spawn_agent_inline',
29+
input: {
30+
agent_type: 'base2-gpt-5-single-step',
31+
},
32+
}
33+
}
34+
},
35+
}
436

537
export default definition

0 commit comments

Comments
 (0)