Skip to content

AlphaHorizon-AI/Alpha_one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

100 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Horizon One

HORIZON ONE

Predictive Behavioral Intelligence for Strategic Decision-Making

License: Horizon One Free Use Python 3.12+ MESA Framework Gradio UI Multi-LLM Docker Ready


Simulate thousands of AI-driven synthetic personas. Predict market sentiment. Forecast revenue impact. All before a single dollar is spent.


One-Click Install Β· How It Works Β· Architecture Β· Features Β· Documentation Β· License




The Problem

Traditional market research is slow, expensive, and backward-looking. By the time survey data is analyzed, the cultural conversation has already shifted.

Focus groups can't predict viral dynamics. Spreadsheets can't model human stubbornness. Historical data is blind to novel events.

When a competitor drops prices while running a viral campaignβ€”when a PR crisis hits during a product launchβ€”when influencer sentiment shifts overnightβ€”you need to see around corners.


The Solution

Horizon One is an enterprise-grade agent-based simulation platform that bridges the gap between soft human sentiment and hard commercial outcomes.

Instead of asking a single AI what millions of people might do, Horizon One creates a digital sandbox populated with thousands of distinct synthetic personasβ€”each with unique demographics, psychographics, financial constraints, and social connectionsβ€”and lets you watch what happens when you inject a real-world strategic event.


β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                 β”‚
β”‚    "What if we launch this campaign next quarter?"              β”‚
β”‚                                                                 β”‚
β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚         β”‚ 10,000   │────▢│ Simulate │────▢│ Revenue  β”‚         β”‚
β”‚         β”‚ Personas β”‚     β”‚ 52 Weeks β”‚     β”‚ Forecast β”‚         β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”‚                                                                 β”‚
β”‚    Predicted Penetration: 12.4%    ROAS: 3.2x    CPA: $18.40  β”‚
β”‚                                                                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

✨ Features

🧠 Four-Tier Cognitive Engine

Scale intelligence vs. cost with four simulation fidelity levels:

  • Level 1 β€” Stochastic math for 10,000+ agents instantly
  • Level 2 β€” LLM-powered archetype group reasoning
  • Level 3 β€” Individual persona chain-of-thought
  • Level 4 β€” Deep iterative cognitive dissonance modeling

πŸ“Š Predictive Purchase Engine

Translate sentiment into CFO-ready financials:

  • Predicted Penetration Index β€” Market share capture forecast
  • Cost Per Acquisition β€” Campaign efficiency scoring
  • Return on Ad Spend β€” Net financial surplus calculation
  • Revenue Waterfall β€” Tick-by-tick cumulative projections

🌐 Agentic Research Network

Live market intelligence via MCP sensor integration:

  • DuckDuckGo β€” Real-time web search
  • Google News & Trends β€” Trending topic analysis
  • Web Fetch & Scraper β€” Deep content extraction
  • Wikipedia β€” Knowledge graph enrichment

🎭 Synthetic Persona Generation

High-fidelity digital humans grounded in behavioral science:

  • OCEAN personality traits β€” Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism
  • Demographic anchoring β€” Age, gender, region, income
  • Social network topology β€” Influencer hubs and peripheral nodes
  • Media channel affinity β€” Platform-specific trust weights

πŸ”¬ Advanced Analysis Suite

Post-simulation strategic intelligence:

  • Monte Carlo Risk Analysis β€” Probabilistic outcome ranges
  • Counterfactual Scenarios β€” "What-if" branching comparisons
  • Hindcast Validation β€” Backtest against historical events
  • Calibration Engine β€” Auto-tune to real-world ground truth

πŸ“‘ C-Suite Report Generation

AI-generated strategic deliverables:

  • Commercial Market Analysis β€” Full breakdown with charts
  • Deep Research Reports β€” LLM-synthesized intelligence
  • PDF Export β€” Professional presentation-ready output
  • Run Comparison β€” Side-by-side strategy evaluation

πŸ”§ How It Works

Architecture

Horizon One operates in three phases:

Phase 1 β€” Population Synthesis

The Persona Generation Engine creates a demographically accurate synthetic population. Each agent receives unique OCEAN personality traits, income constraints, media habits, brand loyalty scores, and social network connections. Archetypes (e.g., "The Nostalgic Curator," "The Franchise Hunter") define behavioral templates that the LLM actors inhabit.

Phase 2 β€” Simulation Execution

Time advances in configurable ticks (days or weeks). At each tick:

  1. The Director Model (e.g., Gemini Pro) synthesizes the global narrative context
  2. Environmental vectors (media sentiment, competitor actions, injected events) propagate through the social network
  3. Each agent processes stimuli through their cognitive tier and updates their opinion
  4. The Behavioral Sales Model converts opinion shifts into purchase probabilities using utility calculations, price sensitivity, and competitive choice modeling

