- Notifications
You must be signed in to change notification settings - Fork1
License
NotificationsYou must be signed in to change notification settings
memvid/memvid-extension
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
AI-powered codebase search and Q&A for VS Code, powered byMemvid.
Index your workspace once, then ask questions about your code in natural language.
- One-Click Indexing - Index your entire workspace with a single button click
- Incremental Indexing - Only re-index changed files for faster updates
- Natural Language Q&A - Ask questions about your codebase in plain English
- Semantic Search - Find code by meaning, not just keywords
- Sidebar Chat - Interactive chat panel for ongoing conversations
- Context Menu Actions - Right-click on code to ask questions, explain, or find similar code
- Cloud Sync - Sync your index to Memvid cloud for backup and sharing
- Keyboard Shortcuts - Quick access with
Cmd+Shift+M(macOS) orCtrl+Shift+M
- Install the extension
- Open a workspace/folder
- Click "Index Workspace" in the Memvid sidebar
- Start asking questions!
- Node.js 18+
- OpenAI API Key (required for Q&A, optional for local embeddings)
Add to your VS Code settings (Cmd+,):
{"memvid.openaiApiKey":"sk-..."}Or set the environment variable:
export OPENAI_API_KEY="sk-..."
| Command | Shortcut | Description |
|---|---|---|
Memvid: Index Workspace | - | Index all code files in workspace |
Memvid: Ask Question | Cmd+Shift+A | Ask a question about your code |
Memvid: Open Chat Panel | Cmd+Shift+M | Open the sidebar chat |
Memvid: Search Codebase | - | Search your indexed code |
Memvid: Show Index Stats | - | View index statistics |
Memvid: Clear Index | - | Delete the index and start fresh |
Memvid: Sync to Cloud | - | Sync your index to Memvid cloud |
Memvid: Configure Cloud Sync | - | Set up API key and Memory ID |
Memvid: Show Sync Status | - | View cloud sync status |
Memvid: Set OpenAI API Key | - | Set your OpenAI API key |
Memvid: Clear OpenAI API Key | - | Clear your OpenAI API key |
Memvid: Report Issue | - | Report a bug or issue |
Memvid: Ask about this code | - | Ask a question about selected code (context menu) |
Memvid: Explain this code | - | Get an explanation of selected code (context menu) |
Memvid: Find similar code | - | Find similar code in your codebase (context menu) |
Memvid: Add to context | - | Add selected code to chat context (context menu) |
| Setting | Default | Description |
|---|---|---|
memvid.indexPath | .memvid/codebase.mv2 | Path to the index file |
memvid.openaiApiKey | - | OpenAI API key for embeddings and Q&A |
memvid.embeddingModel | bge-small | Embedding model (bge-small,nomic,openai-small) |
memvid.llmModel | openai:gpt-4o-mini | LLM for answering questions |
memvid.includePatterns | ["**/*.ts", ...] | File patterns to index |
memvid.excludePatterns | ["**/node_modules/**", ...] | File patterns to exclude |
memvid.autoIndex | false | Auto-index on workspace open |
memvid.maxFileSize | 100000 | Max file size in bytes to index |
memvid.apiKey | - | Memvid API key for cloud sync |
memvid.memoryId | - | Memory ID for cloud sync |
memvid.autoSync | false | Auto-sync to cloud after indexing |
memvid.batchSize | 100 | Batch size for indexing (higher = faster) |
memvid.parallelReads | 10 | Number of files to read in parallel during indexing |
memvid.incrementalIndexing | true | Enable incremental indexing (only index changed files) |
memvid.dashboardUrl | https://api.memvid.com | Memvid API endpoint URL |
- "How does authentication work in this project?"
- "Where is the database connection configured?"
- "What API endpoints are available?"
- "Explain the user registration flow"
- "Find all error handling code"
- Indexing: Memvid reads your source files, generates embeddings, and stores them in a portable
.mv2file- Supports incremental indexing to only process changed files
- Parallel file reading for faster indexing
- Configurable batch sizes for optimal performance
- Search: Uses hybrid BM25 + vector search to find relevant code
- Q&A: Retrieves relevant code snippets and uses an LLM to synthesize answers
- Cloud Sync: Syncs your index to Memvid cloud using tickets for version control
Sync your indexed codebase to Memvid cloud for backup, sharing, and access from other devices.
- Get your API key frommemvid.com/dashboard
- Create a Memory in the dashboard to get a Memory ID
- Run
Memvid: Configure Cloud Syncand enter your credentials - Run
Memvid: Sync to Cloudto sync your index
{"memvid.apiKey":"mv2_your_api_key_here","memvid.memoryId":"mem_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","memvid.autoSync":true}- Your code stays local - only indexed in a local
.mv2file - Search queries are processed locally using embeddings
- Only Q&A requests are sent to OpenAI (with relevant code context)
- No telemetry or analytics by default
# Install dependenciesnpm install# Compile TypeScriptnpm run compile# Watch modenpm run watch# Package extensionnpm run package
Build and Run:
npm run compile# Press F5 in VS Code to launch extension in development modeTest Features:
- Set API key via
Memvid: Set OpenAI API Key - Index workspace via
Memvid: Index Workspace - Ask questions via chat panel or
Memvid: Ask Question - Test context menu actions (right-click on selected code):
- Ask about this code
- Explain this code
- Find similar code
- Add to context
- Test cloud sync functionality
- View index statistics
- Set API key via
RunMemvid: Index Workspace command first.
Setmemvid.openaiApiKey in settings orOPENAI_API_KEY env var.
- Increase
memvid.maxFileSizethreshold - Add more patterns to
memvid.excludePatterns - Consider indexing specific folders only
Licensed under the Apache License, Version 2.0. SeeLICENSE for details.
About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published