Skip to content

Commit 38abc6d

Browse files
committed
Add Scout agent to base2! Tweak agent roles. Add researcher to editor.
1 parent 41b7e47 commit 38abc6d

File tree

5 files changed

+50
-8
lines changed

5 files changed

+50
-8
lines changed

.agents/base2/base2-factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ export const base2 = (model: ModelName): Omit<SecretAgentDefinition, 'id'> => ({
2727
outputMode: 'last_message',
2828
includeMessageHistory: true,
2929
toolNames: ['spawn_agents', 'end_turn'],
30-
spawnableAgents: ['planner', 'editor', 'reviewer', 'context-pruner'],
30+
spawnableAgents: ['scout', 'planner', 'editor', 'reviewer', 'context-pruner'],
3131

32-
systemPrompt: `You are a strategic base agent that orchestrates complex coding tasks through specialized sub-agents.
32+
systemPrompt: `You are Buffy, a strategic coding assistant that orchestrates complex coding tasks through specialized sub-agents.
3333
3434
Principles:
3535
- You coordinate between agents but do not implement code yourself.

.agents/base2/editor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const editor: SecretAgentDefinition = {
1111
model: 'anthropic/claude-4-sonnet-20250522',
1212
displayName: 'Code Editor',
1313
spawnerPrompt:
14-
'Expert code editor with access to tools to edit files and run terminal commands. Can handle small to medium sized tasks, or work off of a plan for more complex tasks.',
14+
'Expert code editor with access to tools to find and edit files, run terminal commands, and search the web. Can handle small to medium sized tasks, or work off of a plan for more complex tasks.',
1515
inputSchema: {
1616
prompt: {
1717
type: 'string',
@@ -40,7 +40,7 @@ const editor: SecretAgentDefinition = {
4040
'set_output',
4141
'end_turn',
4242
],
43-
spawnableAgents: ['file-explorer'],
43+
spawnableAgents: ['file-explorer', 'researcher'],
4444

4545
systemPrompt: `You are an expert code editor with deep understanding of software engineering principles.
4646
@@ -56,7 +56,7 @@ ${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}`,
5656

5757
instructionsPrompt: `Implement the requested changes. Feel free to ignore the plan if it seems incorrect.
5858
59-
- It's helpful to spawn a file explorer to discover all the relevant files for implementing the plan.
59+
- It's helpful to spawn a file explorer to discover all the relevant files for implementing the plan. You can also spawn a researcher at the same time to find information on the web, if relevant.
6060
- You must read all relevant files to understand the current state. You must read any file that could be relevant to the plan, especially files you need to modify, but also files that could show codebase patterns you could imitate. Try to read a lot of files in a single tool call. E.g. use read_files on 12 different files, and then use read_files on 6 more files that fill in the gaps.
6161
- Implement changes using str_replace or write_file.
6262
- You must use the set_output tool before finishing and include a clear explanation of the changes made or an answer to the user prompt.

.agents/base2/planner-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const plannerFactory = (
1313
model,
1414
displayName: 'Peter Plan',
1515
spawnerPrompt:
16-
'Creates comprehensive plans by exploring the codebase, doing research on the web, and thinking deeply. You can also use it to answer questions about anything you want to know.',
16+
'Creates comprehensive plans by exploring the codebase, doing research on the web, and thinking deeply. You can also use it get deep answer to any question.',
1717
inputSchema: {
1818
prompt: {
1919
type: 'string',

.agents/base2/scout.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import {
2+
PLACEHOLDER,
3+
type SecretAgentDefinition,
4+
} from '../types/secret-agent-definition'
5+
import { publisher } from '../constants'
6+
7+
const definition: SecretAgentDefinition = {
8+
id: 'scout',
9+
publisher,
10+
model: 'google/gemini-2.5-pro',
11+
displayName: 'Lewis & Clark',
12+
reasoningOptions: {
13+
effort: 'low',
14+
},
15+
spawnableAgents: ['file-explorer', 'researcher'],
16+
toolNames: ['spawn_agents', 'end_turn'],
17+
18+
inputSchema: {
19+
prompt: {
20+
type: 'string',
21+
description: 'Any question',
22+
},
23+
},
24+
outputMode: 'last_message',
25+
includeMessageHistory: true,
26+
27+
spawnerPrompt: `Spawn this agent when you need a quick answer to a question. Can search the codebase and the web.`,
28+
systemPrompt: `You are an expert architect and researcher. You are quick to search the codebase and web, but do not make any changes.
29+
30+
You spawn agents to help you gather information and answer the user's question. If you need to spawn multiple agents, it's good to spawn multiple agents in parallel to quickly answer the question.
31+
32+
Then answer the question to the best of your ability.
33+
34+
You cannot use any other tools beyond the ones provided to you. (No abiltity to read files, write files, or run terminal commands, etc.)
35+
36+
${PLACEHOLDER.FILE_TREE_PROMPT}
37+
${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}`,
38+
39+
instructionsPrompt: `Answer the user questions using by spawning agents to help. Use the end_turn tool when you've answered the question.`,
40+
}
41+
42+
export default definition

.agents/factory/researcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ export const researcher = (
1818
},
1919
outputMode: 'last_message',
2020
includeMessageHistory: false,
21-
toolNames: ['web_search', 'read_docs', 'read_files', 'end_turn'],
21+
toolNames: ['web_search', 'read_docs', 'end_turn'],
2222
spawnableAgents: [],
2323

24-
systemPrompt: `You are an expert researcher who can search the web and read documentation to find relevant information. Your goal is to provide comprehensive research on the topic requested by the user. Use web_search to find current information and read_docs to get detailed documentation. You can also use code_search and read_files to examine the codebase when relevant.`,
24+
systemPrompt: `You are an expert researcher who can search the web and read documentation to find relevant information. Your goal is to provide comprehensive research on the topic requested by the user. Use web_search to find current information and read_docs to get detailed documentation.`,
2525
instructionsPrompt: `
2626
Provide comprehensive research on the topic. Use web_search to find current information and read_docs to get detailed documentation.
2727
In your report, include key findings, relevant insights, and actionable recommendations.

0 commit comments

Comments
 (0)