pcr init
Register a project (or every nested git repo) for capture
# Single repo cd ~/code/my-app && pcr init # Org workspace — registers every git repo found one level down cd ~/code && pcr init # Stop tracking the current directory pcr init --unregister
Tags the current directory as a tracked project. If the directory is not itself a git repo but has subdirectories that are, all of those are registered in one shot — the typical case for org-level workspaces.
What it does
- –Computes a slug from the directory path
- –Registers the project locally in
~/.pcr-dev/projects.json - –If logged in, creates the project in your dashboard via the
register_projectRPC - –Detects the git remote URL and attaches it to the project
- –Stores the Supabase project UUID locally so the watcher can tag prompts
✦
Two teammates running pcr init in the same repo are matched by git remote URL and added to the same project automatically — no manual team membership step.
Slug computation
| Path | Cursor slug | Claude slug |
|---|---|---|
| /Users/alice/Desktop/my-app | Users-alice-Desktop-my-app | -Users-alice-Desktop-my-app |
| /Users/alice/work/PCR.dev | Users-alice-work-PCR-dev | -Users-alice-work-PCR.dev |
ℹ
If you're not logged in, the project is registered locally only. Prompts are still scoped correctly but won't be tagged with project_id until you log in.