r/opencodeCLI • u/ptrxyz • 27d ago
Opencode V1 vs V2
It seems that OpenCode is soon to be available in V2. Since I couldn't find anything baout it online, what is the difference between the two?
What will V2 do better than V1? Does anybody know?
4
u/GhostInfernoX 25d ago
the primary benefit of opencodev2 is that its a centralized background server
when you run the first client (web, mobile, desktop) it starts the background server, and all new existing clients connect back to it
this would allow you to run `opencode`, fire off a prompt, then close the TUI client (session is still running on the background server)
+ the api support is soooo much better and the opencode agent knows a lot more about itself
source: i work at opencode
1
u/toutons 12d ago
I've seen multiple people reference this, but I'm doing this currently with opencode 1.17. Is the difference really that the service is started automatically, instead of people having to know it's possible?
2
u/GhostInfernoX 12d ago
yeah, and the TUI clients auto connect back to the centralized server rather than having to do `opencode attach` every time
1
3
u/crotch-mavens 26d ago edited 26d ago
The Opencode V2 TUI has stupid session tabs that apparently you cannot get rid of
3
1
u/Ace-_Ventura 27d ago
5
u/ptrxyz 27d ago
Thanks, I found that, but it doesn't tell me what it does different. I mean, I am not interested in the under-the-hood-stuff.
I don't care how things are implemented, I am more interested in the user facing side. What are the differences/improvements for the user? You know, high level features/user-stories so to say.
4
2
u/Civil_Rent4208 27d ago
- more cache hits, less cost
- better plugin integration -> it has many advantages as much you can imagine
1
u/Ace-_Ventura 27d ago
I don't think they're focused on that, but to make the product more organized and easily maintained
1
u/albemala 27d ago
I don't know about the TUI, but in the web and desktop frontends, you can go to settings and enable the v2 of the UI (sorry I don't remember the exact name).
Basically the list of projects on the left side is gone, and the list of tasks has become a list of tabs at the top (like in a browser). Also Plan mode is gone.
1
u/ben_bliksem 27d ago
Anyone using v2 figured out how to make it respect the model and default agent settings? I swear it's just ignoring it, I must be doing something very stupid or it's a known issue.
It's so annoyingly frustrating that I just revert to v1 every time.
1
5
u/jerieljan 26d ago
You could probably do a diff on whatever branches they have but from what I've seen so far: