You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
# Local AI Copilot for VS Code
2
2
3
+
3
4
A VS Code extension that provides GitHub Copilot-like functionality using locally running Ollama models.
4
5
6
+
Now with **smart project-wide context**: The extension automatically gathers code and documentation from your workspace for every AI request, making suggestions and edits much more intelligent and Copilot-like.
7
+
5
8
## Features
6
9
7
10
- 🤖 **Chat Interface** - Interactive AI chat panel similar to GitHub Copilot
@@ -12,6 +15,10 @@ A VS Code extension that provides GitHub Copilot-like functionality using locall
12
15
- 🎨 **Beautiful UI** - Modern interface that matches VS Code's theme
13
16
- 🚀 **Multiple Models** - Choose between different Ollama models
14
17
18
+
- 🧠 **Project-Wide Context Awareness** – AI suggestions and edits use key files from your workspace (README, SETUP, main, server, extension, `.py`, `.ts`, `.js`, `.md`).
19
+
- 🔍 **Intelligent Suggestions & Edits** – AI can reason about your whole project, not just the current file or cursor.
20
+
- 🛠️ **Smart Code Actions** – Insert, replace, and preview code with context-aware suggestions and diff previews.
21
+
15
22
## Prerequisites
16
23
17
24
1.**Ollama** - Install from [https://ollama.ai](https://ollama.ai)
@@ -59,6 +66,14 @@ Then press `F5` to launch the extension in a new VS Code window.
59
66
60
67
### Chat Interface
61
68
69
+
## Smart Project Context
70
+
71
+
- The extension automatically gathers context from up to 5 key files in your workspace (README, SETUP, main, server, extension, `.py`, `.ts`, `.js`, `.md`) for every AI request.
72
+
- It combines this with the current editor's context and selection.
73
+
- The AI will now be able to reason about your whole project, not just the current file or cursor.
74
+
75
+
This makes code suggestions, edits, and completions much smarter and more Copilot-like!
76
+
62
77
1. Open Command Palette (`Ctrl+Shift+P` or `Cmd+Shift+P`)
63
78
2. Type "Local AI Copilot: Chat"
64
79
3. Start chatting with your AI!
@@ -89,6 +104,13 @@ Choose your preferred model from the dropdown in the chat panel:
89
104
2.**Python Server**: Handles communication with Ollama
90
105
3.**Ollama**: Runs the AI models locally on your machine
91
106
107
+
**Advanced:**
108
+
109
+
When you ask for code generation, editing, or explanation, the extension:
110
+
1. Collects relevant code and documentation from your workspace.
111
+
2. Combines it with your current selection or file context.
112
+
3. Sends this rich context to the AI backend for smarter, project-aware results.
0 commit comments