Repository navigation
Add OpenCode 2 (opencode2) as a choice under Setup > Defaults > Agent #9413
wojtekpiskorz
started this conversation in
Suggestions
Replies: 1 comment
|
OpenCode 1 and OpenCode 2 both use the https://opencode.ai/v2/docs/migrate-v1/ We should migrate the default to OpenCode v2. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Title: Add OpenCode 2 (
opencode2) as a choice under Setup > Defaults > AgentOpenCode 2.0 (currently in beta) installs as a separate binary,
opencode2, and isdesigned to run side by side with v1 (
opencode). Omarchy's default-agent pickercurrently hardcodes the agent list in three places:
bin/omarchy-default-agent(selection + mise install)bin/omarchy-agent(launcher flags; unknown agent → "Unsupported default agent")default/omarchy/omarchy-menu.jsonc(setup.default.agent.*rows)So there is no supported way to make the Agent keybinding /
omarchy agentopenOpenCode 2 — writing
opencode2to~/.config/omarchy/defaults/agentmanually resultsin "Unsupported default agent: opencode2".
Proposal: add an
opencode2case:Install-channel caveat (the actual design decision): OpenCode 2 is currently
published only on npm dist-tags (
@opencode-ai/cli@next/@beta, needs the postinstallscript allowed), and mise's
npm:backend can't resolve dist-tags — soagent_package="npm:@opencode-ai/cli@next"won't work as-is. Options: pin a betaversion via mise, install via
npm -gin the case handler, or wait for the stablechannel / mise support.
Workaround in use meanwhile (user-space, update-safe): menu row extension in
~/.config/omarchy/extensions/omarchy-menu.jsonc+ two small scripts in~/.local/bin(a selector that installs via npm and writes
defaults/agent, and a keybindingdispatcher that intercepts
opencode2and delegates everything else to the packagedomarchy-agent). Happy to turn this into a PR if you want it before the stable release.System: Omarchy 4.0.1-1, opencode2 v0.0.0-beta-17823
All reactions