Deep Research (Multi-Model + Framework-Driven)
Autonomous research system that runs 4 AI models in parallel, each applying relevant analytical frameworks, then cross-validates and merges findings into a comprehensive cited report.
Architecture
User Question
│
▼
┌─ Phase 0: Framework Selection ─┐
│ Identify best-practice │
│ framework(s) for this question │
└────────────┬────────────────────┘
│
┌───────┼───────┐───────┐
▼ ▼ ▼ ▼
Gemini o3 Opus MiniMax
2.5 Pro 4 M2.5
(search (deep (nuance (China/
heavy) logic) +balance)alt view)
│ │ │ │
└───────┼───────┘───────┘
▼
Phase 5: Merge & Cross-Validate
│
▼
Final Report (PDF)
Phase 0: Framework Selection (MANDATORY — before any research)
Before researching, ask: "Is there a best-practice framework for answering this type of question?"
Framework Lookup Table
| Question Type |
Frameworks to Apply |
| Competitive strategy |
Porter's Five Forces, 7 Powers (Helmer), Schwerpunkt/High Ground (Packy), SWOT |
| Market entry / sizing |
TAM/SAM/SOM, Blue Ocean Strategy, Jobs-to-be-Done |
| Business model evaluation |
Business Model Canvas, Unit Economics, Ramp vs Route test (point solution vs platform?) |
| Investment / valuation |
DCF, Comparable Analysis, Venture method, Power Law thesis |
| Product strategy |
JTBD, Kano Model, Value Prop Canvas, Hook Model |
| Growth / GTM |
AARRR Pirate Metrics, Bullseye Framework, STP (Segmentation-Targeting-Positioning) |
| Technology assessment |
Gartner Hype Cycle, Wardley Maps, Build vs Buy matrix |
| Risk analysis |
Pre-Mortem, FMEA, Scenario Planning |
| Organizational / ops |
OKR analysis, RACI, Theory of Constraints |
| Pricing |
Van Westendorp, Conjoint, Value-based pricing framework |
| Industry analysis |
Value Chain Analysis, Industry Lifecycle, Winner-Takes-More thesis |
| Person / hiring |
Track Record Analysis, Reference Triangle, Founder-Market Fit |
If a framework applies:
- Include it in the prompt to each model
- Structure the model's analysis around the framework's components
- The final report should explicitly reference which framework(s) were used and why
If no standard framework applies:
- State "No standard framework identified — using first-principles analysis"
- Each model reasons from first principles with explicit assumptions stated
Phase 1: Decompose (30s)
Break the topic into 5-8 research sub-questions. Think like an investigative journalist:
- What are the key facts?
- What are different perspectives/sources?
- What's the timeline/history?
- What data/evidence exists?
- What are the unknowns or controversies?
Phase 2: Spawn 4 Model Agents (Parallel)
Spawn 4 sub-agents using sessions_spawn, each with a different model:
Model 1: gemini (google/gemini-2.5-pro) — Search-heavy, broad coverage
Model 2: o3 (openai/o3) — Deep logical reasoning, contrarian
Model 3: opus (anthropic/claude-opus-4-6) — Nuanced, balanced synthesis
Model 4: minimax (minimax/MiniMax-M2.5) — Alternative perspectives, China/grey-area
Prompt Template for Each Model
## Research Task
[Topic]
## Framework
You MUST structure your analysis using: [Framework Name]
Apply each component of the framework systematically to the topic.
If data is missing for a component, note it explicitly.
## Sub-Questions
[List of 5-8 sub-questions]
## Instructions
1. Use web_search extensively (minimum 10 unique searches)
2. Use web_fetch to read full articles for key sources
3. Cross-reference claims across 2+ sources
4. Structure findings around the framework components
5. Flag disagreements, unknowns, and low-confidence claims
6. Minimum 15 unique source URLs
7. Output format: markdown with inline citations [1][2]...
8. End with a Sources section listing all URLs
## Quality Rules
- Every factual claim needs a source
- Prefer primary sources (filings, official reports) over secondary
- Note source freshness — flag anything >6 months old
- Include opposing viewpoints
- State confidence level (high/medium/low) for key conclusions
Model-Specific Instructions
- Gemini: "You are the primary search engine. Cast the widest net. Find obscure sources others would miss. Prioritize data and numbers."
- o3: "You are the deep reasoner. Challenge assumptions. Look for logical flaws in conventional wisdom. Apply the framework with maximum rigor. If the consensus is wrong, explain why."
- Opus: "You are the synthesizer. Balance multiple perspectives fairly. Identify nuance others miss. Connect dots across disciplines."
- MiniMax: "You are the alternative perspective agent. Consider non-Western viewpoints, grey areas, unconventional strategies. What would a Chinese entrepreneur or contrarian investor do differently?"
Phase 3: Wait for Completion
All 4 models run in parallel via sessions_spawn with mode="run". Do NOT poll in a loop — they auto-announce when done.
Phase 4: Collect Individual Reports
Save each model's output:
memory/research/[topic]-gemini-[date].md
memory/research/[topic]-o3-[date].md
memory/research/[topic]-opus-[date].md
memory/research/[topic]-minimax-[date].md
Phase 5: Cross-Validate & Merge
This is the most critical phase. The primary agent (you) must:
5a. Agreement Matrix
Create a matrix of key claims and which models agree/disagree:
| Claim | Gemini | o3 | Opus | MiniMax | Confidence |
|-------|--------|----|----|---------|------------|
| [claim 1] | ✅ | ✅ | ✅ | ❌ | High (3/4) |
| [claim 2] | ✅ | ❌ | ✅ | ✅ | High (3/4) |
| [claim 3] | ✅ | ✅ | ❓ | ❓ | Medium (2/4) |
5b. Conflict Resolution
For each disagreement:
- Identify the root cause (different data? different logic? different framework interpretation?)
- Check which model has the stronger source
- If genuinely uncertain, present both sides in the final report
5c. Framework Synthesis
- Map findings back to the framework structure
- Ensure every framework component has been addressed
- Note which components had strong consensus vs. disagreement
5d. Error Catching
From experience, models commonly get wrong:
- Platform-specific limits (posting frequency, API limits)
- Pricing (especially for niche tools — often 10-30x off)
- Regulatory details
- Recency of data
Verify any quantitative claim that only one model makes.
Phase 6: Final Report
# [Topic] — Deep Research Report
**Framework Used**: [Name] — [why this framework]
**Models**: Gemini 2.5 Pro, o3, Opus 4, MiniMax M2.5
**Date**: [date]
**Total Searches**: [count across all models]
## Executive Summary
3-5 sentence overview. Note consensus level.
## Framework Analysis
### [Framework Component 1]
Analysis with model consensus noted. [1][2]
### [Framework Component 2]
...
## Key Findings (Beyond Framework)
Discoveries that don't fit neatly into the framework.
## Model Disagreements
Where models diverged and why.
## Agreement Matrix
[The table from 5a]
## Data & Evidence
Tables, numbers, comparisons.
## Risks / Unknowns
What we couldn't confirm. Low-confidence areas.
## Conclusion & Recommendations
Actionable takeaways ranked by confidence.
## Sources
[1] Title — URL
[2] ...
Phase 7: Deliver
- Save final report to
memory/research/[topic]-终极版-[date].md
- Generate PDF via pymupdf and save to
~/.openclaw/media/outbound/
- Send PDF to user via message tool
Quality Standards
- Minimum sources: 15 unique URLs per model (60+ total across 4 models)
- Source diversity: No more than 3 citations from same domain per model
- Freshness: Prefer sources < 6 months old; flag older data
- Cross-validation: Key claims must appear in 2+ models' findings
- Framework compliance: Every framework component must be addressed
- Confidence scoring: High (3-4 models agree + strong sources), Medium (2 models or weak sources), Low (1 model or no source)
- No hallucination: Every factual claim must have a source
Adaptation by Topic Type
Financial / Stock Research
- Frameworks: DCF, Comparable Analysis, Power Law
- Check SEC/regulatory filings, earnings transcripts
- Include key metrics (revenue, margins, P/E, debt)
- See
references/financial-research.md
Market / Industry Research
- Frameworks: Porter's Five Forces, TAM/SAM/SOM, 7 Powers
- Competitive landscape, key players, market share
- Apply Winner-Takes-More thesis where relevant
Strategy / Business Model
- Frameworks: Schwerpunkt/High Ground, Business Model Canvas, JTBD
- Identify the constraint, the scarce asset, expansion path
- Compare to historical precedents (Rockefeller, Ramp, etc.)
Technical / Product Research
- Frameworks: Wardley Maps, Build vs Buy, Gartner Hype Cycle
- Architecture, benchmarks, alternatives matrix
- Community sentiment (GitHub, HN, Reddit)
1---2name: deep-research-73description: Autonomous multi-model deep research with framework-driven reasoning. Spawns 4 parallel model agents (Gemini 2.5 Pro, o3, Opus, MiniMax), each applies best-practice frameworks to the question, then merges into a cross-validated final report. Use when: (1) user asks for in-depth research, (2) 'research X' or 'deep dive on X', (3) complex questions requiring multiple sources. NOT for: simple factual lookups.4---56# Deep Research (Multi-Model + Framework-Driven)78Autonomous research system that runs 4 AI models in parallel, each applying relevant analytical frameworks, then cross-validates and merges findings into a comprehensive cited report.910## Architecture1112```13User Question14 │15 ▼16┌─ Phase 0: Framework Selection ─┐17│ Identify best-practice │18│ framework(s) for this question │19└────────────┬────────────────────┘20 │21 ┌───────┼───────┐───────┐22 ▼ ▼ ▼ ▼23 Gemini o3 Opus MiniMax24 2.5 Pro 4 M2.525 (search (deep (nuance (China/26 heavy) logic) +balance)alt view)27 │ │ │ │28 └───────┼───────┘───────┘29 ▼30 Phase 5: Merge & Cross-Validate31 │32 ▼33 Final Report (PDF)34```3536## Phase 0: Framework Selection (MANDATORY — before any research)3738Before researching, ask: **"Is there a best-practice framework for answering this type of question?"**3940### Framework Lookup Table4142| Question Type | Frameworks to Apply |43|---|---|44| **Competitive strategy** | Porter's Five Forces, 7 Powers (Helmer), Schwerpunkt/High Ground (Packy), SWOT |45| **Market entry / sizing** | TAM/SAM/SOM, Blue Ocean Strategy, Jobs-to-be-Done |46| **Business model evaluation** | Business Model Canvas, Unit Economics, Ramp vs Route test (point solution vs platform?) |47| **Investment / valuation** | DCF, Comparable Analysis, Venture method, Power Law thesis |48| **Product strategy** | JTBD, Kano Model, Value Prop Canvas, Hook Model |49| **Growth / GTM** | AARRR Pirate Metrics, Bullseye Framework, STP (Segmentation-Targeting-Positioning) |50| **Technology assessment** | Gartner Hype Cycle, Wardley Maps, Build vs Buy matrix |51| **Risk analysis** | Pre-Mortem, FMEA, Scenario Planning |52| **Organizational / ops** | OKR analysis, RACI, Theory of Constraints |53| **Pricing** | Van Westendorp, Conjoint, Value-based pricing framework |54| **Industry analysis** | Value Chain Analysis, Industry Lifecycle, Winner-Takes-More thesis |55| **Person / hiring** | Track Record Analysis, Reference Triangle, Founder-Market Fit |5657**If a framework applies:**58- Include it in the prompt to each model59- Structure the model's analysis around the framework's components60- The final report should explicitly reference which framework(s) were used and why6162**If no standard framework applies:**63- State "No standard framework identified — using first-principles analysis"64- Each model reasons from first principles with explicit assumptions stated6566## Phase 1: Decompose (30s)6768Break the topic into 5-8 research sub-questions. Think like an investigative journalist:69- What are the key facts?70- What are different perspectives/sources?71- What's the timeline/history?72- What data/evidence exists?73- What are the unknowns or controversies?7475## Phase 2: Spawn 4 Model Agents (Parallel)7677Spawn 4 sub-agents using `sessions_spawn`, each with a different model:7879```80Model 1: gemini (google/gemini-2.5-pro) — Search-heavy, broad coverage81Model 2: o3 (openai/o3) — Deep logical reasoning, contrarian82Model 3: opus (anthropic/claude-opus-4-6) — Nuanced, balanced synthesis83Model 4: minimax (minimax/MiniMax-M2.5) — Alternative perspectives, China/grey-area84```8586### Prompt Template for Each Model8788```89## Research Task90[Topic]9192## Framework93You MUST structure your analysis using: [Framework Name]94Apply each component of the framework systematically to the topic.95If data is missing for a component, note it explicitly.9697## Sub-Questions98[List of 5-8 sub-questions]99100## Instructions1011. Use web_search extensively (minimum 10 unique searches)1022. Use web_fetch to read full articles for key sources1033. Cross-reference claims across 2+ sources1044. Structure findings around the framework components1055. Flag disagreements, unknowns, and low-confidence claims1066. Minimum 15 unique source URLs1077. Output format: markdown with inline citations [1][2]...1088. End with a Sources section listing all URLs109110## Quality Rules111- Every factual claim needs a source112- Prefer primary sources (filings, official reports) over secondary113- Note source freshness — flag anything >6 months old114- Include opposing viewpoints115- State confidence level (high/medium/low) for key conclusions116```117118### Model-Specific Instructions119120- **Gemini**: "You are the primary search engine. Cast the widest net. Find obscure sources others would miss. Prioritize data and numbers."121- **o3**: "You are the deep reasoner. Challenge assumptions. Look for logical flaws in conventional wisdom. Apply the framework with maximum rigor. If the consensus is wrong, explain why."122- **Opus**: "You are the synthesizer. Balance multiple perspectives fairly. Identify nuance others miss. Connect dots across disciplines."123- **MiniMax**: "You are the alternative perspective agent. Consider non-Western viewpoints, grey areas, unconventional strategies. What would a Chinese entrepreneur or contrarian investor do differently?"124125## Phase 3: Wait for Completion126127All 4 models run in parallel via `sessions_spawn` with `mode="run"`. Do NOT poll in a loop — they auto-announce when done.128129## Phase 4: Collect Individual Reports130131Save each model's output:132```133memory/research/[topic]-gemini-[date].md134memory/research/[topic]-o3-[date].md135memory/research/[topic]-opus-[date].md136memory/research/[topic]-minimax-[date].md137```138139## Phase 5: Cross-Validate & Merge140141This is the most critical phase. The primary agent (you) must:142143### 5a. Agreement Matrix144Create a matrix of key claims and which models agree/disagree:145146```markdown147| Claim | Gemini | o3 | Opus | MiniMax | Confidence |148|-------|--------|----|----|---------|------------|149| [claim 1] | ✅ | ✅ | ✅ | ❌ | High (3/4) |150| [claim 2] | ✅ | ❌ | ✅ | ✅ | High (3/4) |151| [claim 3] | ✅ | ✅ | ❓ | ❓ | Medium (2/4) |152```153154### 5b. Conflict Resolution155For each disagreement:156- Identify the root cause (different data? different logic? different framework interpretation?)157- Check which model has the stronger source158- If genuinely uncertain, present both sides in the final report159160### 5c. Framework Synthesis161- Map findings back to the framework structure162- Ensure every framework component has been addressed163- Note which components had strong consensus vs. disagreement164165### 5d. Error Catching166From experience, models commonly get wrong:167- Platform-specific limits (posting frequency, API limits)168- Pricing (especially for niche tools — often 10-30x off)169- Regulatory details170- Recency of data171172**Verify any quantitative claim that only one model makes.**173174## Phase 6: Final Report175176```markdown177# [Topic] — Deep Research Report178179**Framework Used**: [Name] — [why this framework]180**Models**: Gemini 2.5 Pro, o3, Opus 4, MiniMax M2.5181**Date**: [date]182**Total Searches**: [count across all models]183184## Executive Summary1853-5 sentence overview. Note consensus level.186187## Framework Analysis188189### [Framework Component 1]190Analysis with model consensus noted. [1][2]191192### [Framework Component 2]193...194195## Key Findings (Beyond Framework)196Discoveries that don't fit neatly into the framework.197198## Model Disagreements199Where models diverged and why.200201## Agreement Matrix202[The table from 5a]203204## Data & Evidence205Tables, numbers, comparisons.206207## Risks / Unknowns208What we couldn't confirm. Low-confidence areas.209210## Conclusion & Recommendations211Actionable takeaways ranked by confidence.212213## Sources214[1] Title — URL215[2] ...216```217218## Phase 7: Deliver2192201. Save final report to `memory/research/[topic]-终极版-[date].md`2212. Generate PDF via pymupdf and save to `~/.openclaw/media/outbound/`2223. Send PDF to user via message tool223224## Quality Standards225226- **Minimum sources**: 15 unique URLs per model (60+ total across 4 models)227- **Source diversity**: No more than 3 citations from same domain per model228- **Freshness**: Prefer sources < 6 months old; flag older data229- **Cross-validation**: Key claims must appear in 2+ models' findings230- **Framework compliance**: Every framework component must be addressed231- **Confidence scoring**: High (3-4 models agree + strong sources), Medium (2 models or weak sources), Low (1 model or no source)232- **No hallucination**: Every factual claim must have a source233234## Adaptation by Topic Type235236### Financial / Stock Research237- Frameworks: DCF, Comparable Analysis, Power Law238- Check SEC/regulatory filings, earnings transcripts239- Include key metrics (revenue, margins, P/E, debt)240- See `references/financial-research.md`241242### Market / Industry Research243- Frameworks: Porter's Five Forces, TAM/SAM/SOM, 7 Powers244- Competitive landscape, key players, market share245- Apply Winner-Takes-More thesis where relevant246247### Strategy / Business Model248- Frameworks: Schwerpunkt/High Ground, Business Model Canvas, JTBD249- Identify the constraint, the scarce asset, expansion path250- Compare to historical precedents (Rockefeller, Ramp, etc.)251252### Technical / Product Research253- Frameworks: Wardley Maps, Build vs Buy, Gartner Hype Cycle254- Architecture, benchmarks, alternatives matrix255- Community sentiment (GitHub, HN, Reddit)