← Back to news
OpenCode 2.2: Useful Plugins, Engineers Still in Control

Photo: Sebastiaan ter Burg / Wikimedia Commons / CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/). Illustration: Wikimedia Hackathon 2013, not an OpenCode event; header may be resized or cropped.

29/10/2026

OpenCode 2.2: Useful Plugins, Engineers Still in Control

OpenCode 2.2: a useful upgrade, not a reason to surrender control

OpenCode 2.2.0 was published on October 27, 2026. For a senior engineer, its most interesting change is not another promise of autonomous coding. It is the ability to bring team-specific context and interfaces closer to the agent: experimental desktop plugins, persistent keyed session instructions, and practical improvements to long-running sessions. Those capabilities can reduce the repeated explanation and tool switching that make otherwise capable agents expensive to supervise.

The right question is therefore not whether OpenCode can replace an engineer. It is whether it can shorten a bounded engineering task while preserving the evidence needed to review the result. This guide distinguishes documented capabilities from proposed workflows. The examples below are implementation patterns to evaluate in your own repository, not a claim that we benchmarked the release or deployed these integrations in production.

What the tool actually is

OpenCode is an open-source AI coding agent available through a terminal interface, a desktop application, and a web interface. It connects to language-model providers and works with project files and engineering tools. The application is not itself a guarantee of model quality: provider choice, repository context, permissions, and your acceptance criteria all influence the outcome.

Think of it as an execution and interaction layer around a model, rather than a universal software architect. A well-scoped task might ask it to trace a request through a service, propose a small change, run approved checks, and explain the diff. A poorly scoped task asks it to modernize an entire application without defining compatibility, risk, or ownership. The former can produce useful leverage; the latter mainly produces a review problem.

What changed in this release

The release introduces experimental desktop plugins and refreshes the desktop experience. It also lets plugins attach and update keyed session instructions through ctx.session.instructions.entry.put/list/remove. According to the release notes, those updates are added at the next step, survive compaction and reverts, and do not trigger an additional model turn. This matters when a task's constraints evolve while the session continues.

Other changes include configurable prompt-cache time-to-live settings per provider and model, provider-reported session costs, and fixes affecting context compaction and plugin reload sequencing. None establishes a universal speedup. Their value depends on workload and provider behavior. Experimental image and decision APIs are also present, but ordinary repository work does not require adopting them. A conservative rollout can benefit from the release while leaving experimental integrations disabled.

Install V2 deliberately: the package name matters

Start at the official V2 documentation, not an old installation snippet. It currently documents npm install -g @opencode/cli and brew install anomalyco/tap/opencode-v2. The installer is at https://opencode.ai/v2/install. If your organization permits installer scripts, download and inspect the script before execution rather than blindly piping an internet response into a shell. Record the selected version and follow your normal software approval process.

The distinction is important because the V1 documentation still shows npm install -g opencode-ai, and the two generations can conflict over the opencode binary. Check which executable your shell resolves and its reported version before opening a repository. For a controlled evaluation, isolate the installation and pin a release rather than allowing an unrelated global upgrade to change every developer's workflow simultaneously.

Desktop, Windows, web: choose the smallest useful surface

The V2 documentation provides desktop downloads for macOS, Windows, and Linux, plus standalone CLI archives for multiple architectures. It explicitly says Windows package managers are not supported; use the listed standalone or desktop download rather than assuming a V1 Chocolatey or Scoop command installs the same product. Linux users should select the appropriate architecture and glibc or musl build.

For web access, the documented entry point is opencode pair. Its connection links work once and expire after five minutes. Treat pairing as an access event, not a convenient URL to paste into a ticket. Begin with one interface and one repository. Adding desktop panels, a browser session, and remote access on day one makes permission mistakes and support issues harder to isolate, without necessarily improving the actual coding task.

Connect a provider without exporting your entire workstation

Use /connect in the terminal interface to configure a supported provider, or follow the provider documentation for your approved endpoint. Separate development credentials from production credentials. An open-source client does not imply local-only inference, free model usage, or automatic compliance with your organization's data policy. Check what code, prompts, tool output, and metadata can leave the machine.

Start in a disposable worktree containing the minimum project context. Exclude production secrets, customer exports, and unrelated private directories. Configure budgets and monitor provider billing rather than assuming the visible session cost is a complete financial ledger. The release adds provider-reported costs; reporting availability and accounting semantics can still vary. Local execution convenience and remote data processing are different questions, and both need an explicit answer before adoption.

