Skip to content

Commit 57cb444

Browse files
Fix OpenCode install source (#747)
## Summary - point README OpenCode setup at the supported anomalyco/opencode distribution - update generated GitHub Action setup to install `opencode-ai@latest` - adjust ghaction tests for the new install command ## Validation - go fmt ./... - go vet ./... - go test ./internal/ghaction - go test ./... (fails in unrelated internal/git TestGetMainRepoRootForBareBackedWorktree: git config core.worktree exit status 128) Co-authored-by: Codex <codex@openai.com>
1 parent 875b0a4 commit 57cb444

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ See [configuration guide](https://roborev.io/configuration/) for all options.
186186
| Claude Code | `npm install -g @anthropic-ai/claude-code` |
187187
| Gemini | `curl -fsSL https://antigravity.google/cli/install.sh \| bash` (preferred Antigravity CLI) or `npm install -g @google/gemini-cli` |
188188
| Copilot | `npm install -g @github/copilot` |
189-
| OpenCode | `go install github.com/opencode-ai/opencode@latest` |
189+
| OpenCode | `npm install -g opencode-ai@latest` ([anomalyco/opencode](https://github.com/anomalyco/opencode)) |
190190
| Cursor | [cursor.com](https://www.cursor.com/) |
191191
| Kiro | [kiro.dev](https://kiro.dev/) |
192192
| Kilo | `npm install -g @kilocode/cli` |

internal/ghaction/ghaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func AgentInstallCmd(agentName string) string {
116116
case "codex":
117117
return "npm install -g @openai/codex@latest"
118118
case "opencode":
119-
return "go install github.com/opencode-ai/opencode@latest"
119+
return "npm install -g opencode-ai@latest"
120120
case "cursor":
121121
return "echo 'Cursor agent is not available in CI" +
122122
" environments; choose a different agent'"

internal/ghaction/ghaction_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func TestGenerate(t *testing.T) {
202202
Agents: []string{"opencode"},
203203
},
204204
wantStrs: []string{
205-
"opencode-ai/opencode@latest",
205+
"opencode-ai@latest",
206206
"ANTHROPIC_API_KEY",
207207
"different model provider",
208208
},
@@ -246,7 +246,7 @@ func TestGenerate(t *testing.T) {
246246
},
247247
wantStrs: []string{
248248
"@anthropic-ai/claude-code@latest",
249-
"opencode-ai/opencode@latest",
249+
"opencode-ai@latest",
250250
},
251251
envChecks: func(t *testing.T, env map[string]string) {
252252
assert.Contains(t, env, "ANTHROPIC_API_KEY", "expected ANTHROPIC_API_KEY in env")

0 commit comments

Comments
 (0)