CodeForge AI is a cutting-edge offline AI-powered platform that revolutionizes code testing, analysis, and debugging. Using Large Language Models (LLMs), it automates bug detection, test case generation, static analysis, and code completion, enhancing developer productivity without relying on cloud-based AI services.
This project ensures data privacy, offline accessibility, and AI-powered insights, making it ideal for enterprise, research, and security-focused development environments.
- Offline AI-powered code analysis (LLM-based)
- Automated bug detection and static analysis
- Test case generation and code completion
- OCR and PDF text extraction for scanned code files
- Interactive chatbot for debugging assistance
- Secure authentication and user management
- Speech-To-Text recognition for prompting
- FastAPI backend with MongoDB integration
- Customizable AI models for enhanced code insights
DVT PROJECT FINAL/
│── DVT PROJECT/
│ ├── backend/
│ │ ├── app/
│ │ │ ├── main.py
│ │ │ ├── deps.py
│ │ │ ├── utils.py
│ ├── frontend/
│ ├── datasets/
│── myenv/ (virtual environment)
- Backend: FastAPI-based API for model interaction, authentication, and code analysis
- Frontend: UI for uploading files, testing code, and interacting with AI insights
- Datasets: Stores relevant data for model improvement
- Frontend: HTML, CSS, JavaScript, D3.js
- Backend: FastAPI, Python, Pydantic
- Database: MongoDB
- LLM Models: LLaMA 3.2, DeepSeekCoder V2
- OCR & File Handling: PyTesseract, PDFPlumber
- Security: JWT Authentication, OAuth2
git clone https://github.com/shazmin-67/codeforge-ai.git
cd codeforge-ai
python -m venv myenv
source myenv/bin/activate # (Linux/macOS)
myenv\Scripts\activate # (Windows)
pip install -r requirements.txt
- Linux/macOS: Run
sudo apt install ffmpegorbrew install ffmpeg - Windows: Download from FFmpeg official site and add it to the system path.
uvicorn backend.app.main:app --reload
CodeForge AI requires a connection to MongoDB. Either set up a local MongoDB instance or use MongoDB Atlas.
- Install MongoDB: MongoDB Installation Guide
- Create a Database: Run MongoDB and create a database named
codeforge_ai. - Configure the Connection:
- Define the connection URI in the
.envfile asMONGO_URI=mongodb://localhost:27017/codeforge_ai - If using MongoDB Atlas, replace
localhostwith your cluster URI.
- Define the connection URI in the
CodeForge AI uses DeepSeekCoder V2-lite-instruct GGUF for offline AI-powered analysis. You can switch models by modifying the /api/chat route.
- Download LM Studio from LM Studio Official Site
- Install and launch LM Studio
- Download DeepSeekCoder V2-lite-instruct GGUF from Hugging Face
- Set up the model in LM Studio
To change the model:
- Open
backend/app/main.py - Locate the
/api/chatroute - Modify the model name as needed
- Upload your code via the web interface
- Interact with the AI chatbot for real-time debugging help
- View test case generation and static analysis reports
- Download suggestions and optimized code
-
Client-Side (Frontend)
- Code Editor with syntax highlighting
- Interactive chatbot for coding assistance
-
Server-Side (Backend)
- FastAPI-based API
- Secure user authentication
- LLM-powered analysis engine
-
Database & LLM Server
- MongoDB for user & chat history
- LLaMA 3.2 or Deepseek Coder V2 lite for AI-powered insights
- Real-time collaboration for teams
- Integration with GitHub for automated code review
- IDE plugin for VS Code and JetBrains IDEs
- Advanced analytics dashboard
- Live debugging capabilities
We welcome contributions. To contribute:
- Fork the repository
- Create a new branch (
feature-branch) - Commit your changes
- Submit a pull request
This project is licensed under the MIT License.



