Skip to content

Bug: cursor-agent provider fails to track Composer 2 usage #142

@AlexZKR

Description

@AlexZKR

When using Cursor's Composer 2 (specifically the new Plan/Build features), running codeburn --provider cursor-agent results in a completely empty dashboard, even on the "All Time" tab.

Root Cause Analysis

In src/providers/cursor-agent.ts, CodeBurn is hardcoded to look for .txt files exclusively inside agent-transcripts folders:

const transcriptDir = join(projectsDir, entry.name, 'agent-transcripts')
// ...
const transcriptEntries = await readdir(transcriptDir, { withFileTypes: true })
for (const transcript of transcriptEntries) {
  if (!transcript.name.endsWith('.txt')) continue

While Composer 2 still actively creates these agent-transcripts/ directories for backwards compatibility, it no longer writes any text files into them. Running find ~/.cursor/projects -type f -name "*.txt" reveals that Composer 2 is now only saving text/JSON files in two other directories:

  • /terminals/ (Bash execution logs)
  • /agent-tools/ (Tool call payloads)

Because the agent-transcripts/ folders exist but are empty, CodeBurn silently skips them without throwing the "unrecognized cursor-agent transcript format" error, resulting in an empty dashboard.

Steps to Reproduce

  1. Generate code using Composer 2 (Plan/Build feature) in Cursor.
  2. Run codeburn --provider cursor-agent.
  3. Press 5 to switch to the "All Time" view.
  4. The dashboard shows "No usage data found for All Time."

System Info

  • OS: Ubuntu
  • Node: v22.16.0
  • Cursor: Latest version with Composer 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions