An AI-powered coding assistant that leverages a multi-agent workflow to generate, review, test, and evaluate code. The system combines Large Language Models (LLMs) with a machine learning–based code quality analyzer to provide reliable and high-quality coding solutions.
- Multi-agent architecture for structured code generation
- Automated planning, coding, review, and testing workflow
- Machine Learning–based code quality analysis
- Interactive web interface for coding queries
- LLM-powered code generation and reasoning
- Real-time communication between frontend, backend, and ML services
- Scalable cloud deployment using Railway and Vercel
User
│
▼
Frontend (Next.js)
│
▼
Backend (Express.js + LangGraph)
│
├── Planner Agent
├── Coding Agent
├── Reviewer Agent
│
▼
ML Quality Analyzer
(FastAPI + Random Forest)
│
▼
Testing Agent
│
▼
Final Response
- User submits a coding query.
- Planner Agent analyzes the problem and creates a solution strategy.
- Coding Agent generates the code implementation.
- Reviewer Agent inspects the generated code and suggests improvements.
- The generated code is sent to the ML-based Code Quality Analyzer for quality assessment.
- Testing Agent uses both the reviewed code and quality analysis results to validate correctness and identify potential issues.
- The final refined solution is returned to the user.
- Next.js
- React
- TypeScript
- Tailwind CSS
- Node.js
- Express.js
- LangGraph
- LangChain
- OpenAI API / Gemini API
- Scikit-learn
- Random Forest Classifier
- Python
- FastAPI
- Railway
- Vercel
- Git
- GitHub
The project includes a Code Quality Analyzer trained using the CodeXGLUE Defect Detection Dataset.
-
Dataset: Google CodeXGLUE Defect Detection
-
Size: 27,318 C functions
-
Labels:
- Defective
- Non-Defective
- Random Forest Classifier
- TF-IDF Feature Extraction
- Scikit-learn Pipeline
The ML model predicts potential code quality issues and provides an additional validation layer beyond LLM-based generation.
Multi-Agent-CodeAssistant/
│
├── frontend/
│ ├── app/
│ ├── components/
│ └── ...
│
├── backend/
│ ├── agents/
│ ├── Quality-Analyser/
│ | ├── ml_service.py
│ | ├── quality_model.pkl
| | ├── vectorizer.pkl
│ | └── requirements.txt
│ └── index.ts
│
└── README.md
git clone https://github.com/iparigoel/MutliAgent-CodeAssistant.git
cd MutliAgent-CodeAssistantcd backend
npm install
npm startcd frontend
npm install
npm run devcd Quality-Analyser
pip install -r requirements.txt
uvicorn ml_service:app --reloadOPENAI_API_KEY=your_api_key
ML_SERVICE_URL=http://localhost:8000
CLIENT_URL=http://localhost:3000NEXT_PUBLIC_API_URL=http://localhost:5000Deploy on Vercel:
vercelDeploy on Railway:
npm startDeploy on Railway:
uvicorn ml_service:app --host 0.0.0.0 --port $PORT- Support for multiple programming languages
- Automated execution sandbox
- Advanced static code analysis
- RAG-based coding documentation retrieval
- Fine-tuned code generation models
- User authentication and chat history
- Code complexity and security analysis
Pari Goel
This project is licensed under the MIT License.