GitHub Copilot Usage Tracker Extension
A VS Code extension that tracks your GitHub Copilot usage and displays it in the status bar with a daily target comparison.
Features
- Status Bar Display: Shows your current usage percentage and daily target in the bottom-right status bar
- Daily Target Calculation: Automatically calculates your target usage based on the current day of the month (goal: 100% by month end)
- Status Indicator: Visual feedback showing if you're ahead or behind target
- Usage Entry: Simple command to enter your current usage percentage
- Usage History: View all your recorded usage entries for the current month
- Persistent Storage: All data is saved and persists across VS Code sessions
Usage
Enter Current Usage
- Click on the status bar item (bottom-right corner)
- Enter your current GitHub Copilot usage percentage
- The status bar will update to show your progress vs. target
Or use the Command Palette (Cmd+Shift+P / Ctrl+Shift+P):
Enter Current Copilot Usage
View History
Use the Command Palette:
Show Copilot Usage History
(graph icon) 45.5% | Target: 33.3% | Ahead by 12.2%
The status bar shows:
- Current usage percentage
- Daily target percentage
- Whether you're ahead or behind and by how much
Color Indicators
- No color: On track or ahead of target
- Yellow/Warning: Behind target by 5-10%
- Red/Error: Behind target by more than 10%
Development
Prerequisites
- Node.js (v18 or higher)
- VS Code (v1.85.0 or higher)
Setup
cd extension
npm install
npm run compile
Running in Development
- Open the
extension folder in VS Code
- Press F5 to launch the Extension Development Host
- The extension will be loaded in the new window
Building
npm run compile
Installation
- Package the extension:
npm install -g @vscode/vsce
vsce package
- Install the
.vsix file in VS Code:
- Open VS Code
- Go to Extensions (Cmd+Shift+X / Ctrl+Shift+X)
- Click the "..." menu → "Install from VSIX..."
- Select the generated
.vsix file
License
MIT
| |