diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-09-17 20:52:40 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-09-17 20:52:40 -0700 |
| commit | 034fae28cda8a246d80491919cc79398cb5540b8 (patch) | |
| tree | b68c0aff890040dc6912d0ab320aac46528a1902 /.opencode | |
| parent | 3bb3bd7b393a4127a81f37c3f5b2d1f14c9abf63 (diff) | |
docs(opencode): fix pin example, local-path examples, and V2 log troubleshooting
Restore the version-pin example for both config keys and state the V2
constraint (the pinned ref must include OpenCode V2 support). Replace the
`~/...` local-package examples with absolute paths: OpenCode does not expand
`~`, and a tilde entry is installed as a package spec rather than loaded as a
directory. Point V2 troubleshooting at `opencode run --standalone
--print-logs`, since plugin logs are server-role and hidden without
`--standalone`. Describe where the bootstrap lands when native compaction
retains user messages under the default keep budget.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to '.opencode')
| -rw-r--r-- | .opencode/INSTALL.md | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/.opencode/INSTALL.md b/.opencode/INSTALL.md index ea6c9bb..99000e4 100644 --- a/.opencode/INSTALL.md +++ b/.opencode/INSTALL.md @@ -69,23 +69,31 @@ use skill tool to load brainstorming ## Updating -### OpenCode V1 - -OpenCode V1 installs Superpowers through a git-backed package spec. Some OpenCode +OpenCode installs Superpowers through a git-backed package spec. Some OpenCode and Bun versions pin that resolved git dependency in a lockfile or cache, so a restart may not pick up the newest Superpowers commit. If updates do not appear, clear OpenCode's package cache or reinstall the plugin. -### OpenCode V2 +To pin a specific version, add a tag or commit to the spec (same form for the +V1 `plugin` key and the V2 `plugins` key): + +```json +{ + "plugin": ["superpowers@git+https://github.com/obra/superpowers.git#v6.3.0"] +} +``` -For V2, a pin must reference a release or immutable commit containing this -integration. +On V2, pin a tag or commit that includes OpenCode V2 support; `v6.3.0` and +earlier releases load only on V1. ## Troubleshooting ### Plugin not loading -1. Check logs: `opencode run --print-logs "hello" 2>&1 | grep -i superpowers` +1. Check logs. V1: `opencode run --print-logs "hello" 2>&1 | grep -i superpowers`. + V2 loads plugins in the background server, so add `--standalone`: + `opencode run --standalone --print-logs "hello" 2>&1 | grep -i superpowers`, + or inspect `~/.local/share/opencode/log/opencode.log` filtering for `role=server`. 2. Verify the plugin line in your `opencode.json` 3. Make sure you're running a recent version of OpenCode @@ -101,14 +109,15 @@ package: npm install superpowers@git+https://github.com/obra/superpowers.git --prefix "$HOME\.config\opencode" ``` -Then use the installed package path in `opencode.json` for your OpenCode -version: +Then use the absolute path of the installed package in `opencode.json` for your +OpenCode version. OpenCode does not expand `~`; a `~/...` entry is treated as a +package name, not a local directory. **V1:** ```json { - "plugin": ["~/.config/opencode/node_modules/superpowers"] + "plugin": ["C:\\Users\\<you>\\.config\\opencode\\node_modules\\superpowers"] } ``` @@ -116,7 +125,7 @@ version: ```json { - "plugins": ["~/.config/opencode/node_modules/superpowers"] + "plugins": ["C:\\Users\\<you>\\.config\\opencode\\node_modules\\superpowers"] } ``` |
