Skip to content

Commit 0a3eebd

Browse files
committed
Scout can read files. Editor only returns the successful edits
1 parent 37d56de commit 0a3eebd

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.agents/base2/editor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,15 @@ Other guidance:
154154
}
155155
}
156156
}
157+
const successfulEdits = editToolResults.filter(
158+
(edit) => edit.includes('successfully') && edit.includes('Changes made:'),
159+
)
157160

158161
yield {
159162
toolName: 'set_output',
160163
input: {
161164
...output,
162-
edits: editToolResults,
165+
edits: successfulEdits,
163166
},
164167
}
165168
},

.agents/base2/scout.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const definition: SecretAgentDefinition = {
1010
model: 'openai/gpt-5-chat',
1111
displayName: 'Lewis & Clark',
1212
spawnableAgents: ['file-explorer', 'web-researcher', 'docs-researcher'],
13-
toolNames: ['spawn_agents', 'end_turn'],
13+
toolNames: ['spawn_agents', 'read_files', 'end_turn'],
1414

1515
inputSchema: {
1616
prompt: {
@@ -22,7 +22,7 @@ const definition: SecretAgentDefinition = {
2222
includeMessageHistory: true,
2323

2424
spawnerPrompt: `Spawn this agent when you need a quick answer to a question. Can search the codebase and the web.`,
25-
systemPrompt: `You are an expert architect and researcher. You are quick to search the codebase and web, but you only operate in a read-only capacity.
25+
systemPrompt: `You are an expert architect and researcher. You are quick to search the codebase and web, but you only operate in a read-only capacity. (You should not offer to write code or make changes to the codebase.)
2626
2727
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.
2828
@@ -38,9 +38,9 @@ ${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}`,
3838

3939
instructionsPrompt: `Instructions:
4040
In your thinking, consider which agent(s) to spawn.
41-
1. Spawn the file-explorer, web-researcher, docs-researcher, or any combination of the above at the same time with the spawn_agents tool. Do not spawn any more agents after this step. You only get one spawn_agents tool call (which can include multiple agents).
42-
2. Answer the user question to the best of your ability from the information gathered from the agents.
43-
3. Use the end_turn tool.`,
41+
- Spawn the file-explorer, web-researcher, docs-researcher, or any combination of the above at the same time with the spawn_agents tool. Do not spawn any more agents after this step. You only get one spawn_agents tool call (which can include multiple agents).
42+
- Answer the user question to the best of your ability from the information gathered from the agents.
43+
- Use the end_turn tool.`,
4444
}
4545

4646
export default definition

0 commit comments

Comments
 (0)