🕒 Codeaily - First AI + Human Coding Activity Tracker
Measuring Human + AI Coding Power - A comprehensive VS Code extension that intelligently tracks your coding time, keystrokes, and AI assistance usage with beautiful real-time statistics, advanced analytics, and intelligent AI activity detection.

✨ Features
📊 Intelligent Activity Tracking
- Precision Time Tracking: Monitors active coding time with 1-second accuracy and window focus awareness
- AI Activity Detection: Advanced algorithms to distinguish between human typing and AI-generated code
- Smart Session Management: Automatic session boundary detection with configurable inactivity thresholds
- Multi-File Support: Tracks activity across all open files including untitled documents
- Real-Time Analytics: Live session data with immediate feedback
🔄 Cloud Synchronization
- Backend Integration: Seamlessly sync with Codeaily servers for data backup and cross-device access
- Secure Authentication: JWT-based authentication with API key management
- Automatic Sync: Configurable periodic synchronization (5-120 minutes)
- Offline-First: Full functionality even without internet connection
- Conflict Resolution: Smart merging of data from multiple devices
🎨 Beautiful Dashboard
- Modern UI: Clean, professional interface with dark/light theme support
- Real-Time Updates: Live session data with 10-second auto-refresh
- Project Analytics: Per-project breakdown with daily activity charts
- Authentication Status: Clear indication of login status and sync progress
- Performance Metrics: Detailed statistics on user vs AI activity
💾 Robust Data Management
- SQLite Database: Persistent local storage in
~/.codeaily/
- Automatic Migration: Seamless updates from older database schemas
- Session Persistence: Data survives VS Code restarts and system crashes
- Export Capabilities: Access to raw data through SQLite database
- Privacy-First: All sensitive data stored locally with optional cloud sync
🚀 Installation
From VS Code Marketplace
ext install codeaily
📈 Usage
Quick Start
- Install the extension - tracking starts automatically
- Click the clock icon in the status bar for detailed statistics
- Start coding - all activity is tracked in real-time with AI detection
The status bar shows:
- Time Display: Today's total coding time (e.g.,
2h 45m
)
- Activity Indicators:
U:2m
- Time since last user activity
AI:30s
- Time since last AI activity
- Connection Status:
$(cloud)
- Connected to Codeaily servers
$(cloud-offline)
- Working offline
$(sync~spin)
- Sync in progress
Statistics Dashboard
Access via clicking the status bar clock or Ctrl+Shift+P
→ Codeaily: Show Statistics
Dashboard Features:
- 🔥 Current Session: Live data from your ongoing session
- 📅 Today's Total: Combined data from all sessions today
- 📊 All-Time Stats: Historical data across all projects
- 📁 Project Breakdown: Per-project analytics with 7-day activity charts
- 🔐 Authentication: Login status and sync controls
- ☁️ Sync Status: Cloud synchronization information
🎯 Commands
Access via Command Palette (Ctrl+Shift+P
/ Cmd+Shift+P
):
Core Features
Codeaily: Show Statistics
- Open the comprehensive dashboard
Codeaily: Reset Coding Time Stats
- Reset data for current project
Authentication & Sync
Codeaily: Login to Server
- Connect to Codeaily cloud services
Codeaily: Logout from Server
- Disconnect from cloud
Codeaily: Sync Now
- Force immediate synchronization
Codeaily: Sync Status
- View detailed sync information
📊 Tracked Metrics
Time Metrics
- Total Coding Time: Active time spent in VS Code (window-focused only)
- AI-Assisted Time: Time when AI tools were actively helping
- User Time: Time spent on manual coding activities
- Session Duration: Current uninterrupted coding session
Activity Metrics
- User Keystrokes: Manual typing and editing by the developer
- AI Characters: Code and text generated through AI assistance
- AI Lines: Number of lines added by AI tools
- Editor Actions: File operations, navigation, and commands
- Extension Actions: Interactions with VS Code extensions
Intelligence Features
- AI Detection Confidence: Accuracy of AI vs human activity classification
- Typing Speed Analysis: User typing patterns for improved detection
- Session Continuity: Smart session boundary detection
- Project Context: Per-project activity breakdown
🔧 Configuration
The extension works out-of-the-box with sensible defaults. Configure via VS Code Settings (Ctrl+,
):
Core Settings
{
"codeailyTracker.apiBaseUrl": "https://codeaily.com",
"codeailyTracker.syncIntervalMinutes": 15,
"codeailyTracker.enableAutoSync": true
}
Default Behavior
- Inactivity Threshold: 2 minutes (user), 3 minutes (AI)
- Session Gap: 30 minutes for new session creation
- AI Detection: 100+ character threshold with pattern analysis
- Auto-Save: Every 30 seconds + milestone saves
- Database Location:
~/.codeaily/coding-data.sqlite
Backend Integration
- Set API URL in settings (default:
https://codeaily.com
)
- Enable auto-sync if desired
- Run command:
Codeaily: Login to Server
- Create account or login with existing credentials
- Data syncs automatically at configured intervals
📄 License
MIT License - see LICENSE file for details.
🤝 Support & Contributing
🌟 Acknowledgments
- VS Code Team for the excellent extension API
- SQLite for reliable local data storage
- TypeScript for enhanced development experience
- Open Source Community for inspiration and feedback
Happy Coding! 🚀
Track your progress, understand your patterns, and optimize your development workflow with Codeaily.