opencode
opencode copied to clipboard
feat: switch mode tool
What does this PR do?
Adds a new modeswitch tool which allows the LLM to request the mode to be changed. So instead of the user having to switch to the build mode manually and ask the LLM to continue with the implementation, the LLM will request that itself and if approved, it will start implementing the plan.
How did you verify your code works?
Tested it locally through the TUI and Desktop app.
Closes https://github.com/anomalyco/opencode/issues/7627