Dev rewrites opencode server in Rust: 100MB vs 2.4GB RAM, session search 30,000x faster

microbass · reddit · 2026-10-20

An opencode power user got tired of the server: 2.4GB RSS, a 33GB SQLite file, and 6-second in-session searches on a laptop. So they rewrote it in Rust as ocserve, keeping the HTTP/SSE wire contract fully compatible — the official TUI and web UI attach unmodified.

Back-to-back on the same box and fixture data (vs upstream):

Supports both v1 and v2 API shapes: TUI attach, streaming, tools, permissions, PTY, shadow-git snapshots, revert, diff, in-session search, MCP, plugins. Missing: provider OAuth, hosted share backend, macOS/Windows (PTY is Linux/glibc only). Independent MIT codebase with a differential harness byte-comparing both servers.

Original post →

More from coding & agent

coding & agent channel →