Free & Open Source · Runs on your laptop · Your data stays yours

Know before you invest.

Daily ETF composite signals, institutional whale tracking, and price anomaly forensics. Open-source, 100% local & private.

One ./run.sh no Python install · ★ Star on GitHub

20+
Data sources synced
18+
ETFs scored daily
5
Qdrant collections
10
Specialist AI agents
👆 Click a question watch Mosaic route & answer it live
mosaic interactive chat
$ ./mosaic.sh
Local Ollama detected · ClickHouse healthy · loading agent…
✔ Agent ready mosaic-gemma4 @ ollama
ML running: LightGBM 5d forecast · GARCH volatility · Isolation Forest anomaly
────────────────────────────────────────────────────────
You:

Real interactive REPL no slash command needed, just type. Every number is computed in Python/SQL from your live ClickHouse data, never invented by the LLM.

Quant-grade tools, built for retail investors

Hedge-fund techniques (ML forecasts, GARCH volatility, institutional flow tracking) packaged so you can use them without a quant degree.

"Why did it move?" — answered.

Every tool shows you a red candle. Mosaic tells you what caused it — and whether the move happened before or after the news broke. A four-stage pipeline runs on any stock, ETF, or commodity:

🔍 Detect anomalies ✓
→
🔗 Correlate events ✓
→
⏱️ Lead/lag analysis ✓
→
📊 Map to triggers ✓
🔴 Move BEFORE News (-1d to -3d): Potential Insider Leak ⚡ Same-Day (0d): Immediate Market Reaction 🟢 Move AFTER News (+1d to +4d): Delayed Institutional Drift
🚀 Try it on your own stocks

Why another tool?

Serious decisions need clean cross-asset data, models that quantify edge and risk, and context that explains why something moved. Retail tools give you charts. Terminals give you feeds. Neither gives you all three in one place on your own machine.

🏠

Your data, your machine

All market data stays in a local ClickHouse instance. No third-party cloud sync, no API leakage your portfolio intelligence is private.

🤖

LLM-grounded, not hallucinated

Every number the agent reports is first computed in Python or SQL. The LLM only narrates never calculates. A hard architectural rule, enforced everywhere.

🌐

Works offline with Ollama

Runs fully locally via Ollama (Gemma 4). The orchestrator auto-switches to compact prompts and data injection paths for low-context local models.

🔬

Forensic anomaly explanation

Every flagged date gets a full report: GARCH regime + Final-Z, news sentiment correlation, COMEX futures context, COT speculator positioning, and what the ML model predicted that day, all point-in-time, no future leakage.

🐋

Institutional flow intelligence

Reverse-engineer DSP, Nippon, and ICICI AMC conviction from monthly portfolio disclosures. 24+ months of cross-fund ownership = highest-quality single-name signal.

⚖️

Volatility-aware sizing

GARCH(1,1) conditional vol feeds inverse-vol + Kelly position sizing. High-stress regimes automatically reduce position weights before you need to think about it.

One local pipeline, five quant engines, ten specialist agents

Every question runs through the same path: data lands in ClickHouse & a Qdrant vector store, fans out to five quant engines, converges in a multi-agent orchestrator backed by a local cache, and surfaces wherever you work — dashboard, CLI, chat, or PDF.

→
01 · Ingest & store
20+ live feeds
NSE, Shoonya, AMFI, RBI, CFTC COT & news → ClickHouse (37 tables) + Qdrant (5 collections)
→
02 · Compute
5 quant engines
Composite signals · ML forecast · GARCH volatility · Anomaly detection · Vector RAG
→
03 · Orchestrate
10 specialist agents
LangGraph intent router + SQLite cache — repeat questions are free
04 · Surface
Wherever you work
Streamlit dashboard · CLI · chat · Claude/Gemini MCP · PDF reports
🏗️ Explore the full architecture, data flow & RAG pipeline →

Built for every layer of the decision

Signals

6-Pillar Composite Scoring

18+ ETFs scored daily (0–100) combining macro, valuation, sentiment, flows, ML, and volatility.

Anomaly

6-Step Anomaly Engine

MAD-Z, GARCH(1,1), Isolation Forest, PELT, and Volume HMM detect real price shocks & silent block deals.

Attribution

News-RAG Attribution

Correlates price moves with earnings leaks, macro shocks, or cross-asset moves via Qdrant similarity.

ML

LightGBM 5-Day Forecast

Walk-forward CV quantile regression predicting 5-day returns with 80% confidence bands & Kelly sizing.

Risk

Volatility Position Sizing

GARCH(1,1) inverse-volatility scaling blended 50/50 with Kelly Criterion for optimal capital allocation.

Research

Indian & US Equity Deep-Dives

Parallel research pulling 3-year cashflows, promoter trend checks, QIP dilution audits, and SEC 10-K filings.

Flows

Institutional Whale Tracking

Tracks monthly portfolio disclosures across 7 multi-asset funds (DSP, Nippon, ICICI, Quant, Bajaj) & CFTC COT.

Alerts

Real-Time Intraday & iNAV Alerts

15-minute iNAV premium/discount arbitrage alerts and live order-flow bid/ask VWAP deviation monitors.

Reports

PDF Report Export

Generates institutional-grade PDF intelligence reports with GARCH charts, regime tables, and thesis summaries.

Vector

Qdrant Semantic Memory

5 vector collections storing embedded representations of anomalies, fund holdings, profiles, and news.

See the full spec for every engine →

A guild of specialist analysts

Rather than one LLM with 80 tools, an intent router dispatches to 10 specialist sub-agents, each with a curated tool set, domain system prompt, and hard limits (20 tool calls / 30k tokens / 180s).

📊 Signals & ETF scoring 🇮🇳 Indian equity research 🌐 Macro & whale tracker 🇺🇸 US equity deep-dive 🌍 International ETFs 📰 News sentiment 💻 Code & SQL 🗄️ Database health 🏦 Mutual fund holdings 🔭 Autonomous research
See exactly what each agent does →

Two commands. That's it.

No Python, no virtualenv, no dependency hell. Install Docker Desktop, then ./run.sh for the dashboard and ./mosaic.sh for everything else.

📊  1 · Launch the dashboard

Builds the image, starts ClickHouse + UI, opens your browser.

# macOS / Linux
$ ./run.sh

# Windows
> run.bat

# Dashboard opens at →
http://localhost:8501

# Stop it anytime
$ ./stop.sh
⚡  2 · Run anything with ./mosaic.sh

Any CLI command or script inside Docker, zero local setup.

# Pre-market commodity signals
$ ./mosaic.sh comex

# Composite ETF signals (0–100)
$ ./mosaic.sh signals --save

# GOLDBEES ML pipeline
$ ./mosaic.sh src/scripts/goldbees_report.py

# Sync fresh data first
$ ./mosaic.sh import --category etfs
💬  Interactive chat (just type)

Bare ./mosaic.sh opens a REPL no slash command needed, auto-routes to the right agent.

$ ./mosaic.sh
✔ Agent ready mosaic-gemma4 @ ollama

You: explain GOLDBEES anomalies
You: am I overexposed to IT?
You: /signals   # or slash commands

# one-shot mode also works
$ ./mosaic.sh ask "today's gold signal"
🐍  Prefer a manual install?

Developers can run natively without the wrappers.

$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ cp .env.example .env   # add keys
$ docker compose up clickhouse -d
$ python src/main.py ui

On first ./run.sh a .env is created add OPENAI_API_KEY, NEWSAPI_KEY, GOLD_API_KEY, or point LLM_BASE_URL at Ollama for fully offline operation.