feat: add Cursor adapter#4
Open
danperks wants to merge 1 commit into
Open
Conversation
Reads agent transcripts from ~/.cursor/projects/*/agent-transcripts/. Handles nested (<uuid>/<uuid>.jsonl), flat (<uuid>.jsonl), and subagent (subagents/<uuid>.jsonl) layouts. Extracts user messages from the Claude Code-compatible JSONL format, stripping system context tags to isolate the actual user query. Co-authored-by: Cursor <[email protected]>
smirea
added a commit
to smirea/devrage
that referenced
this pull request
Jun 3, 2026
Apply upstream gricha#4 as a single squash commit. Kept the existing pi adapter while resolving the help text overlap. Co-Authored-By: AI <[email protected]>
smirea
added a commit
to smirea/devrage
that referenced
this pull request
Jun 3, 2026
Apply useful parts of upstream gricha#3 as a single squash commit. Kept gricha#4 transcript parsing and added workspace/global Cursor SQLite reads plus Bun fallback for SQLite adapters. Co-Authored-By: AI <[email protected]>
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.
Summary
cursoradapter that reads Cursor IDE agent transcripts from~/.cursor/projects/*/agent-transcripts/<uuid>/<uuid>.jsonl), legacy flat (<uuid>.jsonl), and subagent (subagents/<uuid>.jsonl)<user_query>,<timestamp>,<user_info>, etc.) to isolate the actual user text--sincefiltering via both file mtime and in-message<timestamp>tagsTest plan
npm run buildcompiles without errorsnpm run typecheckpassesdevrage scan --agent cursorsuccessfully discovers and parses local Cursor transcripts (1623 messages scanned)devrage scan --agent cursor --since 2026-05-09correctly filters by date (281 messages)devrage scan(all adapters) includes cursor without errorsdevrage scan --helpshowscursorin the agent listMade with Cursor