Skip to content

Commit 83bf039

Browse files
committed
base2-hybrid-max with gpt-5 worker
1 parent a3c5945 commit 83bf039

File tree

3 files changed

+77
-1
lines changed

3 files changed

+77
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { buildArray } from '@codebuff/common/util/array'
2+
import { createBase2 } from './base2'
3+
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
4+
5+
const base = createBase2('normal')
6+
7+
const definition: SecretAgentDefinition = {
8+
...base,
9+
id: 'base2-gpt-5-worker',
10+
model: 'openai/gpt-5',
11+
spawnableAgents: buildArray(
12+
'file-picker',
13+
'find-all-referencer',
14+
'researcher-web',
15+
'researcher-docs',
16+
'commander',
17+
'reviewer-gpt-5',
18+
'context-pruner',
19+
),
20+
21+
inputSchema: {},
22+
23+
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.
24+
25+
## Example response
26+
27+
The user asks you to implement a new feature. You respond in multiple steps:
28+
29+
1. Spawn two different file-picker-max's with different prompts to find relevant files; spawn a code-searcher and glob-matcher to find more relevant files and answer questions about the codebase; spawn 1 docs researcher to find relevant docs.
30+
1a. Read all the relevant files using the read_files tool.
31+
2. Spawn one more file-picker-max and one more code-searcher with different prompts to find relevant files.
32+
2a. Read all the relevant files using the read_files tool.
33+
3. Spawn a base2-gpt-5 agent inline (with spawn_agent_inline tool) to do the planning and editing.
34+
4. Use the str_replace or write_file tool to make the changes.
35+
5. Spawn a reviewer to review the changes.
36+
6. Fix any issues raised by the reviewer.
37+
7. Inform the parent agent you're done with your edits, but that it should double-check your work.`,
38+
39+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker-max and find-all-referencer to get codebase context, and the reviewer to review the changes.`,
40+
}
41+
42+
export default definition

.agents/base2/base2-hybrid-max.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { createBase2 } from './base2'
2+
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
3+
4+
const base2 = createBase2('max')
5+
const definition: SecretAgentDefinition = {
6+
...base2,
7+
id: 'base2-hybrid-max',
8+
spawnableAgents: [...(base2.spawnableAgents ?? []), 'base2-gpt-5-worker'],
9+
toolNames: [
10+
'spawn_agents',
11+
'spawn_agent_inline',
12+
'read_files',
13+
'str_replace',
14+
'write_file',
15+
],
16+
17+
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.
18+
19+
## Example response
20+
21+
The user asks you to implement a new feature. You respond in multiple steps:
22+
23+
1. Spawn two different file-picker-max's with different prompts to find relevant files; spawn a code-searcher and glob-matcher to find more relevant files and answer questions about the codebase; spawn 1 docs researcher to find relevant docs.
24+
1a. Read all the relevant files using the read_files tool.
25+
2. Spawn one more file-picker-max and one more code-searcher with different prompts to find relevant files.
26+
2a. Read all the relevant files using the read_files tool.
27+
3. IMPORTANT: You must spawn a base2-gpt-5-worker agent inline (with spawn_agent_inline tool) to do the planning and editing.
28+
4. Fix any issues left by the base2-gpt-5-worker agent.
29+
5. Inform the user that you have completed the task in one sentence without a final summary.`,
30+
31+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker-max and find-all-referencer to get codebase context, the base2-gpt-5-worker to do the planning and editing (you must spawn this agent!). Double-check the work of the base2-gpt-5-worker agent and finish without a final summary, just one sentence saying you're done.`,
32+
}
33+
34+
export default definition

.agents/base2/base2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ ${PLACEHOLDER.GIT_CHANGES_PROMPT}
124124
125125
The user asks you to implement a new feature. You respond in multiple steps:
126126
127-
1. Spawn file-picker-maxs with different prompts to find relevant files; spawn a code-searcher and glob-matcher to find more relevant files and answer questions about the codebase; spawn 1 docs researcher to find relevant docs.
127+
1. Spawn a couple different file-picker-max's with different prompts to find relevant files; spawn a code-searcher and glob-matcher to find more relevant files and answer questions about the codebase; spawn 1 docs researcher to find relevant docs.
128128
1a. Read all the relevant files using the read_files tool.
129129
2. Spawn one more file-picker-max and one more code-searcher with different prompts to find relevant files.
130130
2a. Read all the relevant files using the read_files tool.

0 commit comments

Comments
 (0)