Skip to content
| Marketplace
Sign in
Visual Studio Code>Azure>DevCenter-BrainNew to Visual Studio Code? Get it now.
DevCenter-Brain

DevCenter-Brain

Mohaimen Khan

|
13 installs
| (0) | Free
Intelligent DevCenter integration with Azure AI Search for code insights, documentation, and repository indexing
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DevCenter Brain - Code Intelligence Extension

A VS Code extension that provides code analysis and documentation search using Azure AI Search and GitHub Copilot models. The extension analyzes code symbols, understands implementation patterns, and searches indexed documentation to answer questions about your codebase.

Features Provided

Symbol Analysis

  • Code understanding using GitHub Copilot models (GPT-4o)
  • Complete context extraction including logic flow and dependencies
  • Pattern detection (factory, singleton, observer)
  • Cross-reference analysis with detailed usage patterns

Documentation Search

  • Semantic search using Azure AI Search
  • Contextual results with AI-generated summaries
  • Relevance scoring and filtering
  • Multi-index support (documentation, commits, PRs, work items, code changes)

GitHub Copilot Chat Integration

Ask questions about code symbols and documentation in Copilot Chat:

  • @devcenter-brain Explain the symbol "CosmosFeedProcessorFactory" at line 11
  • @devcenter-brain how does authentication work?
  • @devcenter-brain what are the deployment best practices?

Query Generation

  • Generates multiple search queries from code context
  • Prioritizes documentation comments (JSDoc, XML, Python docstrings)
  • Falls back to code analysis when documentation is unavailable
  • Adapts to different programming languages and frameworks

Requirements

  • VS Code 1.85.0 or higher
  • Azure DevCenter access
  • Azure AI Search Service with configured indexes
  • GitHub Copilot subscription (for Language Model features)

Quick Start

  1. Install the extension from the VSIX file or marketplace
  2. Sign in to Azure using the DevCenter Brain panel
  3. Associate your repository with a DevCenter project
  4. Use the chat participant by typing @devcenter-brain in Copilot Chat

Using the Chat Participant

Ask questions about code symbols in your active editor:

@devcenter-brain Explain the symbol "AuthenticationService" at line 45
@devcenter-brain how does the change feed processor work?
@devcenter-brain troubleshooting authentication errors

The extension will:

  1. Analyze the symbol using VS Code LSP and Copilot models
  2. Extract implementation details and usage patterns
  3. Search documentation for related information
  4. Provide AI-generated summaries of relevant docs

See COMPREHENSIVE_CHAT.md for detailed usage guide.

Configuration

Essential Settings

  • azureAiSearch.languageModel.enabled: Enable AI analysis (default: true)
  • azureAiSearch.languageModel.family: Preferred model (gpt-4o, gpt-4o-mini, claude-3.5-sonnet)
  • azureAiSearch.languageModel.maxCodeContextLines: Lines of code to analyze (default: 30)
  • azureAiSearch.hover.enabled: Enable hover tooltips for symbols
  • azureAiSearch.cache.enabled: Cache search results for performance

Advanced Settings

  • azureAiSearch.languageModel.maxDocCommentLength: Maximum documentation comment length (default: 500)
  • azureAiSearch.languageModel.maxDocCommentLines: Maximum doc comment lines (default: 10)
  • azureAiSearch.search.indexes: Which indexes to search (documents, commits, pullRequests, etc.)

See LANGUAGE_MODEL_INTEGRATION.md for detailed configuration.

Available Commands

Command Description
DevCenter-Brain: Sign In with Microsoft Authenticate with Azure DevCenter
DevCenter-Brain: Sign Out Sign out from Azure
DevCenter-Brain: Associate Repository with Project Link workspace to DevCenter project
DevCenter-Brain: Refresh Projects Refresh available projects list
DevCenter-Brain: Clear Cache Clear cached search results
DevCenter-Brain: Show Diagnostics Display extension diagnostics and logs

How It Works

Symbol Analysis Pipeline

  1. Symbol Extraction: Uses VS Code Language Server Protocol (LSP) to get symbol metadata
  2. Context Gathering: Extracts complete function/class definition and surrounding code
  3. AI Analysis: Sends code context to Copilot models for deep analysis
  4. Pattern Recognition: Identifies design patterns and architectural roles
  5. Usage Tracking: Finds all references and categorizes usage types (call, read, write)
  6. Natural Description: Generates concise technical description of symbol purpose

Documentation Search Pipeline

  1. Query Generation: Creates multiple search queries based on symbol analysis
  2. Semantic Search: Queries indexed documentation with vector embeddings
  3. Result Filtering: Filters results by relevance score and quality
  4. AI Summarization: Generates contextual summaries using Copilot models
  5. Result Presentation: Shows only high-quality, relevant documentation

Architecture

Built with:

  • TypeScript 5.3+ for type-safe development
  • VS Code Extension API for editor integration
  • VS Code Language Model API for Copilot integration
  • Azure MSAL for secure authentication
  • Azure Search Documents SDK for semantic search
  • VS Code LSP for symbol analysis

Key components:

  • EnhancedSymbolAnalyzer: Deep code analysis and context extraction
  • LmQueryGenerator: AI-powered search query generation
  • ComprehensiveChatService: Orchestrates analysis and search
  • SymbolAnalyzer: LSP-based symbol metadata extraction

Development

Prerequisites

node >= 18.x
npm >= 9.x

Build

npm install
npm run compile

Watch Mode

npm run watch

Package

npm run package

Run Tests

npm test

Documentation

  • Comprehensive Chat Guide - Detailed usage instructions
  • Language Model Integration - LM API details
  • Architecture Overview - System design and components
  • Implementation Summary - Technical implementation

Troubleshooting

No symbol analysis shown

  • Ensure GitHub Copilot is installed and active
  • Check azureAiSearch.languageModel.enabled is true
  • Verify cursor is on a valid symbol (class, function, method)

Documentation search returns no results

  • Verify search index contains documents
  • Check project association is correct
  • Try broader search terms
  • Review Output panel (View → Output → DevCenter Brain) for errors

Authentication issues

  • Sign out and sign in again
  • Check Azure DevCenter permissions
  • Verify network connectivity to Azure services

License

MIT

Support

For issues and feature requests, visit GitHub Issues.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft