Skip to content

oabolade/startup-intelligence-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Startup Intelligence Agent System

An Agentic Startup Intelligence System that automatically collects, enriches, analyzes, and summarizes startup ecosystem data using AI agents running in E2B sandboxes.

πŸš€ Overview

This system provides real-time intelligence on the startup ecosystem by:

  • Collecting data from news sources, funding databases, product launches, and GitHub activity
  • Enriching data with metadata, entities, sentiment, and cross-references
  • Analyzing patterns and trends using LLM-powered analysis
  • Summarizing insights into actionable briefings for founders and investors

✨ Key Features

  • πŸ€– Multi-Agent Architecture: Orchestrator coordinates data collection, enrichment, analysis, and summarization
  • πŸ“Š Real-Time Intelligence: Collects data from news, funding rounds, product launches, and GitHub activity
  • 🧠 AI-Powered Analysis: LLM-based trend detection and opportunity identification
  • πŸ“ˆ Interactive Dashboard: Beautiful web UI displaying insights, trends, and opportunities
  • ☁️ Cloud-Ready: Deployable to E2B sandboxes with Docker MCP Hub integration
  • βœ… Comprehensive Testing: 46/47 tests passing (98% pass rate)

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Orchestrator Agent (E2B Sandbox)                       β”‚
β”‚  Manages: collect β†’ enrich β†’ analyze β†’ summarize        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚
             β”œβ”€β†’ Data Collector Agents (Docker)
             β”‚   β€’ news-scraper (TechCrunch, HackerNews, ProductHunt)
             β”‚   β€’ startup-api (Crunchbase, AngelList, Dealroom)
             β”‚   β€’ github-monitor (Trending repos, technical signals)
             β”‚
             β”œβ”€β†’ Enrichment Agent
             β”‚   β€’ Metadata extraction
             β”‚   β€’ Entity recognition
             β”‚   β€’ Sentiment analysis
             β”‚   β€’ Cross-referencing
             β”‚
             β”œβ”€β†’ Analysis Agent (LLM)
             β”‚   β€’ Trend clustering
             β”‚   β€’ Pattern detection
             β€’   β€’ Opportunity extraction
             β”‚
             └─→ Summarizer Agent (LLM)
                 β€’ Daily briefings
                 β€’ Intelligence threads
                 β€’ Structured insights

πŸ› οΈ Tech Stack

  • Backend: Python 3.14+, FastAPI, SQLite
  • AI/LLM: OpenAI GPT-4, Anthropic Claude
  • Frontend: HTML, Tailwind CSS, Vanilla JavaScript
  • Infrastructure: E2B Sandboxes, Docker, Docker Compose
  • Testing: pytest (46/47 tests passing, 34% coverage)

πŸ“¦ Installation

Prerequisites

  • Python 3.14+
  • Docker & Docker Compose
  • LLM API Key (OpenAI or Anthropic)

Quick Start

  1. Clone the repository

    git clone <repository-url>
    cd startup-intelligence-agent
  2. Setup backend

    cd startup-intelligence-agent/backend
    python3 -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    pip install -r requirements.txt
  3. Configure environment variables

    cp .env.example .env
    # Edit .env and add your API keys:
    # OPENAI_API_KEY=your_key_here
    # or
    # ANTHROPIC_API_KEY=your_key_here
  4. Start data collector agents

    cd ../../data-collector-agents
    docker-compose up -d
  5. Start main server

    cd ../../startup-intelligence-agent/backend/src
    python main.py
  6. Access the dashboard Open your browser to: http://localhost:8080/

🎯 Usage

Trigger Workflow

# Run full workflow (collect β†’ enrich β†’ analyze β†’ summarize)
curl -X POST "http://localhost:8080/orchestrator/run?days_back=7"

# Check workflow status
curl http://localhost:8080/orchestrator/status

# Get latest briefing
curl http://localhost:8080/briefing

API Endpoints

  • GET /health - Health check
  • GET /info - System information
  • GET /briefing - Get latest briefing
  • GET /data/stats - Data statistics
  • POST /orchestrator/run - Trigger workflow
  • GET /orchestrator/status - Workflow status
  • GET /docs - Interactive API documentation

