Terminal First-Run (No Guessing)
Always run PG commands in the project root (the folder that contains pg.ps1).
PowerShell
Set-Location "C:\real\project\root"
pg install backend --target "."
# or: pg install frontend --target "."
.\pg.ps1 start -Yes
.\pg.ps1 map-structure
.\pg.ps1 integration-init # existing/legacy repo only when missing
.\pg.ps1 backend-start
.\pg.ps1 frontend-start
.\pg.ps1 status
CMD
cd /d "C:\real\project\root"
pg install backend --target "."
REM or: pg install frontend --target "."
powershell -ExecutionPolicy Bypass -File ".\pg.ps1" start -Yes
powershell -ExecutionPolicy Bypass -File ".\pg.ps1" map-structure
powershell -ExecutionPolicy Bypass -File ".\pg.ps1" integration-init
powershell -ExecutionPolicy Bypass -File ".\pg.ps1" backend-start
powershell -ExecutionPolicy Bypass -File ".\pg.ps1" frontend-start
powershell -ExecutionPolicy Bypass -File ".\pg.ps1" status
Start gate: legacy/half-built repos now block session start by default when map docs are missing or stale. Run .\pg.ps1 map-structure.
Integration ledger bootstrap: new PG installs now scaffold the shared frontend/backend integration files automatically. Older repos may need a one-time .\pg.ps1 integration-init if Memory-bank/frontend-integration.md does not exist yet.
Important: backend-start and frontend-start do not replace pg install or .\pg.ps1 start. They only claim roles inside an already bootstrapped project root.
Plan routing: the frontend/backend integration workflow and secure review workflow are paid workflow surfaces for Pro, Team, and Enterprise.
Warning-only override: .\pg.ps1 start -Yes -EnforcementMode warn
Narrate startup guard: the extension now detects the nearest AGENTS.md/pg.ps1 context, auto-runs startup once per context per UTC day, and reruns when you move into a new nested repo. Manual retry: Narrate: Run Startup For Current Context.
Tip: run .\pg.ps1 help to see the exact command set available in that project profile.
`.\pg.ps1 update` is profile-dependent. Use it only when `help` lists `update`.
Planning rule: when scope changes, add a REQ tag in Memory-bank/project-spec.md and map it to milestones in Memory-bank/project-details.md.