GitHub Copilot Insights Dashboard
Version: 2.0.3 | Author: Jadhav Shubhamm | License: MIT
VS Code Compatibility: ^1.95.0 | Publisher: ShubhJ
A comprehensive Visual Studio Code extension that provides a unified dashboard for managing your GitHub Copilot accounts, browsing chat sessions & history, monitoring real AI usage statistics, viewing MCP server connections, inspecting language models, and managing authentication — all from within VS Code. 100% offline — no internet or external API calls required.
Table of Contents
Features
📊 Account Overview
- View all connected GitHub, Microsoft, and GitHub Enterprise accounts
- See account connection status, session information, and OAuth scopes
- Detect which account is actively used by Copilot (via state.vscdb analysis)
- View trusted extensions per account with last-used timestamps
🤖 GitHub Copilot & Chat Integration
- Monitor GitHub Copilot and Copilot Chat installation status and version
- Identify the active Copilot account with detection strategy details
- View real-time usage metrics: AI rate, accepted suggestions, chat edits
- Interactive charts with period filters (Today / This Week / This Month / All)
💬 Chat Sessions & History
- Browse all Copilot chat sessions across every workspace
- View sessions by type: Agent, Ask, Chat, Plan, and Custom Agents (e.g. @powerpages)
- Expandable session cards with full message history (user prompts + Copilot responses)
- Agent session summaries: request count, checkpoints, file edits, code insertions/deletions
- Reopen sessions directly from the dashboard (workspace-scoped)
- Workspace-aware: current workspace sessions highlighted with left border; other workspaces shown with lock icon
- Filter by type, workspace, search text; sort by newest, oldest, most messages, or name
- Data sourced from
agentSessions.model.cache, chatSessions/*.json, and chatEditingSessions/
📈 AI Stats — Real Usage Data
- Read real AI usage statistics from VS Code's workspace
state.vscdb files
- Track: AI characters vs typed characters, acceptance rate, inline suggestions, chat edits
- Multi-workspace support with workspace filter dropdown
- Six interactive charts: AI Rate, AI vs Typed, Accepted Suggestions, Chat Edits, Sessions
- Same data shown by VS Code's built-in
editor.aiStats.enabled feature
- Setting detection: checks
editor.aiStats.enabled on every refresh (sidebar, dashboard, and AI Stats tab)
- Warning banners in Copilot & Chat tab, AI Stats tab, and Sidebar when setting is disabled
- Stale data detection: if the setting was on earlier but is now off, warns with the last recorded date
- Old data still displayed below the warning (not hidden)
- FAQ in Info tab: explains why data may be missing, whether it can be recovered, and why the setting resets
🔌 MCP Server Monitoring
- Auto-discover all Model Context Protocol (MCP) servers from:
- Workspace
.vscode/mcp.json
- Workspace root
mcp.json and vscode/mcp.json
- User home
~/.vscode/mcp.json
- VS Code settings (
mcp.servers)
- View server name, command, args, type, and config file location
- See all MCP-provided tools with descriptions and tags
- One-click open of any MCP config file from the dashboard
- List all available LLMs via
vscode.lm.selectChatModels()
- View model vendor, family, version, and max input/output token limits
- Context window token analysis with real
countTokens() measurements
- List all registered LM tools (MCP tools + built-in extension tools)
🔧 Readiness Checks
- Automatic validation: accounts, Copilot extensions, sessions, models, MCP
- Clear status indicators: ✅ Ready / ⚠️ Warning / ❌ Error
- Actionable issue descriptions to resolve problems
- Compact sidebar with weekly AI metrics (AI rate, sessions, suggestions, chat edits)
- AI Stats disabled warning — shows a banner when
editor.aiStats.enabled is off
- Copilot Chat status and last-used account
- Models count and MCP servers list
- Quick action button: Open Full Dashboard
- Loading screen with spinning animation and random AI-themed inspiration messages
- Error screen with troubleshooting steps and admin contact info
Quick Start
- Install the extension from a
.vsix file or development mode (see INSTALLATION_GUIDE.md)
- Click the GitHub icon in the Activity Bar to open the sidebar
- Click "Open Full Dashboard" for the detailed view
- Sign in to GitHub if prompted — all tabs populate automatically
Dashboard Tabs
| Tab |
What It Shows |
| Overview |
Copilot extension status, version, active account, AI usage metrics with interactive charts, recent chat sessions (workspace-scoped), AI Stats disabled warning |
| Chat Sessions |
All Copilot chat sessions across workspaces — Agent, Ask, Chat, Plan & Custom Agent modes. Inline chat viewer with full message history, model attribution, timestamps. Reopen sessions from current workspace |
| AI Stats |
Real AI data from state.vscdb — AI rate, typed vs AI chars, suggestions, chat edits, sessions. Filterable by workspace & period. Warning banner when editor.aiStats.enabled is off |
| Accounts |
All GitHub / Microsoft / GHE accounts, session status, trusted extensions per account, Copilot policy |
| Model & MCP |
Available language models with vendor, family, version, max input token limits. All configured MCP servers, registered tools, config file paths, authentication status |
| Info |
Data sources explanation, impact of missing components, important notes, FAQ about editor.aiStats.enabled |
Commands
Access via Command Palette (Ctrl+Shift+P):
| Command |
Description |
GHCP: Open Account & Usage Dashboard |
Opens the full dashboard panel in the editor |
GHCP: Refresh Account Data |
Refreshes all account data, stats, and MCP configs |
GHCP: Switch GitHub Account |
Quick pick: sign in/out of GitHub, sign out of Microsoft, manage accounts |
A status bar item ($(github) GHCP) is also available — click it to open the dashboard.
Account Management
Switching Accounts
- Run
GHCP: Switch GitHub Account from the Command Palette
- Choose: Sign out of GitHub, Sign out of Microsoft, Sign in to GitHub, or Manage Accounts
Adding Accounts
- Click "Sign in to GitHub" or "Sign in to Microsoft" from the sidebar or dashboard
- Follow the browser authentication flow
- Dashboard auto-refreshes when authentication sessions change
Active Copilot Detection
The extension uses a 3-strategy approach to detect your active Copilot account:
- State DB scan — reads
github.copilot-github key from VS Code's state.vscdb
- Default session — queries
vscode.authentication.getSession() (silent)
- Usage timestamp — finds the account with the most recent
github.copilot-chat trusted extension entry
Data Sources
| Data |
Source |
Notes |
| Accounts |
vscode.authentication API + state.vscdb |
Local VS Code auth providers |
| Copilot status |
vscode.extensions API |
Extension install/version/active state |
| AI Stats |
Workspace Storage state.vscdb files |
aiStats key — same as editor.aiStats.enabled |
| Chat Sessions |
agentSessions.model.cache + chatSessions/*.json + chatEditingSessions/ |
Agent/Ask/Chat/Plan/Custom Agent sessions across all workspaces |
| Models |
vscode.lm.selectChatModels() |
All registered language models |
| Tools |
vscode.lm.tools |
MCP + extension-provided tools |
| MCP Servers |
.vscode/mcp.json + settings.json |
File and settings-based configs |
| Active Account |
state.vscdb binary scan |
Reads Copilot policy + trusted extensions |
All data is sourced locally from VS Code. No external API calls, no internet required.
Privacy & Security
- 100% offline — no data is sent to any external server
- Access tokens are partially masked (
••••••XXXX) — never fully exposed
- State database reads are read-only — the extension never writes to
state.vscdb
- MCP configurations are read directly from local files
- All webview content uses Content Security Policy with nonces
Troubleshooting
| Problem |
Solution |
| Dashboard not loading |
Run GHCP: Refresh Account Data or Developer: Reload Window |
| Sidebar shows loading spinner |
Wait a moment — data is being fetched from local storage. If stuck, reload VS Code |
| No accounts showing |
Sign in via sidebar buttons or VS Code Accounts (bottom-left) |
| AI Stats charts empty |
Enable editor.aiStats.enabled in VS Code settings; restart VS Code |
| AI Stats showing old data only |
editor.aiStats.enabled may have been turned off — check Settings and re-enable it. Data from the disabled period is lost |
| Chat Sessions tab empty |
Start a Copilot Chat conversation first; sessions are read from local storage |
| Session Open button not working |
Sessions can only be reopened from their original workspace |
| MCP servers not appearing |
Check .vscode/mcp.json exists; refresh dashboard |
| Models tab empty |
Ensure Copilot is installed and you're signed in to GitHub |
| Data seems stale |
VS Code writes stats at session end — restart or switch workspaces to flush |
| Two refresh buttons in sidebar |
Disable the production extension if DEV is also installed |
Support
- Author: Jadhav Shubhamm — AI Developer
- Email: sj.techconnect@gmail.com
- Debug: Check VS Code Output panel → "GHCP Dashboard" or Developer Tools console
🦊 CodeFox — Driving AI-Powered Delivery Excellence
© 2026 All rights reserved. MIT License.
| |