Skip to content- Sources: primary, discussion
- Summary: OpenCode 2.0 runs a single background service that every client attaches to, with a rewritten API, a new @opencode/client package and an @opencode/sdk library. A built-in JavaScript interpreter turns MCP servers and OpenAPI endpoints into callable functions, and all MCP servers use this code mode by default. It adds background subagents and background shell commands, and 1.x plugins, the server API and tui.json config are breaking changes.
- Why it matters: Teams scripting or embedding a coding agent get a stable programmatic API, and code mode cuts the context cost of attaching many MCP servers.