|
| 1 | +# CommitLoom Usage Metrics |
| 2 | + |
| 3 | +CommitLoom now includes comprehensive usage metrics to help you understand your usage patterns, track costs, and measure productivity improvements. |
| 4 | + |
| 5 | +## Introduction |
| 6 | + |
| 7 | +The metrics system is designed to be: |
| 8 | +- **Private**: All data is stored locally; nothing is sent to external servers |
| 9 | +- **Transparent**: Clear data collection with easy access to view your metrics |
| 10 | +- **Useful**: Provides insights about cost savings, time saved, and usage patterns |
| 11 | + |
| 12 | +## Available Metrics |
| 13 | + |
| 14 | +CommitLoom tracks the following metrics: |
| 15 | + |
| 16 | +### Basic Metrics |
| 17 | +- Total commits generated |
| 18 | +- Total tokens used |
| 19 | +- Total cost in EUR |
| 20 | +- Total files processed |
| 21 | +- Estimated time saved |
| 22 | + |
| 23 | +### Repository Metrics |
| 24 | +- Most active repositories |
| 25 | +- Usage frequency by repository |
| 26 | +- File changes by repository |
| 27 | + |
| 28 | +### Model Usage Metrics |
| 29 | +- Token usage by model |
| 30 | +- Cost breakdown by model |
| 31 | +- Efficiency metrics (tokens per commit, cost per file) |
| 32 | + |
| 33 | +### Processing Metrics |
| 34 | +- Batch vs. single commits |
| 35 | +- Average processing time |
| 36 | +- Success rates |
| 37 | + |
| 38 | +## Viewing Metrics |
| 39 | + |
| 40 | +To view your metrics, use the `stats` command: |
| 41 | + |
| 42 | +```bash |
| 43 | +loom stats |
| 44 | +``` |
| 45 | + |
| 46 | +This will display a summary of your usage statistics. To see more detailed information, you can use the debug flag: |
| 47 | + |
| 48 | +```bash |
| 49 | +loom stats -d |
| 50 | +``` |
| 51 | + |
| 52 | +## Data Storage |
| 53 | + |
| 54 | +Metrics are stored locally in the following location, based on your operating system: |
| 55 | + |
| 56 | +- **Linux**: `~/.local/share/commitloom/metrics/` |
| 57 | +- **macOS**: `~/Library/Application Support/commitloom/metrics/` |
| 58 | +- **Windows**: `%APPDATA%\commitloom\metrics\` |
| 59 | + |
| 60 | +The data is stored in two JSON files: |
| 61 | +- `commit_metrics.json`: Contains detailed information about each commit |
| 62 | +- `usage_statistics.json`: Contains aggregated statistics about your usage |
| 63 | + |
| 64 | +## Privacy |
| 65 | + |
| 66 | +CommitLoom respects your privacy: |
| 67 | +- No telemetry or data collection occurs without your knowledge |
| 68 | +- All metrics are stored locally on your machine |
| 69 | +- No data is ever sent to external servers |
| 70 | +- You can delete the metrics files at any time to reset your statistics |
| 71 | + |
| 72 | +## How Time Savings Are Calculated |
| 73 | + |
| 74 | +CommitLoom estimates time savings based on the assumption that writing a quality commit message manually takes approximately 3 minutes on average. The time saved is calculated as: |
| 75 | + |
| 76 | +``` |
| 77 | +time_saved = estimated_manual_time - actual_processing_time |
| 78 | +``` |
| 79 | + |
| 80 | +Where: |
| 81 | +- `estimated_manual_time` is 3 minutes (180 seconds) |
| 82 | +- `actual_processing_time` is the time taken by CommitLoom to generate the commit message |
| 83 | + |
| 84 | +This provides a conservative estimate of how much time you're saving by using CommitLoom. |
| 85 | + |
| 86 | +## Future Enhancements |
| 87 | + |
| 88 | +In future versions, we plan to enhance the metrics system with: |
| 89 | +- Interactive visualizations |
| 90 | +- Export capabilities (CSV, JSON) |
| 91 | +- More detailed analysis by file type |
| 92 | +- Team-based aggregated statistics (while maintaining privacy) |
| 93 | +- Integration with development workflows and productivity tools |
0 commit comments