You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,19 @@ An OpenCode plugin that integrates OpenSpec, providing a dedicated agent for pla
15
15
16
16
## Installation
17
17
18
-
### Option 1: Install from NPM (Recommended)
18
+
### For Humans
19
19
20
-
Simply add the plugin package name to your `opencode.json` configuration file (usually located at `~/.config/opencode/opencode.json` or `.opencode/opencode.json`):
20
+
**Option 1: Let your agent do it (Recommended)**
21
+
22
+
Paste this prompt into OpenCode:
23
+
24
+
```
25
+
Install opencode-plugin-openspec. It is an NPM package. Please add "opencode-plugin-openspec" to my opencode.json plugin list.
26
+
```
27
+
28
+
**Option 2: Manual Installation**
29
+
30
+
Add the plugin package name to your `opencode.json` configuration file (usually located at `~/.config/opencode/opencode.json` or `.opencode/opencode.json`):
21
31
22
32
```json
23
33
{
@@ -29,22 +39,21 @@ Simply add the plugin package name to your `opencode.json` configuration file (u
29
39
30
40
OpenCode will automatically download and install the plugin the next time it runs.
31
41
32
-
### Option 2: Manual / Local Installation
42
+
### For LLM Agents
33
43
34
-
If you want to install from a local build or a specific file:
44
+
If you are an AI agent tasked with installing this plugin, follow these steps:
35
45
36
-
1. Build the project:
37
-
```bash
38
-
bun run build
39
-
```
40
-
2. Add the absolute path to your `opencode.json`:
46
+
1.**Locate Configuration**: Find the user's OpenCode configuration file. It is typically at `~/.config/opencode/opencode.json` or `.opencode/opencode.json` in the workspace root.
47
+
2.**Read Configuration**: Read the content of the configuration file.
48
+
3.**Update Configuration**: Add `"opencode-plugin-openspec"` to the `plugin` array. If the `plugin` array does not exist, create it.
0 commit comments