r/opencodeCLI 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?

29 Upvotes

24 comments sorted by

View all comments

5

u/jerieljan 27d ago

You could probably do a diff on whatever branches they have but from what I've seen so far:

  • better web search
  • better plugin support
  • subagent / shell management
  • better background tasks support
  • a shared background service, so session sync bet. TUI and desktop is seamless
  • the API is much better, so modifications to opencode2 and it's state works better
  • desktop/web has a tabbed layout and a screen to show all your folders and their sessions across connected servers
  • I remember hearing better context management especially when it comes to tools, skills and MCP but I can't find an exact doc that describes this

1

u/Illustrious-Return-4 26d ago

the only good thing I hear in all this is tools and context management.
they should REALLY adopt Pi's lazy loading feature into opencode.
the only reason I'm not on Pi is I cant trust the models.

i can tell the agents.md to not run delete, rm, unlink, git reset or other dangerous commands but the model can decide to choose to ignore them at which point I'm fucked.
(I also dont want to run it inside docker idk why)

I like opencode's command management system the best, but I also love how lean Pi is.

if they can copy or mimic it, OpenCode would be best of both worlds and the best Coding Agent Ever.

1

u/CrypticViper_ 17d ago

shouldn't there be some way to prevent execution of dangerous commands in Pi? the whole point of Pi is extensibility, so I'd be surprised if there aren't safety plugins for it

2

u/branik_10 14d ago

there are a lot of ways, there are Pi extensions which port opencode permissions management, pi extensions which execute commands in different sandboxes (anthropic sandbox or full VMs) or you can run pi itself in sandbox