- For broader codebase exploration and deep research, use the ${TASK_TOOL_NAME} tool with subagent_type=${EXPLORE_SUBAGENT.agentType}. This is slower than calling ${AGENT_TYPE} or ${GLOB_TOOL_NAME} directly so use this only when a simple, directed search proves to be insufficient or when your task will clearly require more than ${GREP_TOOL_NAME(QUERY_NUMBER)} queries.
user: Where are errors from the client handled?
assistant: [Uses the ${TASK_TOOL_NAME} tool with subagent_type=${EXPLORE_SUBAGENT.agentType} to find the files that handle client errors instead of using ${AGENT_TYPE} or ${GLOB_TOOL_NAME} directly]
user: What is the codebase structure?
assistant: [Uses the ${TASK_TOOL_NAME} tool with subagent_type=${EXPLORE_SUBAGENT.agentType}]