pcr start

Start the file watcher

pcr start

Starts the passive file watcher. Monitors Cursor and Claude Code session files and sends new prompts to your PCR.dev dashboard.

What it watches

ToolPath
Cursor~/.cursor/projects/<slug>/agent-transcripts/**/*.jsonl
Claude Code~/.claude/projects/<slug>/*.jsonl

Project filtering

Only sessions from projects registered with pcr init are captured. Sessions from other projects are silently skipped.

Running in the background

Keep pcr start running while you code. You can run it as a background process:

# Background with nohup
nohup pcr start > ~/.pcr-dev/watcher.log 2>&1 &

# Or add to your shell profile to start automatically
echo 'pcr start &' >> ~/.zshrc

For a better developer experience, add pcr start to your project's dev script alongside your other watchers.

State file

The watcher tracks processed file line counts in ~/.pcr-dev/cursor-state.json and ~/.pcr-dev/claude-state.json. This ensures prompts are never double-inserted across restarts.