Phase 3 β€” Intelligence Extraction

The analysis engine aggregates thousands of individual decisions into enterprise-grade KPIs. The Predictive Purchase Engine calculates market share, revenue projections, CPA, and ROAS. Agentic Research enriches findings with real-time market data via MCP servers. AI-generated C-Suite reports synthesize everything into actionable strategy documents.


πŸ— Architecture

Alpha_Horizon/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ ui/                          # Gradio Frontend
β”‚   β”‚   └── pages/
β”‚   β”‚       β”œβ”€β”€ simulation.py        # Simulation control & monitoring
β”‚   β”‚       β”œβ”€β”€ analysis.py          # Predictive purchase & analytics
β”‚   β”‚       β”œβ”€β”€ history.py           # Run history & comparison
β”‚   β”‚       β”œβ”€β”€ settings.py          # LLM, MCP, & system configuration
β”‚   β”‚       └── help.py              # Documentation & guides
β”‚   β”‚
β”‚   └── backend/
β”‚       β”œβ”€β”€ core/                    # Engine & Managers
β”‚       β”‚   β”œβ”€β”€ simulation_engine.py # MESA-based ABM core
β”‚       β”‚   β”œβ”€β”€ persona_manager.py   # Synthetic persona generation
β”‚       β”‚   β”œβ”€β”€ behavioral_sales_model.py  # Sentiment β†’ Revenue
β”‚       β”‚   β”œβ”€β”€ calibration_layer.py # Ground-truth auto-tuning
β”‚       β”‚   β”œβ”€β”€ llm_manager.py       # Multi-provider LLM orchestration
β”‚       β”‚   β”œβ”€β”€ mcp_registry.py      # MCP server management
β”‚       β”‚   β”œβ”€β”€ rag_manager.py       # Qdrant vector memory
β”‚       β”‚   └── ...
β”‚       β”‚
β”‚       β”œβ”€β”€ analysis/                # Post-Simulation Intelligence
β”‚       β”‚   β”œβ”€β”€ reverse_engineer.py  # KPI extraction engine
β”‚       β”‚   β”œβ”€β”€ monte_carlo.py       # Probabilistic risk analysis
β”‚       β”‚   β”œβ”€β”€ counterfactual.py    # What-if scenario branching
β”‚       β”‚   β”œβ”€β”€ hindcast.py          # Historical validation
β”‚       β”‚   β”œβ”€β”€ agentic_research.py  # MCP-powered live research
β”‚       β”‚   └── commercial_report.py # C-Suite report generation
β”‚       β”‚
β”‚       β”œβ”€β”€ sensors/                 # External Data Connectors
β”‚       β”‚   β”œβ”€β”€ mcp_client.py        # Model Context Protocol client
β”‚       β”‚   └── simulated_feed.py    # Synthetic media feed generator
β”‚       β”‚
β”‚       └── utils/                   # Shared Utilities
β”‚           β”œβ”€β”€ llm_dispatcher.py    # Provider-agnostic LLM routing
β”‚           β”œβ”€β”€ llm_registry.py      # Model capability registry
β”‚           └── llm_tools.py         # LLM function-calling tools
β”‚
β”œβ”€β”€ config/                          # Configuration
β”‚   β”œβ”€β”€ llm_registry.yaml           # Model definitions & capabilities
β”‚   β”œβ”€β”€ mcp_registry.yaml           # MCP server configurations
β”‚   β”œβ”€β”€ archetypes.json             # Default persona archetypes
β”‚   β”œβ”€β”€ media_weights.json          # Channel trust weights
β”‚   └── prompts/                    # System prompt templates
β”‚
β”œβ”€β”€ data/                            # Runtime Data
β”‚   β”œβ”€β”€ companies/                   # Per-company simulation data
β”‚   └── qdrant_storage/             # Vector database (embedded)
β”‚
β”œβ”€β”€ docs/                            # Documentation & Assets
β”œβ”€β”€ tests/                           # Test Suite
β”œβ”€β”€ Dockerfile                       # Container deployment
β”œβ”€β”€ compose.yaml                     # Docker Compose orchestration
β”œβ”€β”€ requirements.txt                 # Python dependencies
β”œβ”€β”€ run.sh                           # Linux/macOS launcher
β”œβ”€β”€ run.bat                          # Windows launcher
β”œβ”€β”€ HorizonOne-Install.bat           # One-click installer (Windows)
└── HorizonOne-Install.command       # One-click installer (macOS/Linux)

πŸš€ One-Click Install

