Repository navigation
Report Cursor activity with --source cursor - #3
Merged
Merged
Conversation
A new loader (src/cursor.mjs) reads Cursor's agent transcripts (~/.cursor/projects/<project>/agent-transcripts/<id>/<id>.jsonl), written by both the Cursor CLI and the agent in the Cursor editor. --source all now covers Claude Code, GitHub Copilot and Cursor. Cursor keeps token usage on its servers, so its sessions count in activity only: sessions, prompts, tools, skills, slash commands and adoption. - Activity records (one per prompt) count sessions that have no tokens. - Reports on data without any token usage leave out the token, cost, context, request and model columns instead of showing zeros. - Skills you invoke come from the skill block Cursor attaches to your message; skills the agent uses are reads of a SKILL.md in a skills folder Cursor loads from (.cursor/skills, .claude/skills, ...). - Each record gets the time of the prompt that started its turn; the project comes from the CLI's session metadata or the decoded folder name. - Recommendations get a Cursor profile; without tokens only the workflow checks (step-by-step coding, skills) can fire. - Adoption labels the Cursor CLI and editor, and outside Claude-only reports the phase descriptions say "the agent" instead of "Claude". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Cursor as a third source. A new loader (
src/cursor.mjs) reads Cursor's agent transcripts (~/.cursor/projects/<project>/agent-transcripts/<id>/<id>.jsonl). Both the Cursor CLI and the agent in the Cursor editor write them.--source allnow covers Claude Code, GitHub Copilot and Cursor.Activity only
Cursor keeps token usage on its servers, so its local logs have no tokens, models or cost. Cursor sessions count in activity only: sessions, prompts, tools, skills, slash commands and adoption.
How the transcripts map onto the reports
/githubin the CLI, or picked in the editor). Exact.SKILL.mdin a skills folder Cursor loads from (.cursor/skills,.claude/skills,.agents/skills, …). A read made only to look at a skill still counts.~/.cursor/chats/…/meta.json) where it exists. Otherwise the transcript's folder name, decoded against the folders on disk.CallDynamicToolcalls count under the tool they call; those outside Cursor's namespace count as MCP tools.SwitchModeandCreatePlanmark plan mode.Not available from Cursor's logs
Tokens, cost, models, context size, hooks, compactions, subagents and PRs. The transcripts have no tool output, so there are no PR links. IDE chats from before Cursor wrote transcripts live only in the editor's SQLite database and aren't read; reading it would need Node 22's
node:sqlite.Tests
npm test: 48 pass.test/cursor.test.mjscovers:SKILL.mdthat must not count as a use;🤖 Generated with Claude Code