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.
- Tool
- OpenCode
- Category
- Coding agents
- 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
| Fact | Detail |
|---|---|
| Product | OpenCode (anomalyco/opencode) |
| Version | v2.2.6 |
| Release date | November 6, 2026 (GitHub release, UTC) |
| License | MIT |
| Watch out for | opencode run waits for background jobs indefinitely; SIGTERM exits with code 143 |
| Where to get it | GitHub release v2.2.6 |
What changed
- Shared MCP connections. Set
pool: trueon 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 -wstarts the session in a new git worktree, and--worktree=<name>names it. It cannot be combined with--continueor--session. - Archived runs.
opencode run --archivedcreates 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
CodeBlockandCodeBlockActionregistries, 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: trueorOPENCODE_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
fetchreject URLs that contain credentials, and Code Mode checks every redirect against your webfetch rules. session_moveasks forexternal_directorypermission 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
| Tool | License | Pricing note |
|---|---|---|
OpenCodeThis launchOpen-source coding agent from the anomalyco/opencode repository, MIT-licensed, with a terminal client and a site at opencode.ai. | MIT | The 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.0 | The 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.0 | Apache-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.0 | Apache-2.0 client. Provider access is separate. |
More from OpenCode
OpenCode adds Claude Agent integration and opt-in static artifacts
OpenCodeThree releases combine a new provider, persistent terminals, scheduling updates and percentage-based compaction.
Category: Coding agents
Pricing: Not stated
OpenCode 2.2.1 adds goal-driven sessions and opt-in image generation
OpenCodeGoal controls, scheduled prompts and background image tools arrive with direct-library breaking changes.
Category: Coding agents
Pricing: Not stated
OpenCode 2.2.2 enables image tools for connected capable providers
OpenCodeImage generation no longer needs the previous opt-in; scheduling gains conditional inputs.
Category: Coding agents
Pricing: Not stated
OpenCode 2.2 introduces experimental desktop plugins
OpenCodeThe release adds plugin instruction entries and experimental generation APIs, with breaking SDK and GitHub Action changes.
Category: Coding agents
Pricing: Not stated
OpenCode 1.19.3 adds reasoning variants after 1.x upgrade safeguards
OpenCodeTwo October 16 patches add configurable reasoning variants and keep ordinary OpenCode 1 updates separate from the explicit upgrade to OpenCode 2.
Category: Coding agents
Pricing: Open source
OpenCode 2.0 shared service
OpenCodeThe New Stack reported that OpenCode 2.0 puts its terminal, desktop, and web apps on one shared service.
Category: Coding agents
Pricing: Open source
OpenCode v1.19.0 adds a path to OpenCode 2
OpenCodeOpenCode v1.19.0, published October 11, 2026, adds an opencode upgrade --major command to reach OpenCode 2 and stops installing updates automatically.
Category: Coding agents
Pricing: Open source
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.