Set permissions before the first interesting prompt

Do not assume that unmatched actions are blocked. The documented V2 base policy broadly allows actions, with specific prompts for environment-file reads. External-directory access is not prompted by default. Configure explicit rules before letting an agent inspect a sensitive checkout: ask for shell commands, allow only routine inspection you understand, deny pushes, and ask or deny access outside the project.

V2 permissions are an ordered array of action, resource, and effect records; the last matching rule wins. For example, a broad shell ask rule can be followed by allow exceptions for git status and git diff, then a deny rule for git push. Treat this as a starting pattern, not a sandbox. Shell commands and project scripts can execute arbitrary code, so OS isolation and credential minimization remain necessary.

Keep organization policy separate from agent convenience

OpenCode distinguishes permissions from policies. Permissions determine whether an agent asks, proceeds, or is denied. Policies can hard-deny tool checks and govern provider or integration availability. Global and managed policies have authority over repository-level allowances. This gives teams a place to encode boundaries that should not disappear because a repository includes permissive configuration.

A useful example is a global tool.use denial for shell:git push *, combined with human-controlled publishing outside the agent. Another is restricting provider.use to approved endpoints. Validate the resulting behavior with harmless negative tests and inspect server logs: invalid policy statements are dropped with a warning. Crucially, the documentation says policies do not sandbox plugin code. A trusted plugin and a tightly permissioned model are not interchangeable security assumptions.

Use case one: repository reconnaissance with evidence

For an unfamiliar service, ask for a map rather than a rewrite: identify the request entry point, authorization boundary, persistence path, and tests for one named behavior. Require file paths and symbols for every substantive claim, and separate confirmed relationships from hypotheses. Do not authorize edits until a human has checked the map against the repository.

The deliverable should be small enough to verify: a request trace, a list of relevant files, and two or three unresolved questions. This can shorten the mechanical search phase before a senior developer makes an architectural judgment. If the agent cites a nonexistent function or ignores a configuration-driven path, stop and correct the context. Generating a polished overview is not success; reducing the time required to establish an accurate working model is.

Use case two: debug from a failing test, not a confident story

Give the agent a sanitized failure, the exact test command, expected behavior, and a narrow area to inspect. Ask it first to reproduce the failure, then list competing explanations and the observation that would distinguish them. Only after that should it propose a patch. This prevents a plausible narrative from becoming an unearned diagnosis.

For a retry bug, require evidence about idempotency, cancellation, and error propagation rather than accepting an extra catch block. The final handoff should include the original failure, the minimal change, the test that now passes, and checks not executed. Keep the regression expectation under human ownership: an agent that changes the expected result merely to make its own patch green has not fixed the defect. Production access should remain outside this workflow.

Use case three: a bounded migration with an explicit stop line

Dependency and API migrations are good candidates when the compatibility rule can be stated precisely. Select one module, identify deprecated calls, and ask for a plan that preserves public interfaces. Review that plan before permitting edits. Require separate reporting for mechanical substitutions and changes that affect semantics, error handling, or runtime behavior.

The release itself provides a practical migration example: the @opencode/ai package root now exposes the Promise API, while the Effect API moves to @opencode/ai/effect; @opencode/ai/promise is removed. An integration owner can ask an agent to locate affected imports and prepare a reviewable patch. That still requires building and testing the actual integration. A correct import replacement does not prove that downstream behavior, packaging, or supported runtime versions remain compatible.

Use case four: test expansion without moving the goalposts

Ask OpenCode to extract a behavior matrix from an existing interface: normal input, empty input, malformed input, cancellation, authorization failure, and dependency timeout. Have a human approve the matrix before test generation. This gives the agent concrete coverage work while keeping the meaning of correctness outside its discretion.

For a pagination endpoint, for example, insist on stable ordering and boundary cases rather than snapshot volume. Require the agent to explain why each test would fail for a plausible defect. Run tests in an environment with no production credentials, since test commands and dependency lifecycle scripts execute code. Keep implementation changes separate from new expectations when possible. The productivity gain comes from accelerating repetitive scaffolding and discovering omissions, not from increasing the number of green assertions without understanding them.

Use case five: review preparation that respects reviewer authority

Give a review session a fixed base and head revision. Ask for a change summary, likely regression surfaces, and missing evidence, with references to the diff. Tell it to distinguish observed defects from questions. Do not let a review-preparation agent silently rewrite the patch it is evaluating or approve the pull request on behalf of the team.

