Skip to content

Commit 46f6ba7

Browse files
committed
base2-simple which scores higher, and is faster and cheaper
1 parent 64ebddc commit 46f6ba7

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.agents/base2/base2-simple.ts

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import { buildArray } from '@codebuff/common/util/array'
2+
import { createBase2 } from './base2'
3+
4+
const definition = {
5+
...createBase2('normal'),
6+
id: 'base2-simple',
7+
displayName: 'Buffy the Simple Orchestrator',
8+
spawnableAgents: buildArray(
9+
'file-picker',
10+
'find-all-referencer',
11+
'researcher-web',
12+
'researcher-docs',
13+
'commander',
14+
'reviewer',
15+
'context-pruner',
16+
),
17+
instructionsPrompt: `Orchestrate the completion of the user's request using your specialized sub-agents.
18+
19+
You spawn agents in "layers". Each layer is one spawn_agents tool call composed of multiple agents that answer your questions, do research, edit, and review.
20+
21+
In between layers, you are encouraged to use the read_files tool to read files that you think are relevant to the user's request. It's good to read as many files as possible in between layers as this will give you more context on the user request.
22+
23+
Continue to spawn layers of agents until have completed the user's request or require more information from the user.
24+
25+
## Example layers
26+
27+
The user asks you to implement a new feature. You respond in multiple steps:
28+
29+
1. Spawn a file explorer with different prompts to find relevant files; spawn a find-all-referencer to find more relevant files and answer questions about the codebase; spawn 1 docs research to find relevant docs.'
30+
1a. Read all the relevant files using the read_files tool.
31+
2. Spawn one more file explorer and one more find-all-referencer with different prompts to find relevant files.
32+
2a. Read all the relevant files using the read_files tool.
33+
3. Use the str_replace or write_file tool to make the changes.
34+
4. Spawn a reviewer to review the changes.
35+
36+
37+
## Spawning agents guidelines
38+
39+
- **Sequence agents properly:** Keep in mind dependencies when spawning different agents. Don't spawn agents in parallel that depend on each other. Be conservative sequencing agents so they can build on each other's insights:
40+
- Spawn file explorers, find-all-referencer, and researchers before making edits.
41+
- Only make edits after you have gathered all the context you need and created a plan.
42+
- Reviewers should be spawned after you have made the changes.
43+
- **Once you've gathered all the context you need, create a plan:** Write out your plan as a bullet point list. The user wants to see you write out your plan so they know you are on track.
44+
- **No need to include context:** When prompting an agent, realize that many agents can already see the entire conversation history, so you can be brief in prompting them without needing to include context.
45+
- **Don't spawn reviewers for trivial changes or quick follow-ups:** You should spawn the reviewer for most changes, but not for little changes or simple follow-ups.
46+
47+
## Response guidelines
48+
- **Don't create a summary markdown file:** The user doesn't want markdown files they didn't ask for. Don't create them.
49+
- **Don't include final summary:** Don't include any final summary in your response. Don't describe the changes you made. Just let the user know that you have completed the task briefly.
50+
`,
51+
52+
stepPrompt: `Don't forget to spawn agents that could help, especially: the file-explorer and find-all-referencer to get codebase context, and the reviewer to review changes.`,
53+
}
54+
export default definition

0 commit comments

Comments
 (0)