Your local AI agent, inside Visual Studio's own windows
Right-click an error, the call stack or a project: Inferpal reads your solution, edits it behind an approval that shows the real diff, then builds and runs your tests. The model runs on your own hardware.
No account · No telemetry · No API key · Works offline · Free and open source (GPL v3)
Visual Studio 2026, and Visual Studio 2022 from 17.14 · Ollama, LM Studio, llama.cpp, vLLM or any OpenAI-compatible server, on this PC or a GPU machine you own · also for VS Code

A real run, sped up. Every write was approved in the chat, and the whole run can be undone in one click.
Right-click, and it's on it
| Where you are |
Choose |
What you get |
| Error List |
Fix with Inferpal |
The selected errors and warnings are fixed with the code around each, NuGet vulnerability warnings included. |
| A failed build |
Fix them, on the banner |
The build's errors go to the agent. |
| Test Explorer |
Fix Failing Tests with Inferpal |
/tdd runs the suite, patches the code and runs it again until it is green. |
| Debugger, stopped |
Analyze with Inferpal |
The stop is explained from the call stack, the locals and your code, and nothing is stepped or run. |
| Solution Explorer |
Explain · Review Changes · Attach to Chat |
A project, folder or file explained, or its uncommitted changes reviewed. |
| Editor |
Edit with AI… (Shift+Alt+I) |
The change appears in place in red and green, and you accept or reject each part. |
| While you type |
Tab, or Alt+' |
Ghost-text completions, either after a pause or only when you ask. |
Analyze with Inferpal is in the Debug menu and in the Call Stack, Locals, Autos and Watch windows. Every change waits for your approval.
A failing test? It reads the debugger, not just the log
/tdd runs your tests, patches the code and runs them again, for up to five rounds. On the first red round, the failing .NET test is run again under the Visual Studio debugger, and the real exception, call stack and local values go into the fix. We tested this on a fixed set of 12 failing C# tests with a local 27B model. It fixed 12 with the debugger's view and 10 without.
Hand it a task. You stay in control.
Ask in plain words, for example "add argument validation to this method and cover it with tests". The agent plans the work, then reads, edits, builds and tests, and shows every step live.
- Every write, delete and command waits for you, with the real diff. Press Enter to allow or Esc to deny. You can also allow a narrow rule you choose, such as commands that start with
dotnet test.
- Every file the agent edits is backed up first. Undo run puts them all back in one click.
- You can steer it while it works. Type a correction and press Enter, and the agent reads it before its next step.
- It checks its own work. It builds or typechecks after each edit (.NET, TypeScript, Rust, Go) and feeds the errors straight back.
- It refuses invented packages before asking you. Local models make up package names. Before a package is added, its name is looked up on nuget.org, npm or PyPI.
Bigger hardware, better agent
Inferpal runs whatever model your server holds, and a bigger model makes it better. On our test server, which has one 24 GB card, the largest model it could hold scored best: Qwen3.8 27B completed 14 of 14 real coding tasks in C#, JavaScript and Python. Each task counted only if the project's own tests passed. More memory also gives you a longer context, and room for a separate autocomplete model beside the agent.
| Your card |
Agent |
Autocomplete beside it |
| 24 GB |
Qwen3.8 27B (14/14), which also autocompletes, or Gemma 4 12B with Mellum2 |
see the agent column |
| 16 GB |
Gemma 4 12B (12/14, fast), or Bonsai 27B, a 1-bit Qwen (13/14, about 3× slower) |
Mellum2 fits only beside a weaker agent |
| 12 GB |
same as 16 GB |
none measured fits |
| 8 GB |
Granite 4.2 8B (14/14, fast) |
none measured fits |
| More than 24 GB |
not tested |
— |
These were measured on one 24 GB card (LM Studio, 32K context), with its free memory cut to stand in for the smaller cards. Each model ran once, so a gap of a task or two means nothing. We could not test larger cards, multi-GPU machines or 70B-class models, for lack of budget and infrastructure rather than interest, so we recommend nothing above 24 GB. /bench measures the models you have, on your machine. See every figure.
Get started
- Run a model server. Ollama and LM Studio are both free, and can run on this PC or on a machine you own. On a 24 GB card:
ollama pull qwen3.8.
- Close Visual Studio, then install, or let the installer finish when Visual Studio closes. If you install while it is open, the extension can end up unregistered, and
/diagnostics will say so.
- Open Tools → Inferpal → Inferpal Chat. It looks for a model server on this PC, takes the one that answers and picks a model, and says so in the chat. With none, it offers to install Ollama for your account, showing the
winget command first. For another server, enter its address in Settings → Server and models and click Test.
- Ask a question, or right-click an error.
Also in the box
- 30 built-in tools: files, text and semantic search, build and tests, shell with background jobs, git, the editor, the debugger, compiler-backed analysis and symbol rename, web search and page fetch. Add any MCP server's tools and your own shell commands. See the reference.
- Semantic code search across your solution, with an embedding model installed (keyword search without one). The most relevant code is added to each question.
- Reviews and Git text.
/check reviews your diff, a branch or a commit, and anchors every finding to a line. /commit drafts the commit message, and /pr-description writes the pull request description.
- Typed mentions:
@file @folder @code @diff @commit @problems @debugger @clipboard @tree @url @output, or drag a file or folder onto the chat. @Docs indexes a documentation site with /docs add <url>.
- Your repository's agent setup, read as it is. It reads
AGENTS.md, CLAUDE.md, the Copilot and Cursor instruction files, and your project rules. It honours .aiignore-style files.
- Background and debug sessions.
/task investigates in the background while you work. /debug drives a debug session once you approve it.
- Context you can see. A ring shows how full the model's window is, and
/xray shows what fills it.
- 50+ slash commands and an interface in 10 languages. Settings and conversations are shared with VS Code. See the slash commands.
FAQ
Does my code leave my machine? Not with a model server on your machine. There is no account, no telemetry and no hosted service. Only these go out:
- the model server address you choose
- the MCP servers you add
- a site you index
- the agent's web searches and page fetches, each of which asks you first
- the name of a package the agent wants to add, looked up on its public registry. Only the name is sent, and one setting turns this off.
Will my model work? Any model that calls tools will. That includes tool calls a server leaves as plain text (Qwen, Mistral, GLM, Gemma, gpt-oss). It also includes a model whose chat template refuses tools. Each known model family gets the sampling settings its vendor recommends.
Which server should I use? Ollama gets every feature, including per-model memory figures, downloads from the chat and unloading idle models. LM Studio runs everything without the per-model memory figures. Other OpenAI-compatible servers (llama-server, vLLM) run the chat, the agent and the search. They also run inline completions if the server can complete around the cursor.
Can the model run on another machine? Yes. Point the server address at it, as described in Remote inference.
Does it work offline? Yes, with a local server. Only web search and page fetch need the internet.
Requirements
|
|
| Visual Studio |
2026, or 2022 from 17.14, in Community, Professional or Enterprise, x64 |
| Model server |
Ollama, LM Studio or any OpenAI-compatible server, local or on another machine, with a model that calls tools |
Official sources
Inferpal is an independent open-source project (GPL v3) by EstaxNet. It has no hosted version and no account, and is not affiliated with any cloud or API provider. The official sources are the GitHub releases and the Marketplace listings for Visual Studio and VS Code. Questions and bug reports go on GitHub.
Finding Inferpal useful? A rating helps other Visual Studio developers find it.
| |