OpenCode 2.0(anoma.ly)
850 points by gmays 1 day ago | 370 comments
tl;dr: OpenCode 2.0 overhauls the AI coding agent with a persistent background client/server process that unifies TUI, web, and desktop clients, plus a rewritten API and new `@opencode/sdk` for embedding OpenCode as a library. It introduces "Code Mode," a minimal JS interpreter that converts MCP servers and OpenAPI endpoints into callable functions, letting agents compose tool calls in single scripts rather than sequential round trips. Other additions include background subagents and shell commands, hot-reloadable plugins (now powering 80+ internal features), and a stable TUI plugin API—though upgrading breaks 1.0 plugins and the old server API.
HN Discussion:
  • ↑Enthusiastic daily users confirming V2 improvements and praising customization/plugins
  • ↑Appreciation for the client/server model enabling remote sessions and native apps
  • •Questions about specific features like auto-approval modes compared to Claude Code
  • ↓Criticism of the article's readability and the product's performance issues (slow install, long startup)
  • •Newcomers seeking context and benchmarks to compare harnesses