Add auto-resume
https://github.com/neohiro/auto-resume
OpenCode gives you free LLM coding agents — which is awesome. Unfortunately, compared to other agentic coding software, its sessions are prone to interruptions: one network hiccup, rate limit, provider outage or max-token cutoff and your carefully prompted task just… stops. You walk away expecting a finished product and come back to an error message.
auto-resume makes OpenCode sessions effectively unkillable.
auto-resume is a single-file OpenCode plugin that turns flaky, interruption-prone AI coding sessions into unattended ones. It hooks into OpenCode's event bus and keeps work alive whenever something dies — network blips, provider outages, free-tier limits, max-token truncations, stalled streams, permission prompts, unfinished todo lists — and then goes one step further: it makes the model critique and improve its own finished work.
Source: awesome-opencode/awesome-opencode