AI-powered code review and auto-fix extension for Visual Studio Code. Review and improve your code with local AI support using Ollama. Supports HTML, CSS, JavaScript, TypeScript, React, Node.js, Express, Python, Java, C/C++, Go, Rust, PHP, and many more languages.
✨ Features
🔍 Smart Code Review
Analyze your code and detect:
- Bugs and potential issues
- Syntax mistakes
- Runtime errors
- Performance problems
- Security risks
- Code quality improvements
- Best practice recommendations
🔧 Smart Auto-Fix
Automatically fix common issues and improve code quality.
The extension can:
- Explain where the issue exists
- Show the file and line number
- Explain why the problem occurs
- Suggest the best fix
- Generate improved code
- Refactor bad code
- Optimize performance
- Improve readability
Example
❌ Problem Found
File: app.js
Line: 45
Issue:
Unused variable "tempData"
Why:
Variable is declared but never used.
Suggestion:
Remove the variable or use it where needed.
Fixed Version:
// removed unused variable
🦙 Local AI Support
Uses Ollama for completely local code reviews.
Benefits
- No internet required
- Better privacy
- Faster response
- No API key required
- Works completely offline
📊 Detailed Reports
Get file-wise reports including:
Errors
- Syntax Errors
- Missing imports
- Runtime issues
- Undefined variables
Warnings
- Duplicate code
- Unused variables
- Large functions
- Performance bottlenecks
Suggestions
- Better naming
- Refactoring opportunities
- Security improvements
- Memory optimization
🚀 Fast Multi-File Analysis
Review an entire folder or project with one command.
Supports:
- Single file review
- Whole project review
- Recursive folder scanning
- Batch analysis
📁 Supported File Types
| Category | Extensions |
|---|---|
| Web | .html, .htm, .css, .scss, .sass, .less |
| JavaScript | .js, .jsx, .mjs, .cjs |
| TypeScript | .ts, .tsx |
| Python | .py, .pyw, .pyi |
| Java | .java, .class |
| C/C++ | .c, .cpp, .cc, .cxx, .h, .hpp |
| C# | .cs |
| Go | .go |
| Rust | .rs |
| Ruby | .rb |
| PHP | .php |
| JSON | .json |
| YAML | .yml, .yaml |
| SQL | .sql |
| Docker | Dockerfile |
| Shell | .sh, .bash |
📸 Screenshots

Add screenshots or GIFs in the images folder.
📦 Installation
From VS Code Marketplace
-
Open VS Code
-
Press
Ctrl + Shift + X
- Search:
We4X AI Code Reviewer
Install Ollama
Copy and paste:
curl -fsSL https://ollama.ai/install.sh | sh
Start Ollama:
ollama serve &
🚀 Recommended Models
CodeLlama 7B (Recommended)
Best balance between speed and quality.
Copy & Paste:
curl -fsSL https://ollama.ai/install.sh | sh
ollama serve &
ollama pull codellama:7b
ollama list
CodeLlama 13B
Highest quality.
Copy & Paste:
curl -fsSL https://ollama.ai/install.sh | sh
ollama serve &
ollama pull codellama:13b
ollama list
DeepSeek Coder 1.3B
Perfect for old laptops and low RAM systems.
Copy & Paste:
curl -fsSL https://ollama.ai/install.sh | sh
ollama serve &
ollama pull deepseek-coder:1.3b
ollama list
📊 Model Comparison Guide
Which Model Should I Choose?
| Your Computer | RAM | Recommended Model | Command | Quality | Speed | Download |
|---|---|---|---|---|---|---|
| Old Laptop | 4 GB | DeepSeek 1.3B | ollama pull deepseek-coder:1.3b |
⭐⭐ | 🚀 Very Fast | 0.8 GB |
| Basic Laptop | 6 GB | Qwen 1.5B | ollama pull qwen-coder:1.5b |
⭐⭐⭐ | 🚀 Fast | 1.5 GB |
| Recommended | 8 GB | CodeLlama 7B | ollama pull codellama:7b |
⭐⭐⭐⭐ | ⚡ Fast | 3.8 GB |
| Gaming Laptop | 12 GB | CodeLlama 13B | ollama pull codellama:13b |
⭐⭐⭐⭐⭐ | 🐢 Slower | 7.5 GB |
| Workstation | 16+ GB | Llama 3 70B | ollama pull llama3:70b |
⭐⭐⭐⭐⭐ | 🐢 Slower | 40 GB |
⚙️ Extension Settings
| Setting | Description |
|---|---|
| we4x.enable | Enable extension |
| we4x.model | AI model |
| we4x.autoFix | Enable auto-fix |
| we4x.reviewFolder | Review project |
| we4x.maxFiles | Maximum files |
🚀 Commands
Open Command Palette:
Ctrl + Shift + P
Review Current File
We4X: Review Current File
Analyzes current file.
Review Entire Folder
We4X: Review Folder
Analyzes all supported files.
Auto Fix Code
We4X: Auto Fix Issues
Automatically fixes common coding problems.
🧠 How Review Works
Source Code
↓
We4X Extension
↓
Ollama AI
↓
Analyze Files
↓
Detect Errors
↓
Explain Problems
↓
Suggest Fixes
↓
Auto Fix
↓
Improved Code
📊 Example Review
File: index.js
Line: 32
Problem:
Unused variable "userData"
Why:
Variable is declared but never used.
Suggestion:
Remove it or use it where required.
Severity:
Warning
Fixed Code:
const data = response.data;
📚 Supported Project Types
✅ HTML Projects
✅ CSS Projects
✅ JavaScript Projects
✅ React Applications
✅ Node.js Projects
✅ Express APIs
✅ Python Projects
✅ TypeScript Projects
✅ Full Stack Applications
🐞 Known Issues
- Very large projects may take longer.
- Ollama must be running.
- Performance depends on selected model.
📝 Release Notes
1.0.0
- Initial release
- Smart AI review
- Local AI support
- Folder analysis
- Multi-language support
- Auto-fix support
- Detailed reports
🛠 Development
Clone repository:
git clone https://github.com/we4x/ai-code-reviewer
Install dependencies:
npm install
Run Extension Development Host:
F5
Package Extension:
vsce package
❤️ Why We4X AI Code Reviewer?
✅ No API key required
✅ 100% Local AI
✅ Privacy Friendly
✅ Multi-language Support
✅ Folder Review
✅ Detailed Reports
✅ Smart Auto Fix
✅ Explains where the issue exists
✅ Shows why the problem occurs
✅ Suggests better code
✅ Works with Ollama Models
🚀 Enjoy Coding With We4X AI Code Reviewer
Review Smarter. Fix Faster. Build Better.