Hacker News new | ask | show | jobs
by 361994752 53 days ago
I'm using opencode v2, if it matters. I don't have any special skills / prompts for subtasks. Instead, I found new models (I usually have sol or opus as my main model) have the tendency to trigger subtasks, even to a level I need to ask it "please do this task XYZ yourself". The only special prompt I gave is just something like "please use gpt sol or luna for subtasks, base on your judgement". And in my experience it can handle more than 5 async subtasks out of the box
1 comments

Oh, maybe I should try v2.

I'm confused about opencode's v1/v2 split. The docs say v2 is here, but their Github is only v1.x.[0] And the docs don't really explain why v2 is better, but there's a long list of things I have to do to migrate,[1] so I haven't been that eager to pull the trigger, especially since I can't tell if they consider it alpha/beta/release.

[0] https://opencode.ai/v2/docs

[1] https://opencode.ai/v2/docs/migrate-v1/

Look at the tags tab, not the releases tab.

https://github.com/anomalyco/opencode/tags

If you use Nix it's a flake so super easy to run too.

Seconded that v2 has much better background shell + subagent management: it's now much more eager to appropriately spawn either of them on its own, and does so in a way that is asynchronous, i.e it doesn't block the conversation and you can examine them by pressing down arrow at the prompt box.

v2 on their GitHub is tracked in the v2 branch: https://github.com/anomalyco/opencode/tree/v2