AI Git Reporter
A VS Code extension that analyzes your Git changes using AI and generates human-readable work summaries. Get a practical, conversational report of what you changed and why—without code review critique.
Features
🤖 Human-Focused AI Analysis
- Conversational Tone: Reports read like a developer's status update, not an AI code review
- What & Why: Explains what changed and the reasoning behind it
- Customizable Templates: Edit the template to match your team's communication style
- Per-File Breakdown: Clear summary of changes organized by file
📊 Token Usage Monitoring
- Monthly Quota Tracking: Monitor your Groq API token usage similar to GitHub Copilot
- Visual Usage Bar: See your consumption at a glance with percentage and progress bar
- Automatic Monthly Reset: Usage automatically resets each month
- Configurable Limits: Set your own monthly quota (default: 300,000 tokens)
🔐 Secure API Key Management
- Secret Storage: API keys stored securely using VS Code's secret storage API
- In-Sidebar Management: Add, update, or remove your Groq API key directly from the sidebar
- Masked Display: Keys shown partially masked for security
- No Plain-Text Config: Keys never stored in settings.json
📜 History & Organization
- Report History: All analyses automatically saved to
~/.vscode-ai-git-reporter/history/
- Quick Access: Browse and load past reports from the sidebar
- Searchable: Find previous analyses by date and file count
- One-Click Delete: Clean up history entries you no longer need
💬 Modern Chat Interface
- Sidebar View: Persistent chat-style interface in VS Code sidebar
- Message Bubbles: Clean, animated message display
- Copy to Clipboard: One-click copy for sharing reports
- Markdown Rendering: Formatted code blocks, headers, and emphasis
Getting Started
1. Install the Extension
Search for "AI Git Reporter" in the VS Code Extensions marketplace and install it.
2. Get a Groq API Key
- Visit console.groq.com
- Sign up or log in
- Generate a new API key
- Copy the key
- Open the AI Git Reporter sidebar (click the Git commit icon in the Activity Bar)
- Paste your API key in the "API Key Settings" section
- Click Save API Key
4. Analyze Your Changes
- Make changes to your code and stage them with Git
- Click the Analyze button (🔍) in the sidebar title bar
- Wait for the AI to analyze your diff
- View the report in the chat interface
Usage
Commands
- AI Git Reporter: Analyze Current Diff - Analyze staged/uncommitted changes
- AI Git Reporter: Edit Template - Customize the report format
- AI Git Reporter: View History - Browse past analyses
- Refresh History - Reload the history list
- Delete History Item - Remove a saved report
Token Usage
Used: 41% ██████████░░░░░░░░░
122,394 / 300,000 tokens
Prompt: 45,231 | Completion: 77,163
Resets: Dec 1, 2024
Monitor your monthly Groq API usage with real-time updates.
API Key Settings
Securely manage your Groq API key:
- Add or update your key
- View masked key (e.g.,
gsk_abc1...xyz9)
- Delete key from secure storage
Recent Reports
Quick access to your last 5 analyses:
- Click Open to view a report
- Click Delete to remove an entry
Configuration
Settings
aiGitReporter.quotaLimit
- Type:
number
- Default:
300000
- Description: Monthly token usage limit
Template Customization
Edit your report template:
- Run command:
AI Git Reporter: Edit Template
- Modify
~/.vscode-ai-git-reporter/template.md
- Save changes—the next analysis will use your template
Example Template:
### What I Changed
{changes}
### Why
{reasoning}
### Files Modified
{files}
The AI will follow your template's tone and structure exactly.
How It Works
- Collect Diffs: Extension reads your staged/uncommitted Git changes
- Apply Template: Your custom template (or default) is loaded
- AI Analysis: Groq's
llama-3.3-70b-versatile model analyzes the diff
- Track Usage: Token consumption is recorded and displayed
- Save Report: Analysis is saved to history for future reference
- Display Results: Report appears in the chat interface
Privacy & Security
- API Keys: Stored in VS Code's secure Secret Storage, never in plain text
- Local History: Reports saved locally to
~/.vscode-ai-git-reporter/
- No Telemetry: Extension does not collect or transmit user data
- Open Source: Full source code available for review
Requirements
- VS Code: Version 1.106.0 or higher
- Git: Git repository with changes
- Groq API Key: Free tier available at console.groq.com
Known Limitations
- Only analyzes staged/uncommitted changes (not committed history)
- Requires internet connection for AI analysis
- Token usage depends on diff size (large diffs = more tokens)
- Monthly quota resets are local (not synced with Groq's billing)
Development
Setup
npm install
npm run compile
Run Extension
Press F5 to launch Extension Development Host
Watch Mode
npm run watch
File Structure
src/
├── extension.ts # Main activation point
├── sidebarView.ts # Sidebar webview UI
├── diffCollector.ts # Git diff collection
├── llm.ts # Groq API client
├── templateManager.ts # Template loading/saving
├── historyManager.ts # Report history storage
├── usageManager.ts # Token usage tracking
├── apiKeyManager.ts # Secure API key storage
└── types.ts # TypeScript interfaces
Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request with clear description
License
MIT License - see LICENSE file for details
Credits
Support
Made with ❤️ for developers who want practical AI assistance, not critique.