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
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.
Hedge-fund techniques (ML forecasts, GARCH volatility, institutional flow tracking) packaged so you can use them without a quant degree.
"I trade GOLDBEES, SILVERBEES, NIFTYBEES. I want a daily signal, not gut feel." Composite 0–100 score across 6 pillars, iNAV premium alert, and a clear BUY / HOLD / AVOID with recommended position weight.
See today's signals →"I want to know what DSP, Nippon, and Bajaj are buying before the market prices it in." Track 7 multi-asset funds month-by-month. Cross-fund consensus = the strongest single-name conviction signal.
See institutional holdings →"I want to know if my portfolio is actually at risk, not just whether it's green today." Connect your live Kite account. Mosaic analyzes each holding — price momentum, earnings, news, MF ownership — and flags concentration risk.
Analyze your portfolio →"I spend 3 hours pulling data before I can even start analyzing." Ask in plain English. Mosaic fetches price history, quarterly results, MF holdings, news, and anomaly correlations in parallel — synthesised in seconds.
Try a deep dive →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:
Every screen runs against live ClickHouse data. No demo mode, no sample data, no mockups.
Free & open source · runs on your laptop · no signup
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.
All market data stays in a local ClickHouse instance. No third-party cloud sync, no API leakage your portfolio intelligence is private.
Every number the agent reports is first computed in Python or SQL. The LLM only narrates never calculates. A hard architectural rule, enforced everywhere.
Runs fully locally via Ollama (Gemma 4). The orchestrator auto-switches to compact prompts and data injection paths for low-context local models.
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.
Reverse-engineer DSP, Nippon, and ICICI AMC conviction from monthly portfolio disclosures. 24+ months of cross-fund ownership = highest-quality single-name signal.
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.
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.
18+ ETFs scored daily (0–100) combining macro, valuation, sentiment, flows, ML, and volatility.
MAD-Z, GARCH(1,1), Isolation Forest, PELT, and Volume HMM detect real price shocks & silent block deals.
Correlates price moves with earnings leaks, macro shocks, or cross-asset moves via Qdrant similarity.
Walk-forward CV quantile regression predicting 5-day returns with 80% confidence bands & Kelly sizing.
GARCH(1,1) inverse-volatility scaling blended 50/50 with Kelly Criterion for optimal capital allocation.
Parallel research pulling 3-year cashflows, promoter trend checks, QIP dilution audits, and SEC 10-K filings.
Tracks monthly portfolio disclosures across 7 multi-asset funds (DSP, Nippon, ICICI, Quant, Bajaj) & CFTC COT.
15-minute iNAV premium/discount arbitrage alerts and live order-flow bid/ask VWAP deviation monitors.
Generates institutional-grade PDF intelligence reports with GARCH charts, regime tables, and thesis summaries.
5 vector collections storing embedded representations of anomalies, fund holdings, profiles, and news.
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).
No Python, no virtualenv, no dependency hell. Install
Docker Desktop,
then ./run.sh
for the dashboard and ./mosaic.sh
for everything else.
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
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
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"
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.