OpenCode 2.0 is a comprehensive rewrite focused on running a single local background service that all clients - terminal TUI, web UI, desktop app and programmatic clients - autodiscover and talk to. The API was redesigned from scratch to handle the wide range of agent use cases discovered across millions of users, and session-first features let agents manage work concretely (create worktrees, rename/move sessions, interrupt or prompt sessions). A new @opencode/client package and CLI integrations (opencode api / opencode pair) make automation and scheduled tasks straightforward. Code Mode adds a minimal JavaScript interpreter (@opencode/codemode) so models can write and execute scripts natively, and MCP/OpenAPI endpoints are ingested as callable functions so agents can compose multi-tool workflows in a single round trip.
Operational capabilities were expanded with background subagents and asynchronous shell commands so long-running work can proceed without blocking the primary agent, plus a hotkey to push tasks to the background. The plugin system was rebuilt - 80+ internal plugins, stable TUI plugin support, and hot-reload so plugins can be written and used mid-session. An SDK (@opencode/sdk) exposes the same core as the CLI for embedding OpenCode in servers or specialized runtimes (optional Effect API). Upgrade guidance is provided; breaking changes include incompatible 1.0 plugins, a new server API, and config format moves, with migration tooling available.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.