VibeCodeTracker
A VS Code extension that tracks lines of code written manually vs AI-generated, helping developers understand their productivity patterns and AI assistance usage.
Features
- Real-time Line Counting: Tracks manual and AI-generated lines as you code
- AI Detection: Sophisticated algorithms to distinguish between human and AI-generated code
- Undo Detection: Properly handles undoing AI-generated code
- Git Diff Integration: Uses git diff algorithms for accurate change detection
- Session Management: Track coding sessions with detailed analytics
- Export Capabilities: Export data for analysis and reporting
- Performance Optimized: Lightweight with configurable settings
Installation
From VSIX Package
code --install-extension publishing/vibecodetracker-1.0.0.vsix
From VS Code Marketplace
Search for "VibeCodeTracker" in the VS Code Extensions marketplace.
Usage
The extension automatically starts tracking when you begin coding. Use the following commands:
VibeCodeTracker: Show Line Counts
- Display current counts
VibeCodeTracker: Export Counts
- Export data to file
VibeCodeTracker: Start New Session
- Begin new tracking session
VibeCodeTracker: Reset All Counters
- Reset all counters
VibeCodeTracker: Generate Detailed Report
- Create comprehensive report
Configuration
Access settings via File > Preferences > Settings
and search for "vibecodetracker":
- Enable Debug Logging: Detailed logging for troubleshooting
- Enable Sophisticated Diff Analysis: Git diff-based AI change detection
- Diff Rewrite Threshold: Threshold for complete rewrite detection (0.0-1.0)
Project Structure
├── src/ # TypeScript source code
├── docs/ # Documentation files
├── testing/ # Test configurations and scripts
├── publishing/ # Publishing and deployment files
├── images/ # Extension icons and assets
└── out/ # Compiled JavaScript (generated)
Development
Setup
npm install
npm run compile
Testing
npm test # Run all tests
npm run test:unit # Run unit tests only
npm run test:coverage # Run with coverage
Building
npm run package # Create .vsix package
Documentation
All documentation is available in the docs/
folder:
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
npm test
- Submit a pull request
Support
For issues and questions, please check the documentation or create an issue in the repository.