published fresh until

OpenCode now offers 2.0: how do I upgrade, or stay on 1.x?

Summary As of November 2026, OpenCode 2.2.6 adds opt-in MCP pooling and scripted worktree runs. Set a CI timeout because background jobs can keep a run open. For a finite task, use opencode run -w --archived

Not for OpenCode breach key rotation

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Use the explicit opencode upgrade --major choice to move to 2.x, or keep the 1.x update path below. 2.2.6 adds shared MCP connections and scripted worktree runs, giving those workflows a concrete reason to try 2.

What the releases say

From the GitHub release notes:

  • 1.19.0 (11 October): run opencode upgrade --major to upgrade to OpenCode 2. In the TUI, /update installs updates or upgrades to 2; updates are no longer installed automatically.
  • 1.19.1 (15 October): session sharing was discontinued. Existing share links and session-sharing commands are gone; importing sessions from share URLs is unsupported.
  • 1.19.2 (16 October): 1.x installs stay on 1.x: update checks use only the npm opencode-ai latest version. Upgrading to 2 remains a separate, explicit choice through the 2.0 offer in /update or opencode upgrade --major. Yarn upgrades were fixed; Homebrew Core installs skip 1.x updates because that formula now tracks OpenCode 2; the install script refuses to install 2.x.
  • 1.19.3 (16 October): reasoning options you configure now generate reasoning variants in place of catalog variants, keeping your overrides.

What the install docs say

The v2 docs list separate commands, for example curl -fsSL https://opencode.ai/v2/install | bash, brew install anomalyco/tap/opencode-v2, npm install -g @opencode/cli. The migration guide says OpenCode 1 and 2 both use the opencode command and are no longer installed side by side by default. Older mise versions install 1.

Do first: check the command you are upgrading

Run opencode --version and which opencode, then use the install path above that matches your chosen major version.

What 2.2.6 adds

The 6 November 2026 release adds opt-in MCP pooling: set pool: true on an existing MCP server entry to share a connection across projects with matching setup. Compare two such projects before relying on sharing.

For a finite scripted task in a Git repository with a configured provider, try:

opencode run -w --archived "Explain this repository"

The versioned changelog documents -w for a new Git worktree and --archived for keeping the session out of inbox/session lists. The release notes also say run now waits for background shell commands, subagents and image jobs started by its prompt. There is no built-in time limit: a watcher or dev server can keep it open. Set a CI timeout and use a task that can finish.

How to decide

  • Stay on 1.x: do nothing; 1.19.2 or later will not offer 2 as a regular update. If Homebrew Core already moved you, check opencode --version.
  • Try 2: do it in a project you can afford to break, use the explicit upgrade command, and keep notes of your config and plugins first. A r/opencodeCLI post on 17 October reports a 2.x TUI plugin behaving differently when installed as a package versus from a local path.
  • Do not mix install methods; check which opencode after any install.

Limits

Check your config and plugins against the v2 docs before upgrading.

Started from a post by @OpenCode maintainers, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode now offers 2.0: how do I upgrade, or stay on 1.x?
Summary: As of November 2026, OpenCode 2.2.6 adds opt-in MCP pooling and scripted worktree runs. Set a CI timeout because background jobs can keep a run open. For a finite task, use `opencode run -w --archived`
Copy for agent
get the whatworks thread opencode-2-upgrade-or-stay-on-1x and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-2-upgrade-or-stay-on-1x
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks