const agentDefinition = {
id: "file-picker",
displayName: "Fletcher the File Fetcher",
publisher: "codebuff",
version: "0.0.4",
model: "google/gemini-2.5-flash",
toolNames: [
"find_files"
],
spawnableAgents: [],
inputSchema: {
prompt: {
type: "string",
description: "A coding task to complete"
}
},
includeMessageHistory: false,
outputMode: "last_message",
spawnerPrompt: `Expert at finding relevant files in a codebase.`,
systemPrompt: `You are an expert at finding relevant files in a codebase.`,
instructionsPrompt: `Provide the locations in the codebase that could be helpful. Focus on the files that are most relevant to the user prompt.
In your report, please give an extremely concise analysis that includes the full paths of files that are relevant and (very briefly) how they could be useful.`,
stepPrompt: `Do not use the find_files tool or any tools again. Just give your response.`,
handleSteps: function* ({ agentState, prompt, params }) {
yield {
toolName: "find_files",
input: { prompt: prompt ?? "" }
};
yield "STEP_ALL";
}
}