CodeAgentix is a state-of-the-art online Integrated Development Environment (IDE) that leverages a collaborative multi-agent AI architecture to assist developers in writing, executing, and optimizing code. By combining the power of Llama 3 (via OpenRouter), Google Gemini, and a specialized microservices architecture, CodeAgentix offers an intelligent development experience beyond traditional editors.
CodeAgentix isn't just a code editor; it's a team of specialized AI agents working together:
- Code Generation Agent: Instantly transforms natural language descriptions into production-ready code.
- Simulated Execution Agent: Utilizes advanced LLM reasoning (Llama-3-8B) to simulate terminal outputs across dozens of programming languages without requiring local compilers.
- Refactoring Agent: Analyzes code quality and execution results to suggest optimized, clean-code improvements.
- Web Suite Agents: Specialized agents for high-fidelity HTML, CSS, and JavaScript development.
- Secure Authentication: Enterprise-grade JWT-based authentication with OTP (One-Time Password) verification and secure password management.
- Ephemeral Code Sharing: Share snippets with unique, expiring links powered by Redis for secure, temporary collaboration.
- Polyglot Support: Syntax highlighting and execution simulation for 20+ languages including Python, Rust, Go, Swift, and more.
- Dynamic IDE Experience: Fully responsive interface featuring the Ace Editor for a professional, desktop-grade coding experience in the browser.
- Frontend: React, Vite, Bootstrap, Ace Editor
- Backend Services:
- AI Engine: Flask (Python), LangChain, OpenRouter (Llama 3), Google Gemini
- Auth Service: Node.js, Express, MongoDB (Mongoose), JWT, Bcrypt
- Sharing Service: Flask, Redis (Ephermal Storage)
- DevOps/Tools: Python-dotenv, CORS, Postman (Testing)
CodeAgentix operates on a distributed microservices architecture:
- Frontend (Port 3000): React-based UI that communicates with various backends.
- Auth Backend (Port 5000): Manages users, OTPs, and JWT issue.
- AI Backend (Port 5001): Orchestrates AI agents and execution simulation.
- Sharing Backend (Port 5002): Handles ephemeral code storage using Redis.
- Node.js (v16+)
- Python (3.9+)
- MongoDB & Redis instances (Local or Cloud)
-
Clone the repository:
git clone https://github.com/Dharmendra2567/CodeAgentix-AI-Code-Studio cd CodeAgentix-AI-Code-Studio -
Configure Environment: Create
.envfiles inBackend/Genai,Backend/Login, andFrontendbased on provided examples.# Backend/Genai/.env OPENROUTER_API_KEY="your_key" JWT_SECRET="your_secret"
-
Run Backends:
# Start Auth Service (Port 5000) cd Backend/Login && npm start # Start AI Service (Port 5001) cd Backend/Genai && python app.py # Start Sharing Service (Port 5002) cd Backend/TempFile && python app.py
-
Run Frontend:
cd Frontend && npm run dev
We are constantly evolving. Here is what's coming next:
- Dockerized Code Execution: Move from AI-simulated output to real-time containerized code execution.
- Real-time Collaboration: Live "Google Docs" style collaborative coding sessions using WebSockets.
- AI-Driven Unit Testing: Automatic generation of test suites for every snippet generated.
- VS Code Extension: A bridge to bring CodeAgentix's multi-agent intelligence directly into your local IDE.
- Semantic Code Search: Search through codebases using natural language.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Developed with ❤️ by Dharmendra