james has achieved distributed opencode
agents can run on your laptop, on a remote server, in a cloud sandbox provider
shut your laptop and things keep running
open it back up and all the data syncs
delete the sandbox nothing is lost
OpenCode is about to get more powerful with remote sandboxes
I showed a brief demo before, but here's a much more in-depth demo. it's not hard to add basic support for a remote env, but handling all the edge cases like when a remote env gets deleted is difficult. especially if care about good UX
You never want to lose session data. so the choices are: run the session in your env, but run all tool calls remotely. that's too complex and painful.
The other way is to just let the full session run remotely, but sync back all the session data in your env. We chose this path: we built a syncing system which logs all events in a way that we can always recreate your entire session.
That means the remote env could get destroyed, but we can easily restore it. it also opens up other interesting ideas which we'll be exploring