GeminiXVoice-first AI code assistant for VS Code, powered by Gemini Live.
GeminiX transforms your VS Code editor into a conversational AI workspace. Select any code, open GeminiX in the Activity Bar, and ask spoken or typed questions — just like pair programming with a senior developer who already understands your project. FeaturesGemini Live Voice ConversationReal-time, streaming voice interaction with Gemini. Speak your question naturally, hear responses spoken back, and follow along with live input/output transcripts and audio playback. Choose from 30+ distinct Gemini voices. Automatic Editor ContextSelect code in any editor — GeminiX captures the exact selection plus surrounding context and sends it privately to Gemini. The conversation shows only the file name and line range. Intelligent Workspace SearchGemini can pause mid-response, search your workspace for relevant files or symbols, read specific sections, and continue its answer — all through VS Code's native tooling. An in-memory lexical and filename index (kept current by a file watcher) enables fast, targeted retrieval without a vector database. Rich Attachments
Code ActionsEvery code block in the response includes:
Live Session Controls
Local Chat HistoryConversations are saved locally as JSON files. Open the history panel to browse, reopen, or delete past chats. Reopening restores the full transcript and sends recent messages as continuation context so Gemini can pick up where you left off. Shiki Syntax HighlightingCode blocks are rendered with full Shiki syntax highlighting, matching VS Code's light and dark themes for a seamless visual experience. Multi-language & Behavior Profiles
Secure API Key StorageYour Gemini API key is stored via VS Code's SecretStorage API, which uses the OS-native keychain (macOS Keychain, Windows Credential Vault, Linux libsecret). InstallationBuild the VSIX packageIf you are building GeminiX from source, create the VSIX package before installing it:
This generates a
Quick StartAsk about selected code
Start a voice conversation
Attach a file with
|
| Button | Action |
|---|---|
| Mute | Toggles microphone audio on/off. The mic icon shows a slash when muted. |
| Stop | Immediately halts audio playback and tells Gemini to stop. Gemini remains silent until your next question. |
Copy & Apply Code
Every code block in a response includes two action buttons:
- Copy — Copies the code to your clipboard.
- Apply — If you have a selection in the active editor, replaces it with the code block. If the original selection from the question is still valid, GeminiX reuses it.
Chat History
- Save — Chats are saved automatically after each turn.
- Reopen — Open the history panel and click any saved chat to restore the transcript and continue the conversation.
- Delete — Remove individual chats from the history panel.
Configuration
Access settings via VS Code's Settings UI (Cmd+, / Ctrl+,) and search for liveline, or click the gear button in GeminiX.
| Setting | Default | Description |
|---|---|---|
liveline.voice |
Kore |
Gemini voice for audio responses (30+ options). |
liveline.preferredLanguage |
English |
Preferred response language (18 supported). |
liveline.behavior |
professional |
Conversation style: professional, friendly, or expert. |
liveline.autoInterrupt |
true |
Automatically interrupt Gemini's response when you start speaking. |
Development
# Clone the repository
git clone https://github.com/yogeshrjk/AI-code-explainer-VS-Code-Extension-.git
cd AI-code-explainer
# Install dependencies
npm install
# Type-check and lint
npm run check
# Build the extension
npm run build
# Package into a VSIX
npm run package
Technical Architecture
| Component | Details |
|---|---|
| AI Model | gemini-3.1-flash-live-preview via the Gemini Live API (WebSocket). |
| Voice Input | Raw PCM16 audio at 16 kHz, captured via @picovoice/pvrecorder-node in the extension host. |
| Audio Playback | PCM16 audio at 24 kHz, rendered in the webview via the Web Audio API. |
| Microphone | Runs in the VS Code extension host (webviews don't have direct mic access). Cross-platform binaries included in the VSIX. |
| Indexing | In-memory lexical and filename index over workspace source files (up to 1,500 files, 384 KB each). Kept current by a FileSystemWatcher. |
| Text Input | Real-time text via Live API realtimeInput. |
| Image Input | Live API video-frame input for attached images (JPEG, PNG, WebP). |
| Rendering | Shiki syntax highlighting with VS Code's light-plus and dark-plus themes. |
| History | Local JSON files in VS Code's globalStorage. |
Privacy
GeminiX is designed with privacy in mind:
- The selected code and workspace snippets are sent directly to the Gemini API only.
- The conversation transcript shows only the file name and line range — never the actual code.
- Your API key is stored in your OS keychain via VS Code SecretStorage.
- All chat history is stored locally on your machine.
License
MIT