All projects
AI ToolingActiveSince 2025
Dhi
AI-powered fill-in-the-middle autocomplete for VS Code
About
Dhi brings fill-in-the-middle (FIM) code completion to VS Code by streaming tokens from local Ollama models or cloud providers. Unlike Copilot, Dhi is privacy-first — the default configuration never sends code to a third party. A multi-document context window pulls from open editor tabs and adjacent files, giving suggestions aware of your project structure rather than just the current file.
Key features
- Privacy-first: local Ollama by default, no data leaving your machine
- Sub-100ms acceptance latency on local models with async streaming
- Cross-file context — aware of open editor tabs and related files
- Configurable trigger characters, debounce delay, and acceptance keybindings
- Pluggable provider architecture: Ollama, OpenAI, or any OpenAI-compatible endpoint
- VS Code status bar shows active model and acceptance rate
Tech stack
PythonFastAPITypeScriptVS Code Extension APIOllamaOpenAI
I wrote a detailed post on why I built Dhi and how it works under the hood.
Read the full story