Skip to content

Commit b74904f

Browse files
committed
docs: use official Git plugin installation
1 parent 885a524 commit b74904f

3 files changed

Lines changed: 29 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,23 @@ Small, independently installable OpenCode V2 plugins maintained in one Bun works
77
| `packages/reviewer` | Reviews permission requests with an LLM before prompting the user. |
88
| `packages/subagent-model` | Lets a parent select the model and reasoning variant for a child session. |
99

10-
Each package can be installed by its directory path. Published packages remain independent even though they share this repository.
10+
## Install
11+
12+
[OpenCode's plugin manager](https://opencode.ai/v2/docs/plugins#manage) accepts npm-compatible Git package specifications, including packages in monorepo subdirectories:
13+
14+
```sh
15+
opencode plugin add 'github:joonix/opencode-plugins#main::path:packages/reviewer'
16+
opencode plugin add 'github:joonix/opencode-plugins#main::path:packages/subagent-model'
17+
opencode plugin list
18+
```
19+
20+
Use a tag or full commit hash instead of `main` when you want to pin updates. See the package README files for configuration and behavior.
21+
22+
OpenCode 2.0.3 has a Git dependency preparation issue with monorepo subdirectory packages. If `plugin add` reports `git dep preparation failed` on that release, clone this repository and use the local configuration below.
23+
24+
## Local development
25+
26+
Clone the repository and configure either package by its directory path:
1127

1228
```jsonc
1329
{
@@ -18,8 +34,6 @@ Each package can be installed by its directory path. Published packages remain i
1834
}
1935
```
2036

21-
## Develop
22-
2337
Requires Bun 1.2.22 or newer and OpenCode V2.
2438

2539
```sh

‎packages/reviewer/README.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,20 @@ every other failure escalates and is recorded.
5656

5757
## Configure
5858

59-
Add it to `opencode.jsonc` (global config lives in `~/.config/opencode/opencode.jsonc`):
59+
Install the plugin directly from this repository:
60+
61+
```sh
62+
opencode plugin add 'github:joonix/opencode-plugins#main::path:packages/reviewer'
63+
```
64+
65+
The CLI adds it to your global OpenCode configuration. To set reviewer options, replace that entry with the object form in `opencode.jsonc` (global config lives in `~/.config/opencode/opencode.jsonc`):
6066

6167
```jsonc
6268
{
6369
"$schema": "https://opencode.ai/config.json",
6470
"plugins": [
6571
{
66-
"package": "/path/to/opencode-plugins/packages/reviewer",
72+
"package": "github:joonix/opencode-plugins#main::path:packages/reviewer",
6773
"options": {
6874
"model": "openai/gpt-5.6-terra-fast",
6975
"variant": "medium",

‎packages/subagent-model/README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ New children use the selected values, falling back to their agent or parent defa
66

77
Overlapping resumes of the same child are rejected so competing calls cannot race to change its model.
88

9-
```jsonc
10-
{ "plugins": ["/path/to/opencode-plugins/packages/subagent-model"] }
9+
```sh
10+
opencode plugin add 'github:joonix/opencode-plugins#main::path:packages/subagent-model'
1111
```
1212

13+
The CLI adds the plugin to your global OpenCode configuration. Use a tag or full commit hash instead of `main` to pin updates.
14+
1315
The plugin validates the selected model and variant against the active model catalog and reports useful tool errors for invalid values.

0 commit comments

Comments
 (0)