Get Horizon One running in seconds β€” no git, no terminal, no manual setup.

Platform Download How to Run
Windows πŸ“₯ HorizonOne-Install.bat Double-click the downloaded file
macOS πŸ“₯ HorizonOne-Install.command Double-click the downloaded file
Linux πŸ“₯ HorizonOne-Install.command Run: bash HorizonOne-Install.command

What happens: The installer checks for Python 3.10+, downloads Horizon One from GitHub, creates an isolated virtual environment, installs all dependencies, creates a desktop shortcut, and launches the application β€” all automatically.

Prerequisites

  • Python 3.12+ β€” Download Python (Windows: check β€œAdd python.exe to PATH” during install)
  • At least one LLM API key (Google Gemini, OpenAI, Anthropic, or local Ollama)
  • 4 GB RAM minimum (8 GB+ recommended for large populations)

What the Installer Does

β”Œβ”€ Download Horizon One from GitHub
β”œβ”€ Check Python 3.10+ is installed
β”œβ”€ Create isolated virtual environment
β”œβ”€ Install all Python dependencies
β”œβ”€ Create desktop shortcut (β€œHorizon One”)
└─ Launch the application at http://localhost:7861

After installation, use the Horizon One desktop shortcut to launch anytime.

πŸ”§ Manual Installation (for developers)
# Clone the repository
git clone https://github.com/AlphaHorizon-AI/Alpha_one.git
cd Alpha_one

# Create virtual environment
python -m venv .venv
source .venv/bin/activate        # Linux/macOS
# .venv\Scripts\activate         # Windows

# Install dependencies
pip install -r requirements.txt

# Launch Horizon One
./run.sh                          # Linux/macOS
# run.bat                        # Windows

The application will start on http://localhost:7861.

πŸ‹ Docker Deployment
docker compose up --build

First Run

  1. Navigate to Settings and configure your LLM provider API keys
  2. Select or create a Company profile with your target market parameters
  3. Go to Simulation β€” configure your population, cognitive level, and event injection
  4. Press Run and watch thousands of synthetic personas react in real-time
  5. Switch to Analysis to generate Predictive Purchase forecasts and C-Suite reports

πŸ€– Supported LLM Providers

Provider Models Use Case
Google Gemini Gemini 2.5 Pro, Flash, etc. Director & Actor models
OpenAI GPT-4o, GPT-4o-mini, o1, o3 High-fidelity persona reasoning
Anthropic Claude Sonnet, Opus, Haiku Strategic report generation
Ollama Llama, Mistral, DeepSeek, Qwen Local/private deployment
OpenRouter 200+ models Flexible multi-model routing

πŸ“– Documentation

Document Description
Platform Overview Complete technical platform documentation
Whitepaper Architectural whitepaper and methodology
Executive Whitepaper Non-technical executive summary
LLM Configuration Guide Setting up multi-provider LLM routing

🏒 Use Cases

πŸ›οΈ Product Launch

Predict market reception, optimal pricing, and revenue impact before manufacturing begins

πŸ“’ Campaign Strategy

Test marketing campaigns across synthetic demographics and measure predicted ROAS

πŸ—³οΈ Political Analysis

Model voter sentiment dynamics, policy impact, and election outcome probabilities

⚠️ Crisis Simulation

Stress-test brand resilience against PR crises, competitor attacks, and market shocks

πŸ’° Pricing Strategy

Find the optimal price point by simulating demand elasticity across income segments

πŸ”„ Competitive Response

War-game competitor moves and discover optimal counter-strategies

βš™οΈ Tech Stack

Layer Technology
Simulation Core MESA 2.4 β€” Agent-based modeling framework
AI Orchestration Multi-LLM via OpenAI-compatible API (Gemini, GPT, Claude, Ollama)
External Intelligence Model Context Protocol (MCP) β€” DuckDuckGo, Google Trends, Wikipedia
Vector Memory Qdrant β€” Embedded vector search with BGE embeddings
Frontend Gradio 4.0+ β€” Interactive web UI with real-time streaming
Visualization Plotly β€” Interactive charts, funnels, and timelines
Report Generation ReportLab + FPDF2 β€” Professional PDF export
Containerization Docker + Docker Compose

πŸ“œ License

Horizon One is released under the Horizon One Free Use License.

Free to use β€” not open source. You may inspect, run, evaluate, and use Horizon One internally. You may not modify the source code, fork it, rebrand it, resell it, host it as a service, or build a competing product from it.

For commercial licensing, modification rights, or enterprise deployment inquiries, contact Alpha Horizon directly.




Built by Alpha Horizon

Predictive Behavioral Intelligence for the Enterprise


Copyright Β© Alpha Horizon. All rights reserved.