πŸ“Š Test Results

  • βœ… Unit Tests: 29/29 passing (100%)
  • βœ… Integration Tests: 13/13 passing (100%)
  • βœ… E2E Tests: 4/5 passing (80%)
  • πŸ“ˆ Test Coverage: 34%

Run Tests

cd startup-intelligence-agent/backend
source venv/bin/activate

# Run all tests
pytest tests/ -v

# Run with coverage
pytest tests/ --cov=src --cov-report=html

πŸ“ Project Structure

.
β”œβ”€β”€ startup-intelligence-agent/
β”‚   β”œβ”€β”€ backend/
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ orchestrator/    # Main orchestrator agent
β”‚   β”‚   β”‚   β”œβ”€β”€ enrichment/       # Data enrichment agent
β”‚   β”‚   β”‚   β”œβ”€β”€ analysis/         # LLM analysis agent
β”‚   β”‚   β”‚   β”œβ”€β”€ summarizer/       # Briefing generation agent
β”‚   β”‚   β”‚   β”œβ”€β”€ database/        # SQLite database layer
β”‚   β”‚   β”‚   β”œβ”€β”€ api/             # FastAPI server
β”‚   β”‚   β”‚   └── llm/             # LLM client
β”‚   β”‚   β”œβ”€β”€ tests/               # Test suite
β”‚   β”‚   └── requirements.txt
β”‚   β”œβ”€β”€ frontend/
β”‚   β”‚   └── index.html           # Dashboard UI
β”‚   └── scripts/                 # Deployment scripts
β”œβ”€β”€ data-collector-agents/
β”‚   β”œβ”€β”€ news-scraper/            # News scraping agent
β”‚   β”œβ”€β”€ startup-api/             # Startup API wrapper
β”‚   β”œβ”€β”€ github-monitor/         # GitHub monitoring agent
β”‚   └── docker-compose.yml       # Agent orchestration
└── workflow-prompts/            # Development prompts

πŸ”§ Configuration

Environment Variables

Create a .env file in startup-intelligence-agent/backend/:

# LLM Configuration
LLM_PROVIDER=openai  # or "anthropic"
LLM_MODEL=gpt-4-turbo-preview  # or "claude-3-opus-20240229"
OPENAI_API_KEY=your_key_here
# or
ANTHROPIC_API_KEY=your_key_here

# Data Collector Agents
NEWS_SCRAPER_URL=http://localhost:3001
STARTUP_API_URL=http://localhost:3002
GITHUB_MONITOR_URL=http://localhost:3003

# Server Configuration
HOST=127.0.0.1
PORT=8080

# E2B Sandbox (optional)
E2B_API_KEY=your_e2b_key
E2B_TEMPLATE=base

πŸš€ Deployment

Local Development

See SERVER_SETUP.md for detailed setup instructions.

E2B Sandbox Deployment

See E2B_INTEGRATION.md for deployment to E2B sandboxes.

cd startup-intelligence-agent/scripts
python deploy_to_e2b.py

πŸ“š Documentation

πŸ§ͺ Testing

Run All Tests

cd startup-intelligence-agent/backend
source venv/bin/activate
pytest tests/ -v

Test Categories

  • Unit Tests: Fast, isolated component tests
  • Integration Tests: Component interaction tests
  • E2E Tests: Full system tests (require running services)

See tests/README.md for detailed testing documentation.

πŸŽ‰ Features

Data Collection

  • News articles from TechCrunch, HackerNews, ProductHunt
  • Funding rounds from Crunchbase, AngelList, Dealroom
  • Product launches and startup events
  • GitHub trending repositories and technical signals

AI Analysis

  • Trend clustering and pattern detection
  • Competitor move identification
  • Opportunity extraction for founders and investors
  • Market gap analysis

Dashboard

  • Real-time briefing display
  • Interactive trend exploration
  • Funding round tracking
  • Opportunity matching
  • Intelligence threads

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

πŸ“„ License

See LICENSE file for details.

πŸ™ Acknowledgments

Built using:

πŸ“ž Contact

For questions or issues, please open an issue in the repository.


Status: βœ… Production Ready | Tests: 46/47 passing (98%) | Coverage: 34%

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published