Run autonomous multi-step research with cited sources
Runs autonomous Gemini Deep Research tasks that plan, search, and synthesize cited reports, from start to polling to collection.
Why it matters
Execute comprehensive research tasks that autonomously plan search strategies, gather information from multiple sources, synthesize findings, and produce structured reports with citations-ideal for market analysis, literature reviews, competitive intelligence, and due diligence.
Outcomes
What it gets done
Start and monitor long-running research jobs that take 2-10 minutes to complete
Generate structured reports with executive summaries, comparison tables, and recommendations
Track research progress in real-time and poll job status until completion
Continue previous research threads with follow-up questions using conversation history
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/ag-gemini-deep-research | bash Overview
Gemini Deep Research Skill
Runs autonomous Gemini Deep Research tasks that plan, search, and synthesize a cited report, with commands to start, stream progress, poll status, and continue with follow-up questions. Use it when a quick web search isn't enough and a structured, cited report is needed. Get explicit user approval on query, cost, and destination before starting - never include private or confidential material.
What it does
Runs autonomous Gemini Deep Research tasks that plan, search, read, and synthesize information into comprehensive, cited reports - covering how to start a run, poll its progress, and collect the final report.
When to use - and when NOT to
Use it when a question needs autonomous multi-step research with cited sources (market analysis, literature reviews, competitive scans), when a quick web search isn't enough and a structured, source-grounded report is required, or specifically to start a Gemini Deep Research run, poll it, and collect the result. Named best-use cases: market analysis and competitive landscaping, technical literature reviews, due diligence research, historical research and timelines, and comparative analysis of frameworks, products, or technologies. Before starting a job, show the user the exact query, the fact it will be sent to Google's Gemini service, the expected cost range, and the output destination, and start only after explicit approval - never include private workspace material, credentials, personal data, or confidential customer information in a query, and redact proprietary or personal material before requesting approval.
Inputs and outputs
Requires Python 3.8+, the httpx dependency (pip install -r requirements.txt), and a GEMINI_API_KEY environment variable from a Gemini API key obtained at Google AI Studio, set either as an exported variable or a .env file in the skill directory:
export GEMINI_API_KEY=your-api-key-here
Core usage runs through scripts/research.py with a --query flag, and supports a structured --format string, --stream for real-time progress, --no-wait to start without blocking, --status <interaction_id> to check a running job, --wait <interaction_id> to wait for completion, --continue <interaction_id> to elaborate on a previous research run, and --list to see recent research. Output defaults to a human-readable markdown report, with --json for structured programmatic data or --raw for the unprocessed API response. Exit codes are 0 for success, 1 for an error (API error, config issue, timeout), and 130 for user cancellation (Ctrl+C).
Integrations
Wraps the Gemini Deep Research API directly: each task takes 2-10 minutes and costs $2-5 depending on complexity, consuming roughly 250k-900k input tokens and 60k-80k output tokens - each job is a paid, third-party API request, and the listed cost estimate is not a spending authorization since pricing and availability can change. Reports may contain incomplete, stale, or incorrect citations, so consequential claims should be verified against primary sources. The typical workflow is: run the query, tell the user the estimated 2-10 minute wait, monitor with --stream or poll with --status, return the formatted result, and use --continue for any follow-up questions. The API key must stay local and must never be committed, printed, or sent in a query.
Who it's for
Anyone who needs a structured, source-grounded research report - market analysts, technical reviewers, due-diligence teams - rather than a quick web search, and who is comfortable with a paid third-party API call after explicit cost and query approval.
Source README
Gemini Deep Research Skill
When to Use
- Use when a question needs autonomous multi-step research with cited sources (market analysis, literature reviews, competitive scans)
- Use when you want to start a Gemini Deep Research run, poll its progress, and collect the final report
- Use when a quick web search is not enough and a structured, source-grounded report is required
Run autonomous research tasks that plan, search, read, and synthesize information into comprehensive reports.
Requirements
- Python 3.8+
- httpx:
pip install -r requirements.txt - GEMINI_API_KEY environment variable
Setup
- Get a Gemini API key from Google AI Studio
- Set the environment variable:
Or create aexport GEMINI_API_KEY=your-api-key-here.envfile in the skill directory.
Safety Gate
Before starting a research job, show the user the exact query, the fact that it will be sent
to Google's Gemini service, the expected cost range, and the output destination. Start a job
only after explicit approval. Do not include private workspace material, credentials, personal
data, or confidential customer information in a query.
Usage
Start a research task
python3 scripts/research.py --query "Research the history of Kubernetes"
With structured output format
python3 scripts/research.py --query "Compare Python web frameworks" \
--format "1. Executive Summary\n2. Comparison Table\n3. Recommendations"
Stream progress in real-time
python3 scripts/research.py --query "Analyze EV battery market" --stream
Start without waiting
python3 scripts/research.py --query "Research topic" --no-wait
Check status of running research
python3 scripts/research.py --status <interaction_id>
Wait for completion
python3 scripts/research.py --wait <interaction_id>
Continue from previous research
python3 scripts/research.py --query "Elaborate on point 2" --continue <interaction_id>
List recent research
python3 scripts/research.py --list
Output Formats
- Default: Human-readable markdown report
- JSON (
--json): Structured data for programmatic use - Raw (
--raw): Unprocessed API response
Cost & Time
| Metric | Value |
|---|---|
| Time | 2-10 minutes per task |
| Cost | $2-5 per task (varies by complexity) |
| Token usage | ~250k-900k input, ~60k-80k output |
Best Use Cases
- Market analysis and competitive landscaping
- Technical literature reviews
- Due diligence research
- Historical research and timelines
- Comparative analysis (frameworks, products, technologies)
Workflow
- User requests research → Run
--query "..." - Inform user of estimated time (2-10 minutes)
- Monitor with
--streamor poll with--status - Return formatted results
- Use
--continuefor follow-up questions
Exit Codes
- 0: Success
- 1: Error (API error, config issue, timeout)
- 130: Cancelled by user (Ctrl+C)
Limitations
- Each research job is a paid, third-party API request; costs and availability can change, and
the listed estimate is not a spending authorization. - Reports may contain incomplete, stale, or incorrect citations. Verify consequential claims
against primary sources. - This skill cannot guarantee that a prompt is safe to disclose; redact proprietary or personal
material before requesting user approval. - An API key must remain local and must never be committed, printed, or sent in a query.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.