--- name: gemini-search description: Search research papers via Gemini for broad literature discovery. Use when user says "gemini search", "gemini papers", "search with gemini", or wants AI-powered literature discovery beyond arXiv/Semantic Scholar indexes. argument-hint: "[search-query]" allowed-tools: Bash(*), Read, Write, mcp__gemini-cli__* --- # Gemini Literature Search Use Gemini through the Antigravity CLI (`agy`) to discover papers across related terminology, methods and benchmarks. Input: $ARGUMENTS. ## Search 1. Read the topic and optional filters: `— max:` (default 15), `— year:` (default 2022 onward), `— venues:`, `— code-only`, and `— model:`. Example: `/gemini-search "attention kernels" — max: 5 — code-only`. 2. Use the user's signed-in Antigravity CLI. If setting it up for the first time, install the CLI from [Google Antigravity](https://antigravity.google/), open `agy` to sign in and select a Gemini model. `agy models` lists the available IDs. 3. Build a search prompt with the topic and filters. Ask Gemini to **use web search**, try relevant aliases, and return up to the requested number of papers. For each, request the exact title, authors, year, venue, primary source URL (arXiv, DOI or publisher), code URL when available, and one sentence on the contribution. Pass the prompt as one quoted argument: ```bash agy --sandbox -p "$prompt" ``` This uses the model selected in AGY. For an explicit Gemini model, run `agy --sandbox --model "$model" -p "$prompt"` with the requested ID. Report authentication, model or search errors so the user knows which source ran. 4. If `agy` is absent, an existing `mcp__gemini-cli__ask-gemini` tool or `gemini -p "$prompt"` can run the same query. Pass an explicit model through the MCP `model` field or the CLI `--model` option. If no route is available, report that Gemini was skipped. For a combined search, continue with the other requested sources. ## Results Open the primary links and match the titles and bibliographic details before including papers in the results. Keep unresolved leads separate. Use Semantic Scholar for citation counts if requested. Return a compact table of linked papers, venue, year, code and contribution. Include arXiv IDs and DOIs when available so the caller can deduplicate results. To combine Gemini with indexed search, use `/research-lit "attention kernels" — sources: gemini, semantic-scholar`.