Welcome to Chat Assistant, a sleek and intelligent VS Code extension that brings local AI-powered conversations to your coding workspace – without needing an internet connection!
Chat-Assistant.mp4
- 🧠 Local AI Chat: Interact with a locally hosted LLM (TinyLlama via Ollama).
- 💬 Chat Interface: A modern, responsive, and animated chat UI directly inside VS Code.
- 🌙 Dark Theme: Smooth, minimal design that blends perfectly with VS Code’s aesthetics.
- 🔒 Privacy-First: 100% offline – No API keys, no data sharing.
- 🛠️ Built for Devs: Ask questions, get code, and debug your work while staying in your IDE.
- VS Code Webview API
- JavaScript, HTML, CSS
- Ollama for LLM backend
- TinyLlama – A small and fast language model
-
Install Prerequisites
- Install Node.js and Visual Studio Code on your system.
-
npm install -g yo generator-code
-
cd path/to/your/chat-assistant -
npm install node-fetch
-
Install and Start Ollama
- Download Ollama from its official site.
* ollama pull tinyllama * ollama run tinyllama
-
code . -
Run the Extension
- Press F5
- A new Extension Development Host window will open.
-
Use the Chat Assistant Sidebar
- Open the sidebar tab named Chat Assistant
- Type your prompt
- Click Send
- The message is processed by TinyLlama locally, and the response appears in the UI.
chat-assistant/
├── .vscode/ # VS Code specific settings
│ └── launch.json # Debug configuration for Extension Host
├── media/
│ └── icon.png # Icon displayed in the VS Code sidebar
├── extension.js # Main file handling activation, webview, HTML, CSS, and script logic
├── package.json # Extension manifest file defining contributions, activation, and dependencies
└── README.md # Documentation for understanding and using the project
- Ask coding or debugging questions
- Use it as a personal offline assistant
- Speed up learning without leaving VS Code
🔄 Copy feature is currently not included but may return in future versions.
Prathamesh Rajendra Navale
- Email: workwithprathamesh18@gmail.com
- GitHub: navalepratham18
- LinkedIn: Prathamesh-Navale
MIT – Feel free to use, learn, and improve upon it.