OpenCode 2.0 is a comprehensive redesign of a coding agent platform that centralizes a client/server model into a local background service so TUI, web, and desktop clients all talk to the same process. It ships a rebuilt, honest API and a new programmatic client package (@opencode/client) that autodiscovers the local service, supports CLI commands, and can pair with other hosts. Session management is richer: sessions can be created, renamed, moved into git worktrees, interrupted, prompted, and scripted via the client. Code Mode introduces a lightweight JavaScript interpreter (@opencode/codemode) that converts MCP servers and OpenAPI endpoints into callable functions, enabling agents to compose multi-tool workflows in a single round trip rather than sequential calls.
Background orchestration and extensibility are core: agents can spawn background subagents and run asynchronous shell commands that notify completion, with a hotkey to demote long-running foreground tasks. Nearly every feature is implemented as a plugin, and over 80 internal plugins plus stable TUI plugins support hot-reload so plugins can be authored and used mid-session. The platform is also embeddable via @opencode/sdk (including an Effect-based API), with guidance for upgrading: 1.x plugins are incompatible, the server API changed, and tui.json moved to json; most other changes are backward compatible and migration tooling is provided.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.