InsiPilot
Your Code. Your Models. Your Control.
InsiPilot is an AI coding assistant for VS Code that runs on your own Ollama server, on your
machine or on a GPU server you control. Your code never leaves it.
InsiPilot works best for questions about your code, bug hunts, renames, tests and small changes.
Highlights
- Built for small local models. InsiPilot breaks each request into steps (find, read, test, change, test again)
and asks the model for one step at a time, so a 7B model stays on track.
- You approve every change. Edits appear as diffs with Accept and Reject; commands ask before they run. Undo
reverts everything a reply changed.
- Knows your project. It searches and reads your code, sees VS Code's errors and runs your tests to check its work.
- Pick the model that fits your machine. Choose a
qwen2.5-coder size from 0.5B to 32B; InsiPilot shows the
download size, warns when a model is too big for your memory and installs it for you.
- Chats per project. Each project keeps its own chats, and the latest one reopens when you come back.
Getting started
- Install Ollama 0.9.0 or newer.
- Open the InsiPilot view in the activity bar and click New Chat. The chat opens in a tab beside your code.
- Click Install to download
qwen2.5-coder:7b (about 4.7 GB), then ask away.
With the default 7B model, plan for about 7 GB of free memory; 16 GB of RAM is comfortable.
What you can ask
| You ask |
InsiPilot |
"What does totalWithDiscount do?" |
finds the code, reads it and answers from it |
| "Any bugs in src/?" |
reads the code, runs the tests as evidence, lists bugs with file:line |
| "Fix…", "Add…", "Rename…" |
reads the code, runs the tests, makes the change, runs the tests again and fixes what broke |
| "Make the tests pass" |
runs them, fixes the failures and repeats, up to three rounds |
Each step appears as a card in the chat. To let the model plan every step itself, set insipilot.workflow to agent.
Using InsiPilot
Changes. Every edit shows up above the input box as a diff. Nothing is written until you click Accept. Changes
go through the editor, so Cmd+Z works, and Undo under a reply restores every file it changed.
Commands. Before a command runs, you choose Run, Always allow or Reject. Commands stop after two
minutes, and dangerous ones (sudo, formatting disks, deleting your home folder, ...) are always refused.
Context. The file you are editing, or your selection, goes with your message; click its chip to leave it out.
Type @ to attach another project file, or use + > Upload file to attach a text file from anywhere, such as a
log or a config. Images, PDF and Office files are not supported.
Chats. The InsiPilot side bar lists the project's chats; the green dot marks the open one. Click a chat to open it,
or use its pencil and trash icons to rename or delete it. Chats are saved in ~/.insipilot, outside your project, so
they are never committed.
Project instructions. Put your conventions in AGENTS.md or .insipilot/INSTRUCTIONS.md; InsiPilot reads them at
the start of each chat.
Slash commands. /handoff saves where you are to .insipilot/HANDOFF.md (goal, progress, decisions, next steps).
/standup reads it back with the current git state, so you can pick up tomorrow. /clear starts a new chat.
Safety
- InsiPilot only reaches files inside the open workspace, and never writes inside
.git or node_modules.
- Files that often hold secrets (
.env, private keys, .ssh, .npmrc, ...) are skipped by search, and reading one
asks for your approval.
- Without an open folder, InsiPilot is a plain chat with no access to files.
Settings
| Setting |
Default |
Description |
insipilot.endpoint |
http://localhost:11434 |
Ollama server. Point it at a remote machine for GPU speed. |
insipilot.model |
qwen2.5-coder:7b |
Chat model. It must support tool calling. |
insipilot.requiredModels |
["qwen2.5-coder:7b"] |
Models that must be installed before chat is enabled. |
insipilot.contextLength |
0 (auto) |
Context window. Auto starts at 8,192 tokens and grows as needed, up to 32,768. |
insipilot.autoApproveEdits |
false |
Write changes without asking. Undo still works. |
insipilot.allowedCommands |
[] |
Commands that always run without asking, e.g. npm test. |
insipilot.keepAlive |
5 min |
How long Ollama keeps the model in memory after a reply, e.g. 1m or 0. |
insipilot.workflow |
guided |
guided: step by step. agent: the model decides every step. |
insipilot.planning |
auto |
Keep a checklist for multi-step tasks; auto turns it on for models of 14B or more. |
insipilot.think |
false |
Let reasoning models such as qwen3 think before answering. |
Tips
Use less memory. These Ollama settings cut the context cache of the 7B model from about 1.9 GB to 1.1 GB at a
32K window, with the same speed (measured on an M2 Pro). Set all three; on macOS:
launchctl setenv OLLAMA_FLASH_ATTENTION 1
launchctl setenv OLLAMA_KV_CACHE_TYPE q8_0
launchctl setenv OLLAMA_NUM_PARALLEL 1
brew services restart ollama # or quit and reopen the Ollama app
They last until you log out. A smaller insipilot.contextLength (e.g. 16384) and a short insipilot.keepAlive
(e.g. 1m) also help.
Run the model on another machine. Ollama has no authentication, so reach it through an SSH tunnel:
ssh -N -L 11435:localhost:11434 user@gpu-server
Then set insipilot.endpoint to http://localhost:11435. Models you install from InsiPilot download on the server.