933 B
933 B
Verify OpenCode
Use this workflow when the user asks whether OpenCode is connected to OpenPets.
Steps
- Confirm whether the user wants global or project-local setup.
- For project-local setup, configure with:
openpets configure --agent opencode --pet <pet-id> --cwd <project-path> --yes
- Check likely project files if needed:
<project>/.opencode/opencode.jsonc
<project>/.opencode/openpets.md
- Check likely global files if needed:
~/.config/opencode/opencode.json
~/.config/opencode/opencode.jsonc
- Ask the user to quit and restart OpenCode.
- Verify with
openpets_statusor:
openpets status
If the CLI is not installed globally, replace openpets with npx -y @open-pets/cli@latest.
Notes
- OpenCode config is loaded at startup; changes are not usually hot-reloaded.
- Prefer the OpenPets CLI configure command over manually editing OpenCode config.