OpenCode Reloaded
This article explains how OpenCode 2 achieves instant hot reloading of plugins, config, and MCP servers. Mutating shared state from multiple plugins causes order-dependent bugs, so plugins instead register transformation functions that OpenCode replays in order from an empty state on every rebuild. The tradeoff is that plugins give up direct, arbitrary mutation in exchange for deterministic, coordinated reloading.