Claude Code integration

Capture prompts from Claude Code

Works with every Claude Code install: native installer, Homebrew, WinGet, and npm.

File watcher (recommended)

Claude Code stores session files at:

~/.claude/projects/<project-slug>/<session-id>.jsonl

Run pcr init in your project and pcr start.

MCP integration (optional)

claude mcp add pcr -- pcr mcp

What's captured

FieldValue
sourceclaude-code
session_idFrom the JSONL file
modele.g. claude-sonnet-4-5
tool_callsRead, Write, Edit, Bash, etc. — with file paths
prompt_textYour message
response_textClaude's response
permission_modeWhich Claude Code mode was active (default / acceptEdits / plan)

Claude Code transcripts include model and tool-call data, so all the sidebar panes are populated when using the file watcher.

Permission modes

ValueModeDescription
defaultNormalClaude asks for permission before each tool call
acceptEditsAuto-acceptClaude runs tool calls without asking. Toggle with Shift+Tab.
planPlanClaude proposes a plan without executing tools. Toggle with Shift+Tab or /plan.

Multi-repo attribution

PCR matches every file path in Claude's tool calls against your registered projects. A single prompt that touches frontend/ and backend/ is tagged to both, surfaces in pcr show from either repo, and is included in both repos' diffs at push time. See Multi-repo attribution for the full model.