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
| Field | Value |
|---|---|
| source | claude-code |
| session_id | From the JSONL file |
| model | e.g. claude-sonnet-4-5 |
| tool_calls | Read, Write, Edit, Bash, etc. — with file paths |
| prompt_text | Your message |
| response_text | Claude's response |
| permission_mode | Which 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
| Value | Mode | Description |
|---|---|---|
default | Normal | Claude asks for permission before each tool call |
acceptEdits | Auto-accept | Claude runs tool calls without asking. Toggle with Shift+Tab. |
plan | Plan | Claude 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.