"Feeling like a stranger on my own team, surrounded by brilliant minds whose talents hide in code and commits."
Transform your repository into a team expertise map. Discover who knows what, reveal hidden collaboration patterns, and get AI-powered management insights β all from your git history.
- π File Expert Discovery β Right-click any file to find who knows it best
- π§ Team Expertise Analysis β AI-powered profiles with communication styles, specializations, and collaboration patterns
- π Management Insights β Actionable recommendations: bus factor risks, growth opportunities, efficiency gaps
- π€ GitHub Copilot SDK Integration β Uses the Copilot SDK with custom tools for deep, context-aware analysis
- π€ Agent & Bot Detection β Automatically identifies bot/agent contributors (Dependabot, Copilot, Renovate) with visual distinction
- π Dark-themed Reports β Exportable HTML reports with SVG charts and an X-Ray visual identity
- β‘ Smart Fallback Chain β Copilot SDK β BYOK (OpenAI/Anthropic/Azure) β GitHub Models API β Local-only analysis
Team X-Ray reads your git history β commits, contributors, file ownership β and feeds it to an AI agent through custom tools. The agent calls back into your repo data to build expertise profiles, identify risks, and generate management-ready insights.
| Priority | Provider | Requirements |
|---|---|---|
| 1 | GitHub Copilot SDK | Copilot CLI installed + authenticated |
| 2 | BYOK | Your own API key (OpenAI, Anthropic, or Azure) |
| 3 | GitHub Models API | GitHub token with models access |
| 4 | Local-only | No AI β git stats only |
From Marketplace:
ext install AndreaGriffiths.teamxray
Or install from the VS Code Marketplace
| Command | How |
|---|---|
| Analyze Repository | Command Palette β Team X-Ray: Analyze Repository Expertise |
| Find File Expert | Right-click a file β Team X-Ray: Find Expert for This File |
| Team Overview | Command Palette β Team X-Ray: Show Team Expertise Overview |
| Set API Key | Command Palette β Team X-Ray: Set GitHub Token |
| Export Report | Click export button in the analysis webview |
| Setting | Description | Default |
|---|---|---|
teamxray.aiProvider |
AI provider: copilot, openai, anthropic, azure, github-models |
copilot |
teamxray.byokModel |
Model override for BYOK providers | β |
teamxray.byokBaseUrl |
Custom API endpoint for BYOK | β |
For the best experience, install and authenticate the Copilot CLI:
# Install
curl -fsSL https://gh.io/copilot-install | bash
# Authenticate
copilot auth loginTeam X-Ray will automatically detect and use the Copilot SDK when available.
Run Team X-Ray: Set API Key from the Command Palette. Keys are stored securely in VS Code's SecretStorage.
src/
βββ extension.ts # Entry point, command registration
βββ core/
β βββ copilot-service.ts # Copilot SDK integration (5 custom tools)
β βββ expertise-analyzer.ts # Analysis orchestrator + fallback chain
β βββ expertise-webview.ts # VS Code webview UI + standalone HTML export
β βββ git-data-service.ts # Git history data gathering
βββ types/
β βββ expert.ts # TypeScript interfaces
βββ utils/
βββ error-handler.ts # Error handling + telemetry
βββ resource-manager.ts # Disposable resource management
βββ validation.ts # Input validation
The extension registers 5 tools that the Copilot agent calls during analysis:
| Tool | Description |
|---|---|
get_contributors |
Contributor profiles with commit counts and activity dates |
get_recent_commits |
Recent commit history with authors and messages |
get_file_experts |
Per-file ownership and expertise breakdown |
get_repo_stats |
Repository-level statistics (size, languages, age) |
get_collaboration_patterns |
Cross-contributor collaboration and review patterns |
git clone https://github.com/AndreaGriffiths11/teamxray.git
cd teamxray
npm install
npm run compile
# Press F5 in VS Code to launch Extension Development HostRequirements: Node.js 20+, VS Code 1.100.0+
Stop being a stranger on your own team. π¬
