Skip to main content

AI-powered deep research agent — market analysis, trend prediction, topic research with multi-LLM support

Project description

Sibyl

AI-powered deep research agent. Ask any question — Sibyl searches the web across multiple sources, reads dozens of pages, cross-references findings, and generates an executive-quality research report with analysis, predictions, and citations.

Not just another search summarizer. Sibyl is a research analysis platform — it does structured comparisons, SWOT analysis, Google Trends tracking, event timelines, and financial data visualization. All from a single question.

What Makes Sibyl Different

Traditional Search ChatGPT/Perplexity GPT Researcher Sibyl
Web search + summary Yes Yes Yes Yes
Multi-source (news, Reddit, Wikipedia) No Partial Partial Yes (4 engines)
Sub-question decomposition No No Yes Yes
Iterative gap-filling (search → analyze → identify gaps → search again) No No Partial Yes
Cross-source analysis (sentiment, consensus, disagreements) No No No Yes
Structured comparison tables No No No Yes
SWOT analysis No No No Yes
Google Trends data No No No Yes
Event timelines No No No Yes
Financial data + charts No No No Yes
MCP server (Claude Code, Cursor) No No No Yes
Multi-LLM (DeepSeek, Gemini, GLM, OpenAI) No No Limited Yes (auto-detect)
PDF reports with embedded charts No No Basic Yes

Quick Start

MCP Server (for Claude Code / Cursor)

pip install sibyl-research
claude mcp add sibyl -e DEEPSEEK_API_KEY=sk-... -- sibyl-mcp

Then in Claude Code:

"Research the impact of AI on software engineering jobs over the next 5 years"

"Compare NVIDIA vs AMD vs Intel for AI workloads"

"SWOT analysis of Tesla in 2026"

CLI

pip install sibyl-research
export DEEPSEEK_API_KEY=sk-...   # or OPENAI_API_KEY, GEMINI_API_KEY, etc.

# Standard research
sibyl "Canadian housing market outlook 2026"

# Deep research with predictions + market data + PDF
sibyl "Will NVIDIA maintain AI chip dominance?" -d 3 --symbols NVDA,AMD,INTC --pdf

# Chinese output
sibyl "加拿大移民政策变化" -l zh --pdf -o reports/

How It Works

You ask a question
  │
  ├─ Step 1: Decompose into 3-5 focused sub-questions
  ├─ Step 2: Generate 15-20 diverse search queries
  ├─ Step 3: Search across 4 engines (DuckDuckGo, Google News, Reddit, Wikipedia)
  ├─ Step 4: Scrape 15-20 sources (realistic browser headers, retry, Google Cache fallback)
  ├─ Step 5: Filter sources by relevance (LLM-scored)
  ├─ Step 6: Analyze each sub-question independently
  ├─ Step 7: Identify knowledge gaps → auto-search for missing info
  ├─ Step 8: Cross-reference sources (sentiment, consensus, disagreements)
  ├─ Step 9: Section-by-section synthesis (Summary, Findings, Analysis, Predictions)
  ├─ Step 10: Review and refine draft
  └─ Output: PDF/Markdown report with Table of Contents, citations, charts

Research Tools (11 MCP tools)

Core Research

Tool What it does
research(query, depth, language) Full research cycle: search → scrape → analyze → report. Depth 1-3.
quick_search(query) Fast web search, returns raw results
read_url(url) Extract clean text from any URL
analyze(text, question) Analyze provided text with LLM

Analysis Tools (unique to Sibyl)

Tool What it does
compare(items) Structured side-by-side comparison table with metrics and recommendation
swot(subject) Strengths / Weaknesses / Opportunities / Threats with evidence
trends(keywords) Real Google Trends data: interest level, direction, rising searches
timeline(topic) Chronological event table with dates and impact assessment

Financial Data

Tool What it does
fetch_market_data(symbols) Real stock/ETF prices, trends, moving averages, 52-week range
chart(symbols) Generate price trend charts (PNG)

Output

Tool What it does
save_report(format) Save as PDF (with embedded charts) and/or Markdown

Research Depth

Depth What happens LLM calls Time
1 (quick) 2-3 search queries, basic synthesis ~3 20-30s
2 (standard) Sub-question decomposition, per-question analysis, cross-referencing, review ~10 60-90s
3 (deep) + Knowledge gap filling, predictions with bull/bear/base case, confidence rating ~13 90-120s

Multi-Provider Support

Sibyl works with any LLM. Auto-detects from environment variables:

Provider Env var Model
DeepSeek DEEPSEEK_API_KEY deepseek/deepseek-chat
OpenAI OPENAI_API_KEY gpt-4o-mini
Anthropic ANTHROPIC_API_KEY claude-sonnet-4-20250514
Gemini GEMINI_API_KEY gemini/gemini-2.5-flash
GLM (ZhipuAI) ZHIPUAI_API_KEY glm-4-flash

Or configure multiple providers with roles:

# sibyl.yaml
providers:
  - model: deepseek/deepseek-chat
    api_key: sk-xxx
    role: analysis

  - model: gemini/gemini-2.5-flash
    api_key: xxx
    role: fast

  - model: openai/glm-4-flash
    api_key: xxx
    api_base: https://open.bigmodel.cn/api/paas/v4
    role: chinese

Example Reports

Reports generated by Sibyl on real topics:

  • Federal Reserve interest rate outlook 2026-2027 — 5 pages, 12 findings, 6 sources, analysis of "higher-for-longer" vs "steady easing" debate
  • Impact of Trump tariffs on trade 2026 — 5 pages, 10 findings, 4 sources, historical comparison to Smoot-Hawley, second-order effects on AI labor displacement
  • AI industry landscape 2026 — Market size ($538B), investment trends ($2.9T infrastructure), regulatory outlook, with NVDA/GOOGL/META stock charts

Requirements

  • Python 3.10+
  • At least one LLM API key
  • No other API keys needed (all search engines are free)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sibyl_research-0.1.0.tar.gz (863.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sibyl_research-0.1.0-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file sibyl_research-0.1.0.tar.gz.

File metadata

  • Download URL: sibyl_research-0.1.0.tar.gz
  • Upload date:
  • Size: 863.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for sibyl_research-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8354390bbd0e47e59bfc28cd43448c6f8a92238627747eb690ac8e2ad571dcb9
MD5 6cede53850a0338130364bfc9fbe2b51
BLAKE2b-256 7c12bbff1bd831928de35b05e861b8747ba57afd6448aefcb1c2e133d1e207a9

See more details on using hashes here.

File details

Details for the file sibyl_research-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sibyl_research-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for sibyl_research-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 093d0a33f68f2cd16d4b3e252e90395dcd1cb8dc494123473e06df3d46483d5a
MD5 419aca0e3e2dfb3c0ba977f7c7ae5d00
BLAKE2b-256 2c6987f2dd28b2a5bad44c11e2efd41a0fe23935ee9a055254b7580e8fb43876

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page