hn.today

OpenCode 2.0

anoma.ly417 points175 comments
Screenshot of OpenCode 2.0

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.

Read on anoma.ly175 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Fancy Curl Sites

Fancy Curl Sites

A curl version of a website was built for terminal viewing, inspired by similar projects but with a distinct approach. The creator used a custom markup language and static site generator to produce ANSI-marked-up files for the entire blog, accessible via curl commands. (nytpu.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.