A useful output groups concerns by impact: public contract changes, data integrity, concurrency, security boundaries, and operational behavior. It can also suggest the smallest test that would settle a concern. This helps a senior reviewer prioritize attention, especially across unfamiliar modules. However, two agents repeating the same assumption are not independent verification. Human review and independently executed checks must still decide whether the change is ready to merge.

Where desktop plugins can remove genuine friction

The experimental GUI SDK can add panels, commands, settings pages, and native integrations. A sensible first internal plugin would display existing evidence: selected revision, relevant test results, links to the ticket, and the agreed acceptance checklist. That is a proposed integration, not a built-in release dashboard. Build it only if repeated context switching is a measurable cost.

The documented package export is ./gui-experimental, and the GUI bundle must be one prebuilt CommonJS file. The Vite preset handles the bundling constraints. Window setup and Electron main-process code have different execution contexts; keep each in its appropriate setup. Avoid a powerful deployment button as the first experiment. A read-oriented panel offers a smaller evaluation surface and can expose missing evidence without acquiring authority to release software.

Persistent instructions: keep constraints current, not magical

Keyed session instructions are especially relevant to team-specific constraints: preserve an API contract, do not modify a generated directory, or keep an investigation limited to a named service. A plugin can update the corresponding entry when an approved task changes rather than repeatedly rewriting a large system prompt. The release notes describe these entries as surviving compaction and reverts.

Persistence is not enforcement. An instruction saying never deploy is weaker than withholding deployment credentials and blocking deployment tools. Keep a visible human-readable task contract, record when it changes, and verify the diff against it. Scope instructions to the correct session and remove obsolete entries when a task ends. Otherwise a feature meant to preserve context can preserve stale assumptions just as efficiently as useful constraints.

Treat plugins as software dependencies, not prompt decorations

Plugins run code. Review their source, dependency tree, update mechanism, and credential access before installation. The plugin documentation supports exact versions and complete Git commit hashes; use those for a repeatable pilot. The CLI provides opencode plugin list and opencode plugin check, but checking availability of updates is not equivalent to reviewing their contents.

The new GUI surface increases integration possibilities and maintenance obligations together. Test enable, disable, reload, and failure states, not only the happy path. A plugin panel must not show stale test results as current evidence after the selected revision changes. Keep an owner and a rollback path. Most teams should first prove that the standard agent workflow is useful before creating an internal ecosystem of extensions to maintain.

Breaking changes deserve a migration ticket

This is not a risk-free upgrade for existing integrations. Besides the AI package import changes, the release says the OpenCode GitHub Action is no longer published and should be removed from workflows. TUI plugins now require OpenTUI 0.7, with changes that can break plugins built against the previous version. Inventory automation and extensions before upgrading developer machines.

Create a small migration ticket with owners for the CLI, desktop application, internal plugins, and CI configuration. Verify documentation examples against the chosen release rather than mixing V1 and V2 snippets. Keep the previous known-good installation available according to your software management policy. A successful application launch is only a smoke test; the acceptance check is that your actual repository tasks, authentication path, plugins, and verification commands still behave as intended.

Measure accepted engineering work, not generated output

Run a short pilot on comparable tasks: one repository investigation, one reproducible bug, one small migration, and one test expansion. Record time spent specifying the task, supervising tools, reviewing the patch, fixing mistakes, and completing validation. Compare the complete cycle with your normal workflow. Do not stop the clock when the agent says it is finished.

Track acceptance without major rewrite, escaped defects, unnecessary diff size, and provider spend alongside elapsed time. Cache TTL tuning may help repeated context workloads, but should follow correctness and data-governance checks, not precede them. There is no defensible universal percentage gain in the sources reviewed here. The most credible win is less mechanical navigation and scaffolding while the engineer spends proportionally more attention on decisions that require domain knowledge.

A practical adoption checklist

Before the first real task, verify the V2 executable, provider authorization, data boundary, explicit permission rules, and absence of production credentials. Then select a clean worktree, define a small acceptance contract, and require evidence for every claimed check. Introduce one reviewed plugin only after the baseline workflow works. Keep deployment and merge authority in the existing human-controlled process.

OpenCode 2.2 is worth evaluating because it makes the agent more adaptable to real engineering context, not because it removes the need for engineering judgment. The useful operating model remains simple: humans define the problem and acceptable risk; agents accelerate bounded investigation and implementation; independently executed checks establish evidence; an accountable person decides whether to ship. That division of responsibility is how a more capable developer tool becomes sustainable productivity rather than a faster way to accumulate uncertainty.