Skip to content

Commit 2065701

Browse files
committed
Add file-picker-max which uses Haiku 4.5
1 parent 8bb7715 commit 2065701

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { ToolCall } from 'types/agent-definition'
2+
import { publisher } from '../constants'
3+
4+
import {
5+
PLACEHOLDER,
6+
type SecretAgentDefinition,
7+
} from '../types/secret-agent-definition'
8+
9+
const definition: SecretAgentDefinition = {
10+
id: 'file-picker',
11+
displayName: 'Fletcher the File Fetcher',
12+
publisher,
13+
model: 'anthropic/claude-haiku-4.5',
14+
spawnerPrompt:
15+
'Spawn to find relevant files in a codebase related to the prompt. Cannot do string searches on the codebase.',
16+
inputSchema: {
17+
prompt: {
18+
type: 'string',
19+
description: 'A coding task to complete',
20+
},
21+
},
22+
outputMode: 'last_message',
23+
includeMessageHistory: false,
24+
toolNames: [],
25+
spawnableAgents: [],
26+
27+
systemPrompt: `You are an expert at finding relevant files in a codebase. ${PLACEHOLDER.FILE_TREE_PROMPT_SMALL}`,
28+
instructionsPrompt: `Instructions:
29+
- Don't use any tools.
30+
- Provide a short report of the locations in the codebase that could be helpful. Focus on the files that are most relevant to the user prompt.
31+
In your report, please give a very concise analysis that includes the full paths of files that are relevant and (briefly) how they could be useful.
32+
`.trim(),
33+
34+
handleSteps: function* ({ agentState, prompt, params }) {
35+
yield {
36+
toolName: 'find_files',
37+
input: { prompt: prompt ?? '' },
38+
} satisfies ToolCall
39+
yield 'STEP_ALL'
40+
},
41+
}
42+
43+
export default definition

0 commit comments

Comments
 (0)