feat(vscode): add VS Code extension with chat, completions, and agent tools#975
Open
ruthlessproductions wants to merge 1 commit intojundot:mainfrom
Open
Conversation
… tools Adds a full VS Code extension for oMLX with: - Inline code completions (Copilot-style, debounced) - Streaming chat sidebar with conversation history - Agentic tool loop: execute_code, run_command, read/write files, list_files, open_preview, start_server - Model quick-pick switcher showing loaded/unloaded state - Status bar with connection health and tokens-per-second - Settings panel (server URL, API key, model parameters) - Auto-selects first loaded model on startup - Apache 2.0 SPDX headers on all source files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Admittedly this is a big feature add that was vibe coded and probably has a number of issues. Mostly did it for my own benefit and thought I'd share in case it's useful.
Adds a full VS Code extension for oMLX with:
Installation:
cd extensions/vscode
npm install
npm run build
Press F5 in VS Code to launch Extension Development Host
Or install the pre-built VSIX directly:
Extensions: Install from VSIX… → select extensions/vscode/vscode-omlx-0.1.0.vsix
Test results
3,723 tests pass. 8 pre-existing failures unrelated to this PR:
5× test_grammar.py — optional xgrammar dependency not installed
2× test_admin_* — preserve_thinking/turboquant_skip_last fields missing from test fixtures
1× test_accuracy_benchmark — benchmark count mismatch (16 vs 12)
Notes
All source files carry SPDX-License-Identifier: Apache-2.0 headers
Extension communicates with oMLX via the existing /v1/ and /admin/api/ endpoints — no server changes required
Bundled with esbuild (CommonJS, external: ['vscode']), no runtime npm dependencies
vscode-omlx-0.1.0.vsix.zip