Skip to content

docs: research Cursor token support#13

Merged
Miss-you merged 1 commit into
mainfrom
sgsnowfly1993/you-6-research-cursor-token-stats
Mar 12, 2026
Merged

docs: research Cursor token support#13
Miss-you merged 1 commit into
mainfrom
sgsnowfly1993/you-6-research-cursor-token-stats

Conversation

@Miss-you

Copy link
Copy Markdown
Owner

Summary

  • add a research/design doc for Cursor token support in codetok
  • compare the strongest open-source references: Tokscale and Cursor Lens
  • document why Cursor dashboard CSV is the credible source for agent tokens and why Tab token counting is not supported by the local artifacts that were inspected

Validation

  • GOCACHE=/tmp/codetok-gocache make fmt
  • GOCACHE=/tmp/codetok-gocache make vet
  • GOCACHE=/tmp/codetok-gocache make test
  • GOCACHE=/tmp/codetok-gocache make build
  • GOCACHE=/tmp/codetok-gocache make lint (skipped automatically because golangci-lint is not installed)

Notes

  • this ticket delivers research only, not the Cursor parser implementation
  • local Cursor artifacts inspected during research included state.vscdb, Cursor Tab.log, and ~/.cursor/ai-tracking/ai-code-tracking.db

Copilot AI review requested due to automatic review settings March 12, 2026 16:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a research/design document to guide how codetok could credibly support Cursor token accounting, focusing on trustworthy data sources and fit with the project’s current “local artifacts first” architecture.

Changes:

  • Documented findings from inspecting Cursor local artifacts and why they’re insufficient for token totals.
  • Compared open-source references (Tokscale and Cursor Lens) and extracted implications for codetok.
  • Proposed an implementation path centered on importing/parsing Cursor dashboard CSV exports, with optional future sync.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Miss-you
Miss-you merged commit e9ac6e4 into main Mar 12, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants