pcr init
Register a project (or all sub-repos) for prompt capture
# Single repo cd your-project pcr init # Org workspace with multiple repos cd your-org-folder pcr init # registers all sub-directories with .git
Registers the current directory as a tracked project. If the directory is not a git repo but contains sub-directories that are, all of them are registered in one shot — useful for org-level workspaces.
✦
If two teammates run pcr init in the same repo, PCR matches by git remote URL and adds both to the same project automatically. No manual team membership required.
What it does
- –Computes the project's Cursor slug from the directory path
- –Registers the project locally in
~/.pcr-dev/projects.json - –If logged in, creates the project in your PCR.dev dashboard via the
register_projectRPC - –Detects your git remote URL and attaches it to the project
- –Stores the Supabase project UUID locally so the watcher can tag prompts
Slug computation
The slug is derived from your directory path by stripping the leading / and replacing / and . with -:
| Path | Cursor slug |
|---|---|
| /Users/alice/Desktop/my-app | Users-alice-Desktop-my-app |
| /Users/alice/work/PCR.dev | Users-alice-work-PCR-dev |
| /home/bob/projects/api | home-bob-projects-api |
Local registry
~/.pcr-dev/projects.json
{
"projects": [
{
"path": "/Users/alice/Desktop/my-app",
"cursorSlug": "Users-alice-Desktop-my-app",
"claudeSlug": "Users-alice-Desktop-my-app",
"name": "my-app",
"registeredAt": "2026-03-23T...",
"projectId": "uuid-from-supabase"
}
]
}ℹ
If you're not logged in, the project is registered locally only. Prompts will still be scoped to this project, but won't be tagged with project_id in the database until you run pcr login.