opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Feat: 'Power Steering' mode/option to improve agentic performance

Open CiaranMcAleer opened this issue 1 year ago • 2 comments

What do you think about introducing some kind of power steering mode like roocode added[https://docs.roocode.com/update-notes/v3.3.25] this would hopefully improve the overall performance of the openai models like 4.1 which currently require a lot of intervention(constantly asking if 'it' should proceed/continue) to even perform simple tasks(this is largely a model behaviour issue)?

Naturally this option results in higher credit consumption so it might have to be something people have to add to their config as needed.

CiaranMcAleer avatar Jul 03 '25 13:07 CiaranMcAleer

I was just searching for this issue and wanted to +1 it. In most of my sessions 80% of all my prompts are "yes/do it/proceed" because it constantly stops mid plan to say "I will do do this next" and passes back to me.

I'd like to see if there could be an "autonomous mode" or a "auto continue" mode that just keeps going unless I interrupt it. Generally speaking if I have already confirmed the overall "planning" message I just want it to try to do all of it w/o asking every plan step again if it should keep going. Or if an error happens confirming I want it to tackle the error, etc.

RingOfStorms avatar Jul 03 '25 15:07 RingOfStorms

Had a look into the feasibility of this, how roocode handles this and I think the best approach might just be to let people pass a string or file path for custom prompts for providers/models in their config that way of they are using OpenAI models or others that aren't playing nicely they can try and refine the system prompt to alter the behaviour. Working on the implementation of this and I will add a link to a draft pr here and see what everyone thinks(if this isn't the best way to go I can just leave it)

Edit: draft PR https://github.com/sst/opencode/pull/769 will mark as ready for review when I get some feedback on this as a general approach to the problem mentioned in the initial issue, currently still making changes to resolve some test issues.

CiaranMcAleer avatar Jul 08 '25 16:07 CiaranMcAleer