π¦ Complete AI-Powered Coding Assistant with Desktop & Web IDEs
- π€ AI Algorithm Selection - Intelligently chooses the best algorithm for each task
- 𧬠Self-Evolving System - Automatically generates and optimizes algorithms
- π₯οΈ Desktop IDE - Native PyQt6 application with full features
- π Web IDE - Beautiful browser-based interface (Monaco editor)
- π Database Integration - Persistent chat history and analytics
- π Multi-Channel Support - Discord, Telegram, Zalo desktop integration
- β‘ Real-time Chat - WebSocket support for instant responses
- π Code Editor - Syntax highlighting and intelligent completion
pip install -r requirements.txtcp .env.example .env
# Edit .env with your API keysRequired environment variables:
V98_API_KEY=your_v98_api_key_here
AICODING_API_KEY=your_aicoding_key_here
DATABASE_URL=sqlite:///./dive_ai.dbpython gateway/gateway_server.pyThe Gateway will start on http://localhost:1879
- Web IDE: Open http://localhost:1879 in your browser
- Desktop IDE: Run
python desktop_ide.py - API Documentation: http://localhost:1879/docs
- System Tray: Run
python diveai_tray.pyfor background service
βββββββββββββββββββββββββββββββββββββββββββββββ
β Multi-Channel Gateway β
β (Web, Desktop, Discord, Telegram, Zalo) β
ββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β
βββββββββΌβββββββββ
β Gateway Server β
β (Port 1879) β
βββββββββ¬βββββββββ
β
ββββββββββββββ΄βββββββββββββββ
β β
βββββΌβββββββββββ ββββββββββββΌβββββββββ
β AI Algorithm β β AlgorithmManagerβ
β Selector βββββΊβ (50+ algos) β
ββββββββββββββββ ββββββββββββ¬βββββββββ
β
βββββββββββββΌβββββββββββ
β Database Storage β
β (Chat + Analytics) β
ββββββββββββββββββββββββ
Dive-AI2/
βββ gateway/
β βββ gateway_server.py # Main FastAPI server
βββ core/
β βββ algorithms/ # 50+ built-in algorithms
β βββ ai_algorithm_selector.py # AI-powered selection
β βββ self_evolving_algorithms.py# Auto-generation system
βββ channels/
β βββ discord_desktop_channel.py # Discord integration
β βββ telegram_desktop_channel.py# Telegram integration
β βββ zalo_desktop_channel.py # Zalo integration
βββ database/
β βββ config.py # Database setup
β βββ models.py # SQLAlchemy models
βββ web_ide/
β βββ index.html # Web IDE interface
βββ desktop_ide.py # PyQt6 desktop app
βββ diveai_tray.py # System tray app
βββ first_run_setup.py # Setup wizard
βββ requirements.txt # Python dependencies
βββ .env.example # Environment template
βββ README.md # This file
POST /chat
{
"message": "Create a Python REST API",
"channel": "web",
"user_id": "user_123"
}GET /healthGET /statisticsGET /algorithmsWS /ws/{session_id}Dive AI uses SQLAlchemy with support for:
- SQLite (default, no setup required)
- PostgreSQL (for production)
ChatSession- User chat sessionsChatMessage- Individual messagesAlgorithmExecution- Execution logsGeneratedAlgorithm- Self-evolved algorithms
DATABASE_URL=postgresql://user:password@localhost:5432/diveaiOpen http://localhost:1879 for:
- AI Chat interface
- Monaco code editor
- Integrated terminal
- File management
Run python desktop_ide.py for:
- Standalone application
- Embedded web view
- Native file operations
- System integration
Run python diveai_tray.py for:
- Background service
- Quick start/stop
- Status monitoring
- Settings access
The AI can:
- Detect capability gaps - Identifies missing algorithms
- Generate new algorithms - Creates Python code automatically
- Optimize existing code - Improves performance based on metrics
- Learn from results - Adapts selection based on success rates
curl http://localhost:1879/evolution/statusControl desktop messaging apps via UI automation:
- Auto-login and channel monitoring
- Send/receive messages
- React to messages
- Full Vietnamese support
- Group chat integration
- Media handling
- Native Vietnamese app
- No API needed
- Full feature access
Configure in config/channels.json
python demo.pypytest test_complete_system.pypython build.batCreates:
DiveAI-Tray.exe- System tray appDiveAI-Setup-Wizard.exe- First-run setupdist/DiveAI/- Complete distribution
- OS: Windows 10/11, macOS, Linux
- Python: 3.9 or higher
- RAM: 4GB minimum, 8GB recommended
- Disk: 500MB free space
- Network: Internet connection for AI APIs
# LLM API Keys
V98_API_KEY=your_key_here
AICODING_API_KEY=your_key_here
# Gateway Settings
GATEWAY_PORT=1879
GATEWAY_HOST=127.0.0.1
# Database
DATABASE_URL=sqlite:///./dive_ai.db
# Desktop Channels (optional)
DISCORD_PATH=C:\Users\...\Discord\Discord.exe
TELEGRAM_PATH=C:\Users\...\Telegram Desktop\Telegram.exe
ZALO_PATH=C:\Users\...\Zalo\Zalo.exe
# Self-Evolution
AUTO_OPTIMIZE_ENABLED=true
AUTO_OPTIMIZE_THRESHOLD=50MIT License - see LICENSE file
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Documentation: See
/docsfolder - Issues: https://github.com/duclm1x1/Dive-AI2/issues
- Discussions: https://github.com/duclm1x1/Dive-AI2/discussions
- VSCode extension
- Cloud deployment support
- Multi-user collaboration
- Plugin system
- Mobile companion app
Made with 𧬠by Dive AI Self-Evolving System
Version 29.4 - The Future of Agentic AI