A macOS app that processes Cursor analytics CSV files to filter and merge data for Swift extension usage.
- Multiple File Support: Drag and drop multiple CSV files at once or select multiple files
- Swift Extension Filtering: Automatically filters rows to only include entries where Swift is used as the "Most Used Apply Extension" or "Most Used Tab Extension"
- Smart Model Selection: Determines the most-used model by analyzing total usage statistics across all days
- Data Merging: Combines multiple days of data for the same user (by email) by summing numeric columns
- Column Removal: Automatically removes "Is Active" and "Client Version" columns from the output
- CSV Export: Export the processed data to a new CSV file
- Generate Project: Run
tuist generateto create the Xcode workspace - Launch the App: Open
CursorStatsTool.xcworkspacein Xcode or build and run the project - Load CSV: Drag and drop your CSV file(s) onto the app, or click the drop area to select multiple files
- Process Data: Click the "Process Data" button to filter and merge the data
- Export: Click "Export Processed CSV" to save the results to a new file
The app expects CSV files with the following columns (matching Cursor analytics export format):
- Date
- User ID
- Is Active
- Chat Suggested Lines Added
- Chat Suggested Lines Deleted
- Chat Accepted Lines Added
- Chat Accepted Lines Deleted
- Chat Total Applies
- Chat Total Accepts
- Chat Total Rejects
- Chat Tabs Shown
- Tabs Accepted
- Edit Requests
- Ask Requests
- Agent Requests
- Cmd+K Usages
- Subscription Included Reqs
- API Key Reqs
- Usage Based Reqs
- Bugbot Usages
- Most Used Model
- Most Used Apply Extension
- Most Used Tab Extension
- Client Version
The processed CSV will contain:
- All original columns except "Is Active" and "Client Version"
- Data merged by email address (summing numeric columns)
- Only rows where Swift is used as an extension
- "Date" column set to "Merged" for combined entries
- macOS 14.7 or later
- Xcode 16.0 or later (for building)
- Tuist 4.59.2 or later
- Install Tuist:
brew install tuist - Generate the Xcode workspace:
tuist generate - Open
CursorStatsTool.xcworkspacein Xcode - Select your target device (Mac)
- Build and run (⌘+R)
This project uses Tuist for project generation and management. The main configuration is in Project.swift.
Key benefits:
- Reproducible builds: No more merge conflicts in
.xcodeprojfiles - Modular architecture: Easy to add new targets and dependencies
- Generated files: The
Derived/folder contains auto-generated helper files - Version control friendly: Only source files and
Project.swiftare tracked
If you have a CSV with multiple days of data for john.doe@gotinder.com:
- Day 1: 10 Chat Suggested Lines Added
- Day 2: 15 Chat Suggested Lines Added
- Day 3: 5 Chat Suggested Lines Added
The output will show one row for john.doe@gotinder.com with 30 Chat Suggested Lines Added (10+15+5).