---
title: "OpenCode v2.2.1 | Havoptic"
description: "OpenCode 2.2.1 lets you set a goal with /goal so the session keeps working until a reviewer confirms it's done, and adds an experimental image generation tool for agents. Curious what else changed in ..."
image: "https://dev.havoptic.com/og-image.jpg"
---

# OpenCode v2.2.1

OpenCode v2.2.1 was released on October 29, 2026.

## Summary

OpenCode 2.2.1 lets you set a goal with /goal so the session keeps working until a reviewer confirms it's done, and adds an experimental image generation tool for agents. Curious what else changed in this release? The full notes are worth a look.

## Release Context

- This was the 204th OpenCode release of 2026 tracked by Havoptic.
- It shipped 1 day after [OpenCode v1.19.5](https://dev.havoptic.com/r/opencode-1.19.5) (October 28, 2026).

### Shipped around the same time

Within 3 days of this release, other AI coding tools also shipped:

- [Claude Code v2.1.316](https://dev.havoptic.com/r/claude-code-2.1.316) (October 31, 2026)
- [Kiro CLI v2.37.1](https://dev.havoptic.com/r/kiro-2.37.1) (October 31, 2026)
- [Antigravity CLI v1.4.12](https://dev.havoptic.com/r/antigravity-cli-1.4.12) (October 30, 2026)
- [Antigravity CLI v1.4.11](https://dev.havoptic.com/r/antigravity-cli-1.4.11) (October 30, 2026)
- [Claude Code v2.1.314](https://dev.havoptic.com/r/claude-code-2.1.314) (October 30, 2026)

### Compare OpenCode

- [OpenCode vs Claude Code](https://dev.havoptic.com/compare/claude-code-vs-opencode)
- [OpenCode vs OpenAI Codex CLI](https://dev.havoptic.com/compare/openai-codex-vs-opencode)
- [OpenCode vs Cursor](https://dev.havoptic.com/compare/cursor-vs-opencode)
- [OpenCode vs Gemini CLI](https://dev.havoptic.com/compare/gemini-cli-vs-opencode)
- [OpenCode vs Kiro CLI](https://dev.havoptic.com/compare/kiro-vs-opencode)
- [OpenCode vs GitHub Copilot CLI](https://dev.havoptic.com/compare/github-copilot-vs-opencode)
- [OpenCode vs Devin Desktop](https://dev.havoptic.com/compare/opencode-vs-windsurf)
- [OpenCode vs Antigravity CLI](https://dev.havoptic.com/compare/antigravity-cli-vs-opencode)
- [OpenCode vs Grok Build](https://dev.havoptic.com/compare/grok-build-vs-opencode)
- [OpenCode vs Cline](https://dev.havoptic.com/compare/cline-vs-opencode)
- [OpenCode vs Zed](https://dev.havoptic.com/compare/opencode-vs-zed)
- [OpenCode vs Factory Droid](https://dev.havoptic.com/compare/factory-droid-vs-opencode)
- [OpenCode vs Devin](https://dev.havoptic.com/compare/devin-vs-opencode)
- [OpenCode vs Lovable](https://dev.havoptic.com/compare/lovable-vs-opencode)
- [OpenCode vs Amp](https://dev.havoptic.com/compare/amp-vs-opencode)
- [OpenCode vs GitHub Copilot in VS Code](https://dev.havoptic.com/compare/copilot-vscode-vs-opencode)
- [OpenCode vs Replit Agent](https://dev.havoptic.com/compare/opencode-vs-replit-agent)
- [OpenCode vs Bolt](https://dev.havoptic.com/compare/bolt-vs-opencode)
- [OpenCode vs v0](https://dev.havoptic.com/compare/opencode-vs-v0)

## Release Notes

Highlights - Keep Working Toward a Goal: Run /goal <objective> in the TUI or Desktop to let the session continue until a reviewer confirms the objective is met. Use /goal pause, /goal resume, or /goal clear to control it. (59437) - Generate Images: Enable experimental.imagegenerate to let agents create or edit images with the new imagegenerate tool. You can optionally set its default model with experimental.imagegenerate.model. (59939, 60096) - Inspect Background Shells: Click a running shell in the Desktop activity pill to see its live output and stop it without leaving the menu. (59496) - New Default Model Picker: Search favorites, recent models, providers, and variants from the redesigned model picker, which is now the default in Desktop. (59997) Breaking changes @opencode/ai provider removals and renames These changes affect code that imports @opencode/ai directly. They don't change the CLI, Desktop, or the HTTP API. - The fal, Black Forest Labs, Replicate, and Stability providers are removed, along with their ./providers/fal, ./providers/black-forest-labs, ./providers/replicate, and ./providers/stability entry points. (59977) - Five legacy entry points are removed. Import the nested paths instead, which 2.2.0 already exports: ./providers/amazon-bedrock-mantle → ./providers/amazon-bedrock/mantle, and ./providers/google-vertex-chat, -interactions, -mistral, and -responses → ./providers/google-vertex/chat, /interactions, /mistral, and /responses. (59506) - Each provider's configure() input type is now named Config, for example Groq.LanguageModelOptions → Groq.Config, and model() settings are optional when every setting is optional. (59765) Core Improvements - Add /goal <objective> with pause, resume, and clear controls, plus automatic progress review until the objective is met. (59437) - Add opt-in scheduled prompts through /schedule, agent tools, and experimental.schedules. (59401, 59457) - Add the opt-in imagegenerate tool for background image creation and editing, with automatic or configured model selection. (59939, 60096) - Offer GPT Image 2 after Codex sign-in and add MiniMax and Meta Muse image generation support. (60085, 59929, 60081) - Add Responses API support for OpenRouter, DigitalOcean, and Venice, including freeform tools. (59991, 59963) - Improve snapshot performance by coalescing captures and avoiding repeated ignore-file work. (59419) Bug fixes - Preserve more context headroom when fitting tool output into the context window. (59934) - Retry provider throttling correctly instead of reporting it as context overflow. (59649) - Send image-edit references and image sizes in the formats expected by OpenRouter, Google, and Vercel Grok. (60067, 59927) - Keep credential metadata and prompt-cache settings out of model settings and variants. (60057, 59500) - Keep Git snapshots working in repositories that use a split index. (59417) - Expose Console web search only when the workspace enables it. (59592) - Improve Code Mode diagnostics for parse errors, stalled awaits, and promise-like search results. (59834, 59749, 59981) TUI Improvements - Show /goal status below the prompt and provide a dialog for pausing, resuming, or clearing it. (59437) Bug fixes - Show execution failures that occur before the first model step. (60079) - Keep the activity spinner visible while a continued subagent runs. (59950) - Send pasted image and PDF paths correctly when connected to a local server. (59833) - Improve spacing in an empty /usage dialog. Thanks @Tarquinen. (59918) Desktop Improvements - Add /reload to reload configuration without restarting. (59887) - Make the redesigned searchable model picker the default, with dedicated Favorites and Recent sections and keyboard-accessible provider controls. (59997) - Show live output and a Stop action when you select a background shell from...

[View original release](https://github.com/anomalyco/opencode/releases/tag/v2.2.1)

## Other Recent OpenCode Releases

- [v2.4.2](https://dev.havoptic.com/r/opencode-2.4.2) (November 26, 2026)
- [v2.4.1](https://dev.havoptic.com/r/opencode-2.4.1) (November 23, 2026)
- [v2.4.0](https://dev.havoptic.com/r/opencode-2.4.0) (November 23, 2026)
- [v2.3.2](https://dev.havoptic.com/r/opencode-2.3.2) (November 18, 2026)
- [v2.3.1](https://dev.havoptic.com/r/opencode-2.3.1) (November 18, 2026)

Upgrading from v2.2.1? [See all 13 releases since](https://dev.havoptic.com/r/opencode/diff?from=2.2.1&to=latest).

[All OpenCode releases](https://dev.havoptic.com/tools/opencode) · [All AI coding tool releases on Havoptic](https://dev.havoptic.com/)

```json
{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "Havoptic",
  "alternateName": "Havoptic AI Tool Releases",
  "url": "https://www.havoptic.com/",
  "description": "Havoptic tracks every release of 20 AI coding tools, from Claude Code and Codex CLI to Cursor and Copilot CLI, and explains each one in plain English within hours of shipping.",
  "publisher": {
    "@type": "Organization",
    "name": "Havoptic",
    "url": "https://www.havoptic.com/"
  },
  "potentialAction": {
    "@type": "SearchAction",
    "target": "https://www.havoptic.com/?q={search_term_string}",
    "query-input": "required name=search_term_string"
  }
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Havoptic",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "Web",
  "offers": {
    "@type": "Offer",
    "price": "0",
    "priceCurrency": "USD"
  },
  "description": "Havoptic tracks every release of 20 AI coding tools, from Claude Code and Codex CLI to Cursor and Copilot CLI, and explains each one in plain English within hours of shipping."
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://www.havoptic.com/#organization",
  "name": "Havoptic",
  "url": "https://www.havoptic.com/",
  "logo": {
    "@type": "ImageObject",
    "url": "https://www.havoptic.com/og-image.jpg",
    "width": 1200,
    "height": 630
  },
  "description": "Release tracking, plain-English release notes and side-by-side comparisons for AI coding tools, updated hourly.",
  "foundingDate": "2025",
  "sameAs": [
    "https://github.com/scotthavird/havoptic.com",
    "https://x.com/havoptic"
  ],
  "founder": {
    "@id": "https://www.havoptic.com/authors/scott-havird#person"
  }
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "DataCatalog",
  "@id": "https://www.havoptic.com/#data-catalog",
  "name": "Havoptic AI Coding Tool Release Data",
  "description": "Every release of 20 AI coding tools, dated and explained in plain English within hours of shipping, plus feature comparison matrices, free to query through an API, an MCP server, feeds and a CLI. Covers Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, Kiro, GitHub Copilot CLI, Devin Desktop, Antigravity CLI, Grok Build, Cline, OpenCode, Zed, Factory Droid, Devin (cloud agent), Lovable, Amp, GitHub Copilot in VS Code, Replit Agent, Bolt, and v0.",
  "url": "https://www.havoptic.com/api-docs",
  "publisher": {
    "@type": "Organization",
    "name": "Havoptic",
    "url": "https://www.havoptic.com/"
  },
  "dataset": [
    {
      "@type": "Dataset",
      "@id": "https://www.havoptic.com/data/releases.json",
      "name": "AI Coding Tool Releases",
      "description": "Complete release history for Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, Kiro, GitHub Copilot CLI, Devin Desktop, Antigravity CLI, Grok Build, Cline, OpenCode, Zed, Factory Droid, Devin (cloud agent), Lovable, Amp, GitHub Copilot in VS Code, Replit Agent, Bolt, and v0 — including version numbers, release dates, plain-English summaries, and full changelogs. Updated hourly.",
      "url": "https://www.havoptic.com/data/releases.json",
      "distribution": {
        "@type": "DataDownload",
        "encodingFormat": "application/json",
        "contentUrl": "https://www.havoptic.com/data/releases.json"
      },
      "temporalCoverage": "2025/..",
      "creator": {
        "@id": "https://www.havoptic.com/#organization"
      },
      "maintainer": {
        "@type": "Organization",
        "name": "Havoptic",
        "url": "https://www.havoptic.com/"
      },
      "isAccessibleForFree": true,
      "license": "https://creativecommons.org/licenses/by/4.0/",
      "keywords": [
        "Claude Code",
        "OpenAI Codex CLI",
        "Cursor",
        "Gemini CLI",
        "Kiro",
        "GitHub Copilot CLI",
        "Devin Desktop",
        "Windsurf",
        "Antigravity CLI",
        "Grok Build",
        "Cline",
        "OpenCode",
        "Zed",
        "Factory Droid",
        "Devin (cloud agent)",
        "Lovable",
        "Amp",
        "GitHub Copilot in VS Code",
        "Replit Agent",
        "Bolt",
        "v0",
        "AI coding tools",
        "release history",
        "changelogs"
      ]
    },
    {
      "@type": "Dataset",
      "@id": "https://www.havoptic.com/data/feature-matrix.json",
      "name": "AI Coding Tool Feature Matrix",
      "description": "Side-by-side feature comparison data for 20 AI coding tools across categories: Core Editing, Terminal Integration, MCP Support, IDE Integrations, and Agentic Features.",
      "url": "https://www.havoptic.com/data/feature-matrix.json",
      "distribution": {
        "@type": "DataDownload",
        "encodingFormat": "application/json",
        "contentUrl": "https://www.havoptic.com/data/feature-matrix.json"
      },
      "creator": {
        "@id": "https://www.havoptic.com/#organization"
      },
      "maintainer": {
        "@type": "Organization",
        "name": "Havoptic",
        "url": "https://www.havoptic.com/"
      },
      "isAccessibleForFree": true,
      "license": "https://creativecommons.org/licenses/by/4.0/",
      "keywords": [
        "AI coding tools",
        "feature comparison",
        "Claude Code",
        "Cursor",
        "GitHub Copilot",
        "Gemini CLI",
        "Devin Desktop",
        "Windsurf"
      ]
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://dev.havoptic.com"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "OpenCode",
      "item": "https://dev.havoptic.com/tools/opencode"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "v2.2.1",
      "item": "https://dev.havoptic.com/r/opencode-2.2.1"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "OpenCode v2.2.1",
  "datePublished": "2026-10-29T05:16:55.000Z",
  "dateModified": "2026-10-29T05:16:55.000Z",
  "url": "https://dev.havoptic.com/r/opencode-2.2.1",
  "image": "https://dev.havoptic.com/og-image.jpg",
  "description": "OpenCode 2.2.1 lets you set a goal with /goal so the session keeps working until a reviewer confirms it's done, and adds an experimental image generation tool for agents. Curious what else changed in ...",
  "isBasedOn": "https://github.com/anomalyco/opencode/releases/tag/v2.2.1",
  "about": {
    "@type": "SoftwareApplication",
    "name": "OpenCode",
    "softwareVersion": "2.2.1",
    "applicationCategory": "DeveloperApplication",
    "url": "https://github.com/anomalyco/opencode/releases/tag/v2.2.1",
    "releaseNotes": "Highlights - Keep Working Toward a Goal: Run /goal <objective> in the TUI or Desktop to let the session continue until a reviewer confirms the objective is met. Use /goal pause, /goal resume, or /goal clear to control it. (59437) - Generate Images: Enable experimental.imagegenerate to let agents create or edit images with the new imagegenerate tool. You can optionally set its default model with experimental.imagegenerate.model. (59939, 60096) - Inspect Background Shells: Click a running shell in the Desktop activity pill to see its live output and stop it without leaving the menu. (59496) - New Default Model Picker: Search favorites, recent models, providers, and variants from the redesigned model picker, which is now the default in Desktop. (59997) Breaking changes @opencode/ai provider removals and renames These changes affect code that imports @opencode/ai directly. They don't change the CLI, Desktop, or the HTTP API. - The fal, Black Forest Labs, Replicate, and Stability providers are removed, along with their ./providers/fal, ./providers/black-forest-labs, ./providers/replicate, and ./providers/stability entry points. (59977) - Five legacy entry points are removed. Import the nested paths instead, which 2.2.0 already exports: ./providers/amazon-bedrock-mantle → ./providers/amazon-bedrock/mantle, and ./providers/google-vertex-chat, -interactions, -mistral, and -responses → ./providers/google-vertex/chat, /interactions, /mistral, and /responses. (59506) - Each provider's configure() input type is now named Config, for example Groq.LanguageModelOptions → Groq.Config, and model() settings are optional when every setting is optional. (59765) Core Improvements - Add /goal <objective> with pause, resume, and clear controls, plus automatic progress review until the objective is met. (59437) - Add opt-in scheduled prompts through /schedule, agent tools, and experimental.schedules. (59401, 59457) - Add the opt-in imagegenerate tool for background image creation and editi"
  },
  "articleBody": "Highlights - Keep Working Toward a Goal: Run /goal <objective> in the TUI or Desktop to let the session continue until a reviewer confirms the objective is met. Use /goal pause, /goal resume, or /goal clear to control it. (59437) - Generate Images: Enable experimental.imagegenerate to let agents create or edit images with the new imagegenerate tool. You can optionally set its default model with experimental.imagegenerate.model. (59939, 60096) - Inspect Background Shells: Click a running shell in the Desktop activity pill to see its live output and stop it without leaving the menu. (59496) - New Default Model Picker: Search favorites, recent models, providers, and variants from the redesigned model picker, which is now the default in Desktop. (59997) Breaking changes @opencode/ai provider removals and renames These changes affect code that imports @opencode/ai directly. They don't change the CLI, Desktop, or the HTTP API. - The fal, Black Forest Labs, Replicate, and Stability providers are removed, along with their ./providers/fal, ./providers/black-forest-labs, ./providers/replicate, and ./providers/stability entry points. (59977) - Five legacy entry points are removed. Import the nested paths instead, which 2.2.0 already exports: ./providers/amazon-bedrock-mantle → ./providers/amazon-bedrock/mantle, and ./providers/google-vertex-chat, -interactions, -mistral, and -responses → ./providers/google-vertex/chat, /interactions, /mistral, and /responses. (59506) - Each provider's configure() input type is now named Config, for example Groq.LanguageModelOptions → Groq.Config, and model() settings are optional when every setting is optional. (59765) Core Improvements - Add /goal <objective> with pause, resume, and clear controls, plus automatic progress review until the objective is met. (59437) - Add opt-in scheduled prompts through /schedule, agent tools, and experimental.schedules. (59401, 59457) - Add the opt-in imagegenerate tool for background image creation and editing, with automatic or configured model selection. (59939, 60096) - Offer GPT Image 2 after Codex sign-in and add MiniMax and Meta Muse image generation support. (60085, 59929, 60081) - Add Responses API support for OpenRouter, DigitalOcean, and Venice, including freeform tools. (59991, 59963) - Improve snapshot performance by coalescing captures and avoiding repeated ignore-file work. (59419) Bug fixes - Preserve more context headroom when fitting tool output into the context window. (59934) - Retry provider throttling correctly instead of reporting it as context overflow. (59649) - Send image-edit references and image sizes in the formats expected by OpenRouter, Google, and Vercel Grok. (60067, 59927) - Keep credential metadata and prompt-cache settings out of model settings and variants. (60057, 59500) - Keep Git snapshots working in repositories that use a split index. (59417) - Expose Console web search only when the workspace enables it. (59592) - Improve Code Mode diagnostics for parse errors, stalled awaits, and promise-like search results. (59834, 59749, 59981) TUI Improvements - Show /goal status below the prompt and provide a dialog for pausing, resuming, or clearing it. (59437) Bug fixes - Show execution failures that occur before the first model step. (60079) - Keep the activity spinner visible while a continued subagent runs. (59950) - Send pasted image and PDF paths correctly when connected to a local server. (59833) - Improve spacing in an empty /usage dialog. Thanks @Tarquinen. (59918) Desktop Improvements - Add /reload to reload configuration without restarting. (59887) - Make the redesigned searchable model picker the default, with dedicated Favorites and Recent sections and keyboard-accessible provider controls. (59997) - Show live output and a Stop action when you select a background shell from...",
  "author": {
    "@id": "https://dev.havoptic.com/#organization"
  },
  "publisher": {
    "@id": "https://dev.havoptic.com/#organization"
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://dev.havoptic.com/r/opencode-2.2.1"
  },
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      "#ssr-content p"
    ]
  }
}
```
