Search the codebase for relevant files and context; use when asked to locate files or understand where to work.
Use CLI subagents to find relevant files and optionally gather documentation.
aidocs/ and aidocs/context/.CLOUDSDK_CORE_PROJECT="" GOOGLE_CLOUD_PROJECT="" GCLOUD_PROJECT="" GEMINI_API_KEY=${GEMINI_API_KEY} \
gemini -m gemini-3-flash-preview -o text "Search the codebase for files related to: {QUERY}. Return file paths with line ranges."
CLOUDSDK_CORE_PROJECT="" GOOGLE_CLOUD_PROJECT="" GCLOUD_PROJECT="" GEMINI_API_KEY=${GEMINI_API_KEY} \
gemini -m gemini-2.5-flash-lite -o text "Quickly identify files for: {QUERY}. List file paths with line ranges."
codex exec -m gpt-5.2 -s read-only -c model_reasoning_effort="low" --skip-git-repo-check \
"Locate files for: {QUERY}. Output file paths with line numbers."
claude --model haiku -p "Find files for: {QUERY}. Return file paths with line ranges only."
CLOUDSDK_CORE_PROJECT="" GOOGLE_CLOUD_PROJECT="" GCLOUD_PROJECT="" GEMINI_API_KEY=${GEMINI_API_KEY} \
gemini -m gemini-3-flash-preview -o text "Search the internet for official documentation related to: {QUERY}. Return URLs and short summaries."
CLOUDSDK_CORE_PROJECT="" GOOGLE_CLOUD_PROJECT="" GCLOUD_PROJECT="" GEMINI_API_KEY=${GEMINI_API_KEY} \
gemini -m gemini-3-flash-preview -o text "Find tutorials and best practices for: {QUERY}. Return URLs and short summaries."
codex exec -m gpt-5.2 -c model_reasoning_effort="low" --skip-git-repo-check \
"Search online docs for: {QUERY}. Return URLs and summaries."
codex exec -m gpt-5.2 -c model_reasoning_effort="low" --skip-git-repo-check \
"Find code examples and guides for: {QUERY}. Return URLs and summaries."
mkdir aidocs
mkdir aidocs\context
Save results to aidocs/<query-slug>-docs.md with URLs and key findings.