OpenCode 2.0(anoma.ly)
880 points by gmays 46 days ago | 385 comments
tl;dr: OpenCode 2.0 overhauls the AI coding agent with a persistent background server that unifies TUI, web, and desktop clients, plus a rewritten API and new `@opencode/sdk` package for embedding OpenCode as a library. Notable additions include "Code Mode," a minimal JS interpreter that converts MCP servers and OpenAPI endpoints into callable functions for single-roundtrip tool composition, background subagents and shell commands for parallel work, and a matured plugin system (80+ internal plugins) with hot-reloading. Upgrading from 1.x requires `opencode upgrade --major` and includes breaking changes to the API and plugins.
HN Discussion:
  • ↑Enthusiastic users confirm V2 improvements like plugin hot-reloading, backgrounding, and client/server model work well
  • ↑Praise for the server architecture enabling remote sessions and native clients
  • ↓Skepticism about harnesses running permanent background daemons by default
  • ↓Article was poorly written/unreadable and lacked a clear feature list
  • •Questions and requests for missing features like auto-permission modes or benchmarks comparing harnesses