Skip to content

AI-generated code in Cursor is incorrectly tracked as human coding time #464

@bgwd666

Description

@bgwd666

WakaTime Issue: AI-generated code in Cursor is incorrectly tracked as human coding time

🐛 Bug Description

When using the Cursor AI editor (VS Code fork), code generated or inserted by AI assistants is being tracked as human coding time instead of being flagged or excluded as AI-assisted code. This results in inflated and inaccurate coding statistics.

📋 Environment

  • Editor: Cursor (VS Code fork, latest version)
  • OS: macOS 14.6.0 (also affects other platforms)
  • WakaTime CLI Version: v1.131.0
  • WakaTime Extension Version: 25.4.0
  • API Key Status: Valid and working

🔄 Steps to Reproduce

  1. Install WakaTime extension in Cursor editor
  2. Configure WakaTime with valid API key
  3. Use Cursor's AI features to generate code:
    • Use Cursor Composer to write functions
    • Use AI Chat to generate large code blocks
    • Accept AI suggestions and completions
  4. Check WakaTime dashboard after a few minutes

✅ Expected Behavior

One of the following should happen:

  • AI-generated code should be marked separately in statistics (e.g., with an "AI-assisted" flag)
  • AI-generated code time should be tracked in a separate category
  • There should be a setting to exclude AI-generated code from statistics
  • At minimum, provide transparency about what percentage of code is AI-generated

❌ Actual Behavior

  • All code is tracked as human-written, regardless of whether it was:
    • Manually typed by the user
    • Generated by Cursor AI
    • Inserted via AI chat
    • Accepted from AI suggestions
  • Statistics are inflated: In my testing, I generated 1,600+ lines of complex algorithms using AI in about 30 minutes, and WakaTime reported 1 hour of "coding time"

🎯 Impact

This issue affects:

  • Accuracy of personal statistics: Users can't track their actual coding productivity
  • Team/company metrics: Inflated statistics when using AI tools
  • Trust in WakaTime: Statistics become unreliable for AI-powered editors

🔗 Additional Context

Cursor is becoming increasingly popular among developers, and its deep AI integration makes this issue critical for maintaining accurate coding statistics. Many developers rely on WakaTime for productivity tracking, and this bug undermines that core functionality.

📸 Screenshots

Image

Thank you for your attention to this issue! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions