DeepResearch Agent
Autonomous multi-phase research agent that decomposes queries, gathers information from diverse sources, verifies facts, and synthesizes structured reports with 100+ source citations.
Core Workflow
Phase 1: Query Decomposition & Planning
Input: User's research query (natural language)
Process:
Analyze the query intent
- Identify the primary research objective
- Determine required expertise domains (History/Technology/Market/Challenges/Regulations etc.)
- Assess depth requirements (surface-level vs comprehensive)
Generate multi-dimensional search queries
- Historical context queries (when applicable)
- Technical specification queries
- Market/industry trend queries
- Challenge/pain point queries
- Regulatory/compliance queries (if applicable)
- Future outlook/prediction queries
Build investigation roadmap
- Define search priority order
- Identify cross-cutting themes
- Plan for iterative deep-diving
- Set minimum source targets per topic area
Output: research_plan object containing:
{
"primary_topic": "string",
"sub_topics": ["string"],
"search_queries": [{"query": "string", "domain": "string", "priority": 1}],
"target_sources": 100,
"timeline_phases": ["phase1", "phase2", "phase3"]
}
Phase 2: Autonomous Information Gathering
Tools Used: batch_web_search, extract_content_from_websites
Process:
Initial breadth search
- Execute parallel searches across all primary query dimensions
- Gather minimum 20-30 URLs per major topic area
- Prioritize authoritative sources (official docs, academic, established media)
Source classification
- Categorize by source type: News, Academic Papers, Whitepapers, Technical Documentation, Forums, Blogs
- Assess domain authority and reliability
- Flag sources requiring deeper analysis
Iterative deep-diving
- Extract key terms and concepts from initial results
- Generate follow-up queries using discovered terminology
- Expand search to related topics and subtopics
- Loop until saturation (no new significant information)
Diverse source coverage
- Ensure geographic diversity (US/EU/Asia when relevant)
- Cover multiple stakeholder perspectives
- Include both primary and secondary sources
Target: Minimum 100 unique, verified sources
Phase 3: Content Reading & Reasoning
Tools Used: extract_content_from_websites, extract_pdfs_key_info
Process:
Content extraction
- Access each promising URL
- Extract structured information: facts, statistics, quotes, dates, claims
- Parse PDF documents for detailed data
Relevance assessment
- Score content against research objectives (1-5 scale)
- Filter out low-relevance or duplicate content
- Prioritize high-value sources for deep analysis
Information extraction matrix
For each source:
- Source metadata (title, author, date, URL)
- Key findings (bullet points)
- Supporting evidence (quotes, statistics)
- Contradicting information (if any)
- Confidence level (high/medium/low)
Pattern recognition
- Identify consensus areas (multiple sources agree)
- Detect controversy or debate points
- Find knowledge gaps or underreported aspects
Phase 4: Verification & Gap Filling
Process:
Cross-verification protocol
- Check consistency across independent sources
- Verify statistics with multiple citations
- Confirm quotes with original context
Contradiction resolution
- Document conflicting information
- Assess source credibility differences
- Note the nature of disagreement (factual vs interpretive)
- Present multiple perspectives when resolution impossible
Gap identification
- Compare gathered information against research plan
- Identify missing perspectives or outdated information
- Flag areas needing additional primary source verification
Iteration loop (if gaps identified)
- Return to Phase 2 with targeted queries
- Focus on specific missing elements
- Repeat until research objectives are satisfied
Phase 5: Structured Report Synthesis
Output Format: Comprehensive research report
Structure:
# [Research Title]
## Executive Summary
[2-3 paragraph overview of key findings]
## 1. Background and Purpose
[Context and research motivation]
## 2. Key Findings
### 2.1 [Topic Area 1]
#### Facts and Data
#### Analysis and Interpretation
#### Sources
### 2.2 [Topic Area 2]
... (repeat for all sub-topics)
## 3. Market Trends and Future Outlook
[Aggregated trends and predictions]
## 4. Challenges and Risks
[Identified challenges with evidence]
## 5. Opportunities and Recommendations
[Actionable insights]
## 6. List of Sources
[All 100+ sources in academic citation format]
## Appendix
[Supplementary data, tables, charts]
Quality Standards:
- Every factual claim MUST have inline citation [source_id]
- Source attribution format:
[1] Title, Publisher/Site, Publication Date, URL
- Minimum 100 unique sources required
- Use tables for statistical comparisons
- Include key quotes with proper attribution
- Mark uncertain information with confidence indicators
Execution Guidelines
Parallel Execution Strategy
- Run independent searches in parallel (up to 10 concurrent queries)
- Process multiple content extractions simultaneously
- Batch similar operations for efficiency
Quality Thresholds
- Source minimum: 100 unique URLs successfully extracted
- Citation minimum: 100 inline references in final report
- Content relevance: Average score >= 3.0 out of 5
- Source diversity: Minimum 3 different source types represented
Error Handling
- Failed URLs: Log and skip, continue with alternative sources
- Contradictory info: Document and present both perspectives
- Insufficient coverage: Extend search phase until threshold met
- Verification failures: Flag claims as unverified in final report
Progress Tracking
Maintain research log with:
- Sources examined (with success/failure status)
- Key findings per sub-topic
- Verification status
- Remaining gaps
Example Research Queries
This skill excels at:
- "Investigate the latest trends in AI technology using 100+ sources"
- "Electric vehicle market trends 2024 comprehensive analysis"
- "Research on industrial applications of quantum computing"
- "Sustainable energy transition analysis with 100+ sources"
- "Create a comprehensive market research report on [any specialized field]"
Constraints
- Time budget: Allow sufficient iteration time for 100+ source verification
- Source validation: All statistics must have minimum 3 source verification
- Bias awareness: Include diverse perspectives, not just mainstream views
- Currency: Prioritize recent sources (within 2 years) for current topics
- Language: Support English and other major languages as needed
1---2name: deep-research-agent3description: Comprehensive research agent for in-depth investigation. Use when users ask for deep research, comprehensive analysis, market research, academic surveys, competitive analysis, technology trends, or any topic requiring 100+ source verification. Triggers on requests like "investigate", "research", "analyze", "create a report", "comprehensive report", "deep dive", "thorough analysis".4---56# DeepResearch Agent78Autonomous multi-phase research agent that decomposes queries, gathers information from diverse sources, verifies facts, and synthesizes structured reports with 100+ source citations.910## Core Workflow1112### Phase 1: Query Decomposition & Planning1314**Input**: User's research query (natural language)1516**Process**:171. **Analyze the query intent**18 - Identify the primary research objective19 - Determine required expertise domains (History/Technology/Market/Challenges/Regulations etc.)20 - Assess depth requirements (surface-level vs comprehensive)21222. **Generate multi-dimensional search queries**23 - Historical context queries (when applicable)24 - Technical specification queries25 - Market/industry trend queries26 - Challenge/pain point queries27 - Regulatory/compliance queries (if applicable)28 - Future outlook/prediction queries29303. **Build investigation roadmap**31 - Define search priority order32 - Identify cross-cutting themes33 - Plan for iterative deep-diving34 - Set minimum source targets per topic area3536**Output**: `research_plan` object containing:37```json38{39 "primary_topic": "string",40 "sub_topics": ["string"],41 "search_queries": [{"query": "string", "domain": "string", "priority": 1}],42 "target_sources": 100,43 "timeline_phases": ["phase1", "phase2", "phase3"]44}45```4647### Phase 2: Autonomous Information Gathering4849**Tools Used**: `batch_web_search`, `extract_content_from_websites`5051**Process**:521. **Initial breadth search**53 - Execute parallel searches across all primary query dimensions54 - Gather minimum 20-30 URLs per major topic area55 - Prioritize authoritative sources (official docs, academic, established media)56572. **Source classification**58 - Categorize by source type: News, Academic Papers, Whitepapers, Technical Documentation, Forums, Blogs59 - Assess domain authority and reliability60 - Flag sources requiring deeper analysis61623. **Iterative deep-diving**63 - Extract key terms and concepts from initial results64 - Generate follow-up queries using discovered terminology65 - Expand search to related topics and subtopics66 - Loop until saturation (no new significant information)67684. **Diverse source coverage**69 - Ensure geographic diversity (US/EU/Asia when relevant)70 - Cover multiple stakeholder perspectives71 - Include both primary and secondary sources7273**Target**: Minimum 100 unique, verified sources7475### Phase 3: Content Reading & Reasoning7677**Tools Used**: `extract_content_from_websites`, `extract_pdfs_key_info`7879**Process**:801. **Content extraction**81 - Access each promising URL82 - Extract structured information: facts, statistics, quotes, dates, claims83 - Parse PDF documents for detailed data84852. **Relevance assessment**86 - Score content against research objectives (1-5 scale)87 - Filter out low-relevance or duplicate content88 - Prioritize high-value sources for deep analysis89903. **Information extraction matrix**91 ```92 For each source:93 - Source metadata (title, author, date, URL)94 - Key findings (bullet points)95 - Supporting evidence (quotes, statistics)96 - Contradicting information (if any)97 - Confidence level (high/medium/low)98 ```991004. **Pattern recognition**101 - Identify consensus areas (multiple sources agree)102 - Detect controversy or debate points103 - Find knowledge gaps or underreported aspects104105### Phase 4: Verification & Gap Filling106107**Process**:1081. **Cross-verification protocol**109 - Check consistency across independent sources110 - Verify statistics with multiple citations111 - Confirm quotes with original context1121132. **Contradiction resolution**114 - Document conflicting information115 - Assess source credibility differences116 - Note the nature of disagreement (factual vs interpretive)117 - Present multiple perspectives when resolution impossible1181193. **Gap identification**120 - Compare gathered information against research plan121 - Identify missing perspectives or outdated information122 - Flag areas needing additional primary source verification1231244. **Iteration loop** (if gaps identified)125 - Return to Phase 2 with targeted queries126 - Focus on specific missing elements127 - Repeat until research objectives are satisfied128129### Phase 5: Structured Report Synthesis130131**Output Format**: Comprehensive research report132133**Structure**:134```135# [Research Title]136137## Executive Summary138[2-3 paragraph overview of key findings]139140## 1. Background and Purpose141[Context and research motivation]142143## 2. Key Findings144145### 2.1 [Topic Area 1]146#### Facts and Data147#### Analysis and Interpretation148#### Sources149150### 2.2 [Topic Area 2]151... (repeat for all sub-topics)152153## 3. Market Trends and Future Outlook154[Aggregated trends and predictions]155156## 4. Challenges and Risks157[Identified challenges with evidence]158159## 5. Opportunities and Recommendations160[Actionable insights]161162## 6. List of Sources163[All 100+ sources in academic citation format]164165## Appendix166[Supplementary data, tables, charts]167```168169**Quality Standards**:170- Every factual claim MUST have inline citation [source_id]171- Source attribution format: `[1] Title, Publisher/Site, Publication Date, URL`172- Minimum 100 unique sources required173- Use tables for statistical comparisons174- Include key quotes with proper attribution175- Mark uncertain information with confidence indicators176177## Execution Guidelines178179### Parallel Execution Strategy180- Run independent searches in parallel (up to 10 concurrent queries)181- Process multiple content extractions simultaneously182- Batch similar operations for efficiency183184### Quality Thresholds185- Source minimum: 100 unique URLs successfully extracted186- Citation minimum: 100 inline references in final report187- Content relevance: Average score >= 3.0 out of 5188- Source diversity: Minimum 3 different source types represented189190### Error Handling191- Failed URLs: Log and skip, continue with alternative sources192- Contradictory info: Document and present both perspectives193- Insufficient coverage: Extend search phase until threshold met194- Verification failures: Flag claims as unverified in final report195196### Progress Tracking197Maintain research log with:198- Sources examined (with success/failure status)199- Key findings per sub-topic200- Verification status201- Remaining gaps202203## Example Research Queries204205This skill excels at:206- "Investigate the latest trends in AI technology using 100+ sources"207- "Electric vehicle market trends 2024 comprehensive analysis"208- "Research on industrial applications of quantum computing"209- "Sustainable energy transition analysis with 100+ sources"210- "Create a comprehensive market research report on [any specialized field]"211212## Constraints213214- **Time budget**: Allow sufficient iteration time for 100+ source verification215- **Source validation**: All statistics must have minimum 3 source verification216- **Bias awareness**: Include diverse perspectives, not just mainstream views217- **Currency**: Prioritize recent sources (within 2 years) for current topics218- **Language**: Support English and other major languages as needed