01
Ghost-text completions
Fill-in-the-middle suggestions as you type, with a short debounce and in-flight cancellation. Prompts are built to stay byte-stable between keystrokes so Ollama's prompt cache does the heavy lifting.
Product — VS Code extension · PyCharm plugin
Inline completions and an agentic chat for VS Code (and soon PyCharm), powered by the Ollama models already on your machine. No cloud, no API keys, no code leaving your laptop — enforced by a no-network sandbox.
01 — Features
01
Fill-in-the-middle suggestions as you type, with a short debounce and in-flight cancellation. Prompts are built to stay byte-stable between keystrokes so Ollama's prompt cache does the heavy lifting.
02
Ask questions about your project. The assistant can read files, search the workspace, propose edits and run commands — every file write and shell command waits for your approval first.
03
It records what you accept, trim or reject and tunes suggestion length and style per language. The log never leaves your workspace, and you can reset it any time.
04
Pick any installed Ollama model for chat and completion from inside the editor. Small coder models for speed, large tool-capable models for the agent.
05
Completions work inside Jupyter notebook cells in VS Code, with each cell synced as its own virtual document.
06
A status-bar item tells you when Ollama is down or a model is missing. It starts Ollama for you inside a no-network sandbox, and for a missing model it copies the ollama pull command for you to run.
02 — Install
Saarthi talks to a local Ollama server. A small coder model handles completions; a larger tool-capable model drives the chat. Pull models from a terminal: Saarthi itself never downloads anything.
brew install ollama && ollama serve ollama pull qwen2.5-coder:0.5b-base ollama pull qwen3.8:27b-mlx
From the Marketplace button above, or from a terminal:
code --install-extension thelaconicguy.ollama-pilot
PyCharm 2026.2+: the Saarthi AI plugin is on its way to the JetBrains Marketplace.
Ghost text appears after a brief pause. Press Cmd+Shift+L for the chat. Models and completion settings live in the chat panel's model picker and settings view.
03 — How it works
A small Rust sidecar runs next to the editor. It mirrors open documents, indexes the workspace, assembles prompts, streams from Ollama and runs the agent loop. The editor only renders suggestions and asks you for approvals.
The same core powers the PyCharm plugin, coming to the JetBrains Marketplace as Saarthi AI, and a JupyterLab extension that is working today and will follow.
04 — Privacy
Saarthi talks only to an Ollama server on your own Mac. Any other address is refused before a connection is even attempted, and proxy settings are ignored. There is no account, no telemetry and no third-party API. The completion-feedback log it keeps for adaptive learning lives in a .localpilot/ folder inside your workspace and holds only short context snippets and the suggestions themselves.
ollama pull command to run yourself.Running a bigger local model, or want this inside your team's editor setup? We'd like to hear from you.
Saarthi AI is a Primelab product. Free and MIT licensed — source on GitHub.