opencode
opencode copied to clipboard
Feature Request: URL parameters for agent/model preselection in web UI
Problem When using opencode in serve mode and creating new sessions, there's no way to pre-select an agent or model via URL
Use case Creating opencode sessions from external tools with specific agent, (optionally provider and model) pre-selected.
Proposed approach
Add ?agent=
Why it belongs Improves serve mode flexibility and shareability
My use case I want opencode to be integrated into my IDE, which is nvim. I'd like to have a keybinding that would open session with specific agent preselected. I want planning agent to be pre-selected in some cases, but by default build agent is selected.