J^2 is a multi-agent trading and compliance system where autonomous agents represent different investment personas, debate on assets using diverse datasets, and automatically execute trades while ensuring compliance with organizational SOPs. It merges the ideas of agentic AI debate, quantitative backtesting, and compliance automation into a single pipeline.
- Multi-Agent Architecture: Specialized agents for data ingestion, processing, analysis, evaluation, and execution
- Comprehensive Data Processing: Advanced PDF extraction with OCR, semantic search, and RAG capabilities
- Financial Intelligence: Real-time market data, SEC filings, news analysis, and financial calculations
- Shared Tools Library: 80+ production-ready functions across 13+ tool categories
- Enterprise Security: Sandboxed code execution, encryption, and comprehensive logging
| Section | Description |
|---|---|
| Contributors | Meet the team behind this project |
| Tech Stack | Technologies, frameworks, APIs used in development |
| Project Structure | Organization of the codebase and purposes of different directories |
| Getting Started | Local setup instructions and prerequisites |
| Name | Role | GitHub |
|---|---|---|
| Jason Matthew Suhari | Full Stack, AI/ML, Agent Architecture | @jasonsuhari |
| Neo Jing Yi | Co-Developer, Data Engineering | @neojingyi |
first-visions-danta/
βββ frontend/ # Next.js frontend application
β βββ app/ # App Router pages & layouts
β βββ components/ # Reusable UI components
β β βββ threads.tsx # Thread management UI
β β βββ rotating-text.tsx # Dynamic text animations
β βββ lib/ # Frontend utilities
β βββ public/ # Static assets
β
βββ agents/ # Multi-Agent System
β βββ shared_tools/ # Comprehensive shared tools library (80+ functions)
β β βββ web_search.py # SerpAPI, NewsAPI, SEC Edgar search
β β βββ vector_search.py # ChromaDB, embeddings, semantic search
β β βββ document_rag.py # PyMuPDF β OCR PDF processing + RAG
β β βββ email_service.py # SMTP, SendGrid, templates
β β βββ notification_service.py # Slack, Teams, Telegram, SMS
β β βββ chat_interface.py # OpenAI/Anthropic chat with context
β β βββ code_executor.py # Sandboxed Python/R/SQL execution
β β βββ math_calculator.py # Financial calculations & statistics
β β βββ data_processor.py # CSV/JSON/XML processing
β β βββ chart_generator.py # Matplotlib/Plotly visualizations
β β βββ report_builder.py # PDF/HTML report generation
β β βββ table_formatter.py # Financial table styling
β β βββ file_manager.py # Local & cloud storage management
β β βββ test_all_tools.py # Comprehensive test suite
β β βββ requirements.txt # All dependencies
β β
β βββ 01_data_ingestion_agents/ # Data collection & processing
β β βββ macro_data/ # Economic data ingestion
β βββ 02_data_processing_agents/ # Data transformation & analysis
β β βββ nl_normalizer/ # Natural language data normalizer
β βββ 03_analysis_agents/ # Financial analysis & insights
β βββ 04_execution_agents/ # Trade execution & automation
β βββ 05_evaluation_agents/ # Performance evaluation
β βββ performance_evaluator/ # Trading performance analysis
β
βββ backend/ # FastAPI backend services
β βββ apps/ # Application modules
β β βββ shared_utils/ # Backend utilities & connectors
β β βββ main.py # FastAPI entry point
β βββ tests/ # Backend test suite
β
βββ data/ # Data storage & processing
βββ scripts/ # Utility scripts
βββ docs/ # Documentation & guides
- Conda/Miniconda: Install here
- Node.js 18+: Install here
- Tesseract OCR: For PDF text extraction (Windows, macOS:
brew install tesseract, Ubuntu:sudo apt install tesseract-ocr) - Git: For cloning the repository
-
Clone the repository
git clone https://github.com/jasonsuhari/first-visions-danta.git cd first-visions-danta -
Setup Shared Tools (Core agent capabilities)
cd agents/shared_tools pip install -r requirements.txt # Copy environment template and add your API keys cp env_template.txt .env # Edit .env with your API keys (OpenAI, SerpAPI, etc.) # Test the installation python test_all_tools.py
-
Setup Frontend
cd frontend npm install npm run dev -
Setup Backend (in a separate terminal)
cd backend bash setup.bash # Creates conda environment and installs dependencies conda activate first-visions-danta-env python main.py
For full functionality, add these to your .env file:
- Search:
SERP_API_KEY,NEWS_API_KEY - AI/LLM:
OPENAI_API_KEY - Email:
GMAIL_EMAIL,GMAIL_APP_PASSWORD - Notifications:
DISCORD_WEBHOOK_URL - Database:
SUPABASE_URL,SUPABASE_KEY
After setup, you'll have access to:
- 80+ Production-Ready Functions across 13 tool categories
- Advanced PDF Processing with PyMuPDF β OCR fallback
- Multi-Agent System for financial analysis and trading
- Real-time Data Processing with market data integration
- Beautiful UI with interactive charts and dashboards
Built with β€οΈ by the J^2 Team.
