-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hey, thanks again for porting PAI to OpenCode!
I got a bit confused during installation, but after digging through the docs I think I understand the intended workflow now. Might be worth making it clearer for others.
The confusion
The Quick Start shows:
git clone ...
bun run .opencode/PAIOpenCodeWizard.ts
opencodeThis creates everything in the project directory. For someone with an existing OpenCode setup, it's not obvious how to integrate PAI with their global config.
The answer (buried in Manual Installation)
Step 4 of INSTALL.md has the key bit:
ln -s $(pwd)/.opencode ~/.opencodeThis is actually a great approach — keeps ~ clean, config lives in a repo you control, upgrades are just git pull. But it's easy to miss if you follow the Quick Start.
Suggestion
For existing OpenCode users, the symlink step is the important part. A few options:
- Add a note to Quick Start — "Already using OpenCode? See the symlink setup in Manual Installation Step 4"
- Wizard option — Ask "Create symlink to ~/.opencode?" during setup
- Separate section — "Adding PAI to an existing OpenCode installation"
The original PAI uses cp -r .claude ~/, but honestly the symlink approach is better for maintenance. Just needs a bit more visibility in the docs.
Thanks again!