A VS Code extension that takes your selected code and returns a plain-English explanation in a side panel, using Ollama local AI models (no API keys, no cloud required).
- 🤖 Local AI only: Uses Ollama with local models (no data leaves your machine)
- 🎯 Smart Selection: Explain selected code or entire files
- 📋 Copy to Clipboard: One-click copying of explanations
- 🎨 Side Panel UI: Clean, modern panel that matches VS Code’s theme
Download and install Ollama from 👉 ollama.com/download.
ollama pull mistral- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for ELI5
- Install the extension
- Select code in your editor → Right-click → Explain Selection (ELI5)
- Or run from Command Palette:
ELI5: Explain Selection
ELI5: Explain Selection– Explain selected codeELI5: Explain File– Explain the entire active fileELI5: Copy Last Explanation– Copy the last explanation to clipboard
ELI5 is fully local, but you can adjust settings in VS Code:
{
"eli5.model": "mistral",
"eli5.systemPrompt": "Explain the selected code in plain English for a beginner...",
"eli5.maxTokens": 500,
"eli5.timeoutMs": 20000,
"eli5.maxLines": 800,
"eli5.debug": false
}eli5.model→ Ollama model to use (e.g."mistral","codellama")eli5.systemPrompt→ Custom system prompt for explanationseli5.maxTokens→ Maximum response sizeeli5.timeoutMs→ Timeout in ms (default 20s)eli5.maxLines→ Max lines of code to explaineli5.debug→ Enable debug logging
- Make sure Ollama is running (
ollama serve) - Check your pulled models with
ollama list
- Ensure you pulled the model:
ollama pull mistral
- Double-check your settings in VS Code
- Use a smaller model (e.g.
mistral:7b) - Increase timeout in settings
- Check system resources
- All code stays on your machine
- No API keys, no cloud services, no telemetry
Clone and build from source:
git clone https://github.com/amish-gaur/eli5-vscodeextension.git
cd eli5-vscodeextension
npm install
npm run compileRun in VS Code dev host:
- Press F5 in VS Code to launch
- Test with any file and selection
Contributions welcome!
- Fork the repo
- Create a feature branch
- Submit a PR 🚀
MIT License – see LICENSE for details
Made with ❤️ to help developers learn and debug code faster.