A Visual Studio Code extension that provides real-time detection and classification of AI models used in GitHub Copilot and other AI-powered extensions. Supports accurate model identification using VS Code's native storage and settings.
- π Real-Time Model Detection: Accurately identifies current AI model from VS Code's application storage
- π§ Dynamic Model Registry: Supports 41+ model IDs across major AI providers
- β‘ High Performance: Direct integration with VS Code's SQLite storage
- π Comprehensive Classification: Detects model family, vendor, and capabilities
- π Live Updates: Monitor model changes in real-time
- π― High Confidence Detection: Uses actual VS Code settings and Chat Participant API
- π‘οΈ Multi-Installation Support: Works with VS Code Stable, Insiders, and VSCodium
Source: Model IDs and formats match official VS Code Chat Model enums from microsoft/vscode-copilot-chat configurationService.ts
- GPT-4.1 (2025-04-14) (VS Code Chat Model)
- GPT-4o mini (VS Code Chat Model)
- GPT-5 (VS Code Chat Model)
- GPT-5 mini (VS Code Chat Model)
- GPT-5-Codex (VS Code Chat Model)
- O1 (VS Code Chat Model)
- O1 mini (VS Code Chat Model)
- O3 mini (VS Code Chat Model)
- Claude 3.5 Sonnet (VS Code Chat Model)
- Claude 3.7 Sonnet (VS Code Chat Model)
- Claude Haiku 4.5 (VS Code Chat Model)
- Claude Opus 4 (VS Code Chat Model)
- Claude Opus 4.1 (VS Code Chat Model)
- Claude Sonnet 4 (VS Code Chat Model)
- Claude Sonnet 4.5 (VS Code Chat Model)
- Gemini 2.5 Pro (VS Code Chat Model)
- Gemini 2.0 Pro Experimental (VS Code Chat Model)
- Gemini 2.0 Flash (VS Code Chat Model)
- DeepSeek Chat (VS Code Chat Model)
- Grok Code Fast 1 (VS Code Chat Model)
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "AI Model Detector"
- Click Install
Or install from VS Code Marketplace: AI Model Detector Extension
const detector = vscode.extensions.getExtension('thisis-romar.vscode-ai-model-detector');
const api = await detector.activate();
const result = await api.detectCurrentModel();
console.log('Current Model:', result.currentModel);// Start monitoring with 5 second intervals
const sessionId = await api.startModelMonitoring(5000);
// Later, stop monitoring
await api.stopModelMonitoring(sessionId);const modelInfo = await api.getModelCapabilities('claude-3.5-sonnet');
console.log('Capabilities:', modelInfo.capabilities);- Queries VS Code's SQLite storage database (
state.vscdb) - Looks for
chat.currentLanguageModel.panelkey - Parses model identifier to determine family and provider
- Cross-references with dynamic registry of 41+ models
- Returns comprehensive model information with high confidence
- Real-time updates for new model versions
- Format normalization (dots vs hyphens)
- Comprehensive metadata including:
- Token limits
- Special capabilities
- Context windows
- Model families
- Vendor information
Each detected model includes:
interface ModelInfo {
id: string; // Unique model identifier
name: string; // Display name
vendor: ModelVendor; // OpenAI, Anthropic, Google, etc.
family: ModelFamily; // GPT, Claude, Gemini, etc.
maxTokens: number; // Maximum context length
capabilities: ModelCapability[]; // Supported features
version?: string; // Model version if available
accuracy?: string; // Detection accuracy level
}No configuration required for basic usage. The extension automatically detects models from VS Code's native storage.
- Visual Studio Code >= 1.85.0
- GitHub Copilot extension (for Copilot model detection)
- Active AI extension using VS Code's Chat Participant API
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes with proper attribution
- Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project follows the GIT-ATT-001 v1.1.0 standard for AI attribution. All commits should include proper AI attribution blocks:
AI-Attribution:
- Model: <model-id> (Vendor)
- Session: <chat-session-uuid or manual-commit-timestamp>
- Context: <development context>
Co-authored-by: <Platform-Name> (<model-id>) <admin+llm-[normalized-id]@emblemprojects.com>
This project is licensed under the MIT License - see the LICENSE file for details.
- π« Issue Tracker: GitHub Issues
- π Documentation: Wiki
- π€ Discussions: GitHub Discussions
Note: Model IDs and formats match official VS Code Chat Model enums. For complete documentation of the model registry, see docs/OFFICIAL_MODEL_REGISTRY.md.