AI-powered LeetCode coaching directly inside VS Code.
LeetCoach helps you improve your problem-solving skills by giving feedback on your code while you practice coding problems. Instead of immediately showing solutions, it focuses on hints, mistakes, edge cases, and suggestions to help you learn.
Features
AI Code Review
Get feedback on your LeetCode solutions directly inside VS Code.
LeetCoach can help identify:
- Logical mistakes
- Missing edge cases
- Inefficient approaches
- Code quality issues
- Possible improvements
💡 Hint-Based Learning
Instead of revealing the answer immediately, LeetCoach guides you toward the solution.
Learn by understanding:
- Why your approach fails
- What concept you are missing
- How to improve your reasoning
⚡ VS Code Integration
Use LeetCoach without leaving your editor.
Available commands:
LeetCoach: Check My CodeLeetCoach: Set ProblemLeetCoach: Select Model
🧠 Multiple AI Models
Choose the model that powers your feedback.
Supported models:
- Llama 3.1 8B
- Gemma 4
You can configure your preferred model in VS Code settings.
Installation
- Open VS Code
- Go to Extensions (
Ctrl + Shift + X) - Search for LeetCoach
- Click Install
Usage
- Open a LeetCode problem
- Write your solution
- Open the LeetCoach sidebar
- Set your problem via Leetcode URL
- Run Check My Code via (CTRL + Shift + P)
- Review the AI feedback
Configuration
LeetCoach settings can be changed through VS Code settings.
Available settings (optional):
API Key
leetcoach.apiKey
Your LLM provider API key.
Model
leetcoach.model
Choose which AI model provides feedback.
Backend
leetcoach.backend
Options:
proxy- Use the LeetCoach shared backenddirect- Use your own API key directly
Proxy URL
leetcoach.proxyUrl
Configure a custom LeetCoach proxy endpoint.
Privacy
LeetCoach only sends code and problem information required to generate feedback.
Your API keys are stored locally in VS Code settings and are not shared.
Requirements
- Visual Studio Code 1.125.0 or newer
- An LLM API key (optional) if using direct mode
Development
Clone the repository:
git clone https://github.com/jakguyboribye/LeetCoach.git
cd LeetCoach
Install dependencies:
npm install
Compile the extension:
npm run compile
Run in VS Code:
code .
Press F5 to launch the Extension Development Host.
Contributing
Suggestions and improvements are welcome.
Please open an issue or submit a pull request.
License
MIT License