Skip to content

Add opencode agent support via ACP - #57

Closed
joaovitoras wants to merge 2 commits into
nilbuild:mainfrom
joaovitoras:joaovitoras-add-opencode-support
Closed

joaovitoras wants to merge 2 commits into
nilbuild:mainfrom
joaovitoras:joaovitoras-add-opencode-support

Conversation

@joaovitoras

Copy link
Copy Markdown

Adds opencode as a third agent next to Claude Code and Codex, so it can be used for reviews and @opencode mentions.

opencode speaks ACP natively, so it is launched with opencode acp directly (no adapter, no Node needed). It is detected on PATH or via a custom binary path, and is treated as ready whenever the CLI is available, since no login probe is needed.

  • Rust: new AgentKind::Opencode (enabled), launch spec, and build ACP session mode in policy.rs; opencode added to mention handles.
  • Frontend: opencode entry in the agents list (install: npm i -g @opencode/cli) and in the mention handles.

Note: opencode always runs in its build mode; the ask-each / read-only permission modes are not mapped to opencode yet.

Tested: cargo test and vitest pass; checked the detection UI in the dev app.

@nilbuild

nilbuild commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Thanks a lot for this, @joaovitoras! It pointed us in the right direction. We're going to build OpenCode support ourselves because it needs some deeper changes around permissions, so I'm closing this one. Really appreciate the contribution.

@nilbuild nilbuild closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants