Skip to content

feat: add Cursor adapter#4

Open
danperks wants to merge 1 commit into
gricha:mainfrom
danperks:add-cursor-adapter
Open

feat: add Cursor adapter#4
danperks wants to merge 1 commit into
gricha:mainfrom
danperks:add-cursor-adapter

Conversation

@danperks
Copy link
Copy Markdown

Summary

  • Adds a cursor adapter that reads Cursor IDE agent transcripts from ~/.cursor/projects/*/agent-transcripts/
  • Handles all three on-disk layouts: nested (<uuid>/<uuid>.jsonl), legacy flat (<uuid>.jsonl), and subagent (subagents/<uuid>.jsonl)
  • Parses the Claude Code-compatible JSONL format, extracts user messages, and strips system context tags (<user_query>, <timestamp>, <user_info>, etc.) to isolate the actual user text
  • Supports --since filtering via both file mtime and in-message <timestamp> tags
  • Registers the adapter in the adapters index and updates help text

Test plan

  • npm run build compiles without errors
  • npm run typecheck passes
  • devrage scan --agent cursor successfully discovers and parses local Cursor transcripts (1623 messages scanned)
  • devrage scan --agent cursor --since 2026-05-09 correctly filters by date (281 messages)
  • devrage scan (all adapters) includes cursor without errors
  • devrage scan --help shows cursor in the agent list

Made with Cursor

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]>
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.

1 participant