opencode v2.2.1–2.2.5 land in two days: /goal, scheduled prompts, default-on image generation, a built-in Claude Agent, and experimental artifacts
Five releases landed on @opencode/cli in a 42-hour span — npm latest moved for v2.2.1 at 05:12 UTC on October 29, v2.2.2 at 18:40 UTC the same day, then v2.2.3 at 09:53 UTC, v2.2.4 at 16:53 UTC, and v2.2.5 at 23:14 UTC on October 30, 2026 — while opencode-ai stayed at 1.19.5 as the v1 package. Each version has a GitHub release page published minutes after npm (verified: v2.2.1 at 05:16 UTC, v2.2.5 at 23:17 UTC), and CHANGELOG.md at the dev branch HEAD carries full entries for all five (fetched 2026-11-08). This article follows v2.2.0, covered earlier on this site.
Autonomy: /goal and scheduled prompts
/goal <objective> (v2.2.1) runs in the TUI and Desktop: the session keeps working toward the objective, with automatic progress review, until a reviewer confirms it is met; /goal pause, /goal resume, and /goal clear control it, a composer pill and a prompt-side status show its state, and a new experimental idle Session hook lets plugins continue work before a session goes idle (#59437). Also opt-in in v2.2.1: scheduled prompts through /schedule, agent tools, and experimental.schedules, with client.experimental.schedule.{create,list,get,pause,resume,delete} in the SDK (#59401, #59457). v2.2.4 makes enabled schedules run under opencode serve and coordinates multiple server processes so a schedule fires only once (#60478).
Image generation: opt-in, then default-on
v2.2.1 adds the opt-in image_generate tool behind experimental.image_generate, with GPT Image 2 offered after Codex sign-in plus MiniMax and Meta Muse support (#59939, #60096, #60085). One release later, v2.2.2 flips it: when a connected provider supports image models, experimental_image_generate works without additional configuration, and experimental.image_generate.model sets the preferred model (#60258).
The built-in Claude Agent provider
v2.2.3 adds a Claude Agent provider: install Claude Code, run claude auth login, then select Claude Agent in /connect to reuse that login and its models; OPENCODE_CLAUDE_PATH overrides the executable (#58782, thanks @Tarquinen). v2.2.4 turns it guided — selecting Claude Agent in the provider picker copies the login command, installs Claude Code, and verifies the connection before model selection (#60603).
Desktop: persistent terminals, artifacts, compaction as a percentage
v2.2.4’s headline is persistent Desktop terminals: terminals belong to the session, survive server restarts with their scrollback, keep renamed titles, and stay synchronized with the TUI (#60346). The same release ships experimental artifacts — "experimental": { "artifacts": true } lets agents publish, update, and serve HTML or static artifacts through artifact_create/artifact_read/artifact_update/artifact_delete with a built-in local static-file provider, exposed to the SDK as client.experimental.artifacts.* (#60351). v2.2.5 adds worktree and shell-mode shortcuts (⌘⌥O/Ctrl+Alt+O to pick a worktree, ⌘⌥B for its base branch, ⌘⇧X to toggle shell mode), quote sending from the comment popup via ⌘Enter, and a percentage compaction buffer — "compaction": { "buffer": "20%" } keeps a share of the context window free, so one setting fits models with small and large windows (#60713, #60640, #60647). Notable fixes in the window: tool calls named bash now run as shell instead of failing (#60687), MCP stdio messages larger than 10 MiB no longer disconnect servers (#60694), and reasoning survives model switches and resumes instead of becoming plain text (#60498).
The breaking changes
Two releases carry breaking changes. v2.2.1 on @opencode/ai (SDK imports only — CLI, Desktop, and the HTTP API are unaffected): the fal, Black Forest Labs, Replicate, and Stability providers are removed with their entry points (#59977); five legacy entry points are removed in favor of nested paths 2.2.0 already exports (./providers/amazon-bedrock-mantle → ./providers/amazon-bedrock/mantle, ./providers/google-vertex-chat/-interactions/-mistral/-responses → ./providers/google-vertex/chat//interactions//mistral//responses) (#59506); each provider’s configure() input type is renamed Config (#59765). v2.2.3: TUI plugins require OpenTUI 0.8 — a ScrollBox’s wrapper, viewport, content, and scrollbars become facade objects, and a custom RenderContext must implement clock and onAnimationTick (#60385) — and managed policy splits integration.use, which now covers integration accounts only, from new mcp.use, skill.use, and plugin.use actions; rules with the old mcp:/skill:/plugin: prefixes convert automatically, but a bare integration.use rule no longer reaches MCP servers, skills, or plugins (#60315).
source: https://opencode.ai/changelog