Cursor integration

Capture prompts from Cursor

PCR captures Cursor prompts by watching the agent transcript JSONL files Cursor writes to disk, plus the Cursor SQLite session store. No Cursor settings change is required for basic capture.

File watcher (recommended)

Cursor stores agent transcripts at:

~/.cursor/projects/<project-slug>/agent-transcripts/<session-uuid>/<session-uuid>.jsonl

Run pcr init in your project and pcr start. That's it.

MCP integration (optional)

For per-call metadata, add the PCR MCP server to Cursor's settings:

  • Open Cursor Settings (Cmd+,)
  • Search for "MCP"
  • Add a new server: command pcr, args ["mcp"]

What's captured

FieldValue
sourcecursor
session_idCursor conversation UUID
prompt_textYour message to the AI
response_textThe AI's response (thinking + answer)
modele.g. claude-4.6-opus, when present in the transcript
branchCaptured from git at prompt time
changed_filesComputed from the in-memory diff tracker per response

Cursor's session store doesn't expose structured tool calls the way Claude Code's transcripts do, so the Tool calls sidebar pane reads (tool calls aren't captured for cursor) for cursor drafts. Changed-file attribution still works because PCR runs its own git status diff tracker against your registered repos.