Codentify is a smart AI-powered web app that reviews, analyzes, and improves your code using LLMs. A powerful and customizable AI-powered code reviewer web application built using Python, Streamlit, and OpenRouterβs free LLMs (like Mistral-7B).
This app allows developers to paste or upload source code, select review focus and explanation style, and instantly receive a professional AI-generated review along with corrected code.
| Web View | APP's Specification |
|---|---|
![]() |
![]() |
- π AI-Powered Code Review: Analyze logic, bugs, performance, and security flaws
- π₯ Upload or Paste Code: Supports
.py,.js,.jsx,.java,.ts,.cpp,.cs - π§ Select Review Focus:
- General Review
- Bug Detection
- Performance Optimization
- Security Issues
- Code Refactoring
- π¬ Choose Explanation Style:
- Detailed
- Concise
- Line-by-Line
- Bullet Points
- π Supports Multiple Languages:
- Python, JavaScript, Java, C++, C#, Go, TypeScript
- β¨ Dynamic Prompt Engineering for maximum accuracy
- π Project Overview Tab: Includes specs, tech stack, and documentation
- π¨ Professional UI: Responsive layout, dark theme, clean footer with profile links
| Layer | Tool / Tech |
|---|---|
| Frontend | Streamlit |
| Backend Logic | Python |
| AI Model | Mistral-7B (via OpenRouter) |
| Prompting | JSON-powered dynamic prompt template |
| Styling | Custom CSS (style.css) |
| Secrets Mgmt | .env + python-dotenv |
βββ main.py # Main Streamlit app
βββ prompt_template.json # Dynamic LLM prompt template
βββ style.css # Custom styles and footer
βββ .env # OpenRouter API key (NOT shared)
βββ requirements.txt # Install dependencies
βββ README.md # You're here
git clone https://github.com/AritraOfficial/Codentify.git
cd Codentify- Set Up the Environment
- Create .env with your OpenRouter API key:
OPENROUTER_API_KEY= sk-xxxxxx-your-key
- Install Dependencies
pip install -r requirements.txt- Launch the App
streamlit run main.py| Upload File | Ask Questions | Get Answers |
|---|---|---|
![]() |
![]() |
![]() |
| APP View | Footer View | APP's Specification |
|---|---|---|
![]() |
![]() |
![]() |
- π Free LLMs Used
This app uses Mistral-7B Instruct from OpenRouter, a fast and free-to-use model for code understanding and natural language generation.
You can switch to other free OpenRouter models by changing the model name in main.py.
-
User selects:
- β Language preference
- π Type of review
- π§ Style of explanation
-
User pastes or uploads code
-
Code is validated against the selected language
-
A dynamic prompt is constructed using all selections
-
The LLM returns:
β οΈ Problem analysis- π‘ Suggestions for improvement
- π οΈ Corrected version of the code
πΉ Issues Found:
- Missing error handling
- Unused variable
πΉ Suggestions:
- Add try-except block
- Remove unused variable
β
Corrected Code:
```python
def process(data):
try:
return data.lower()
except Exception:
return NoneAritra Mukherjee - AI Developer
This project is licensed under the MIT License.
Feel free to:
- Report bugs
- Suggest features
- Fork and improve the app!
Open a PR or contact me via LinkedIn or email.
This tool is powered by LLMs and should not be used for production-critical code reviews without human verification.
For queries or collaborations, feel free to connect:







