Skip to content

OpenCode 2.2.6 adds MCP pooling and worktree runs

Updated OpenCode

Summary

OpenCode 2.2.6 (November 6, 2026) adds MCP pooling, run --worktree and --archived, and makes scripted runs wait for background jobs.

Date
Open source
Yes
License
MIT
Pricing
Not stated in the sources we cited.

OpenCode 2.2.6 was published on GitHub on November 6, 2026 (UTC). The headline features are opt-in MCP connection pooling and two new flags for scripted runs, --worktree and --archived. The change most likely to affect CI is quieter: opencode run now waits for every background job its prompt started before it exits, with no time limit.

Release facts

FactDetail
ProductOpenCode (anomalyco/opencode)
Versionv2.2.6
Release dateNovember 6, 2026 (GitHub release, UTC)
LicenseMIT
Watch out foropencode run waits for background jobs indefinitely; SIGTERM exits with code 143
Where to get itGitHub release v2.2.6

What changed

  • Shared MCP connections. Set pool: true on an MCP server and projects with the same setup share one connection, which the notes say means fewer processes and faster starts.
  • Worktree runs. opencode run -w starts the session in a new git worktree, and --worktree=<name> names it. It cannot be combined with --continue or --session.
  • Archived runs. opencode run --archived creates the session already archived, so CI and scripted sessions stay out of the inbox, the session lists and --continue.
  • GUI plugins. Plugins can add color themes, render or add actions to fenced code blocks through new CodeBlock and CodeBlockAction registries, and use native settings and menu components.
  • Mobile composer dock. On phones and tablets, composer actions move to a touch dock above the keyboard with 44px targets.
  • Experimental Code Mode VM. A bytecode VM for Code Mode is off by default; enable it with experimental.codemode_vm: true or OPENCODE_FLAGS=codemode_vm.

The CI change, in practice

In 2.2.6, opencode run waits for the background shell commands, subagents and image jobs its prompt started. While it waits it prints waiting for N background job(s) (a background_wait event with --format json), and lets the model respond to their results. There is no time limit. If a prompt starts a dev server or a file watcher, the run stays open until you press Ctrl+C or send SIGTERM, so set a job timeout in CI. SIGTERM now cancels the session and its background jobs and exits with code 143.

Security fixes

  • The server API now serves file reads and media as sandboxed downloads and refuses cross-site requests to /api/* from disallowed origins, so a file in your project cannot run scripts on the server's origin.
  • Webfetch and Code Mode fetch reject URLs that contain credentials, and Code Mode checks every redirect against your webfetch rules.
  • session_move asks for external_directory permission before leaving the current project.

Questions

Why does opencode run hang in CI after upgrading? Most likely a background job, such as a dev server, is still running. Version 2.2.6 waits for all background jobs with no time limit, so add a timeout or stop the job in your prompt.

Is MCP pooling on by default? No. It is opt-in per server with pool: true.

How do I keep CI sessions out of my session list? Add --archived to opencode run.

See the OpenCode hub, the previous OpenCode 2.2.3 to 2.2.5 update and the OpenCode vs Cline vs Aider comparison.

Alternatives

OpenCode compared with its alternatives
ToolLicensePricing note
OpenCodeThis launchOpen-source coding agent from the anomalyco/opencode repository, MIT-licensed, with a terminal client and a site at opencode.ai.
MITThe client is MIT-licensed. Model access is separate; this page does not quote a hosted plan.
ClineApache-2.0 coding agent published as an SDK, IDE extension, or CLI assistant in the cline/cline repository.
Apache-2.0The repository license is Apache-2.0. Model access is separate.
AiderApache-2.0 terminal pair programmer. The project describes Aider as AI pair programming in your terminal.
Apache-2.0Apache-2.0 software. Model access is separate.
GooseApache-2.0 agent from Block. The repository describes Goose as an open-source, extensible AI agent that goes beyond code suggestions.
Apache-2.0Apache-2.0 client. Provider access is separate.

More from OpenCode

View all

Questions

What is OpenCode?

OpenCode is an open-source coding agent. The GitHub repository anomalyco/opencode is MIT-licensed and describes the project as the open source coding agent. The website is opencode.ai.

What are OpenCode alternatives?

Cline, Aider, Goose, and Enter Code are the alternatives filed on this site. Cline and Aider are Apache-2.0. Goose is Apache-2.0. Enter Code's launch post describes an open-source Go SDK.

What is the latest OpenCode release covered here?

v2.2.6, published November 6, 2026. It adds MCP connection pooling with pool: true, opencode run --worktree and --archived, GUI plugin themes, and makes opencode run wait for background jobs with no time limit.

Is OpenCode free?

The software license is MIT, so the client itself has no license fee. You still need a model provider. This page does not quote a subscription price.

Filed on Agent Radar. Claims in this note are limited to the sources above.