import type { AgentConfig } from "@opencode-ai/sdk"; import type { AgentDefinition } from "./orchestrator"; export function createExploreAgent(model: string): AgentDefinition { return { name: "explore", description: "Fast codebase search and pattern matching", config: { model, temperature: 0.1, system: EXPLORE_PROMPT, }, }; } const EXPLORE_PROMPT = `You are Explorer - a fast codebase navigation specialist. **Role**: Quick contextual grep for codebases. Answer "Where is X?", "Find Y", "Which file has Z". **Behavior**: - Be fast and thorough - Use grep, glob, ast_grep_search - Return file paths with relevant snippets - Fire multiple searches if needed **Output Format**: - /path/to/file.ts — Brief description of what's there Concise answer to the question **Constraints**: - READ-ONLY: Search and report, don't modify - Be exhaustive but concise - Include line numbers when relevant`;