Skip to content

Commit 33dc873

Browse files
committed
Test subgoals, and no code review/validator
1 parent 14a8e40 commit 33dc873

File tree

5 files changed

+82
-4
lines changed

5 files changed

+82
-4
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { createBase2 } from './base2'
2+
3+
const base2Fast = createBase2('fast')
4+
const definition = {
5+
...base2Fast,
6+
id: 'base2-fast-subgoals',
7+
displayName: 'Buffy the Fast Subgoals Orchestrator',
8+
toolNames: [...(base2Fast.toolNames ?? []), 'add_subgoal', 'update_subgoal'],
9+
instructionsPrompt: `${base2Fast.instructionsPrompt}
10+
11+
## Subgoals
12+
13+
IMPORTANT: You must use the add_subgoal and update_subgoal tools to track your progress and objectives.
14+
15+
- Before attempting any action, you must create a subgoal using the add_subgoal tool to track your progress and objectives.
16+
- Whenever you start a new action or complete an action, you must update the subgoal using the update_subgoal tool!`,
17+
}
18+
export default definition
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 base2 = createBase2('max')
6+
7+
const definition: SecretAgentDefinition = {
8+
...base2,
9+
id: 'base2-gpt-5-worker',
10+
model: 'openai/gpt-5',
11+
spawnableAgents: buildArray(
12+
'file-picker',
13+
'code-searcher',
14+
'directory-lister',
15+
'glob-matcher',
16+
'researcher-web',
17+
'researcher-docs',
18+
'commander',
19+
'context-pruner',
20+
),
21+
22+
inputSchema: {},
23+
24+
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents. Take your time and be comprehensive.
25+
26+
## Example response
27+
28+
The user asks you to implement a new feature. You respond in multiple steps:
29+
30+
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.
31+
1a. Read all the relevant files using the read_files tool.
32+
2. Spawn one more file-picker-max and one more code-searcher with different prompts to find relevant files.
33+
2a. Read all the relevant files using the read_files tool.
34+
3. Use the str_replace or write_file tool to make the changes.
35+
4. Inform the parent agent you're done with your edits, but that it should double-check your work.`,
36+
37+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-picker-max and code-searcher to get codebase context.`,
38+
}
39+
40+
export default definition

.agents/base2/base2-gpt-5-worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { buildArray } from '@codebuff/common/util/array'
22
import { createBase2 } from './base2'
33
import type { SecretAgentDefinition } from '../types/secret-agent-definition'
44

5-
const base = createBase2('normal')
5+
const base2 = createBase2('max')
66

77
const definition: SecretAgentDefinition = {
8-
...base,
8+
...base2,
99
id: 'base2-gpt-5-worker',
1010
model: 'openai/gpt-5',
1111
spawnableAgents: buildArray(

.agents/base2/base2-max-simple.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { buildArray } from '@codebuff/common/util/array'
2+
import { createBase2 } from './base2'
3+
4+
const definition = {
5+
...createBase2('max'),
6+
id: 'base2-max-simple',
7+
displayName: 'Buffy the Max Orchestrator',
8+
spawnableAgents: buildArray(
9+
'file-picker-max',
10+
'code-searcher',
11+
'directory-lister',
12+
'glob-matcher',
13+
'researcher-web',
14+
'researcher-docs',
15+
'commander',
16+
'base2-gpt-5-worker-simple',
17+
'context-pruner',
18+
),
19+
}
20+
export default definition

evals/buffbench/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { runBuffBench } from './run-buffbench'
55
async function main() {
66
await runBuffBench({
77
evalDataPath: path.join(__dirname, 'eval-codebuff.json'),
8-
agents: ['base2-fast', 'base2-fast-schooled', 'base2', 'base2-max'],
9-
taskConcurrency: 5,
8+
agents: ['base2-max', 'base2-max-simple'],
9+
taskConcurrency: 10,
1010
})
1111

1212
process.exit(0)

0 commit comments

Comments
 (0)