You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Agent selection and model selection with OpenCode #1122
As of now, the only way to use a specific agent to execute a task is to write a custom command to launch the OpenCode CLI. The same goes for model selection, as I have a subscription for OpenCode Go, I like to switch them depending on the task.
Proposed solution
Be able to pick a specific OpenCode agent for a task and/or select the model amongst the ones available before executing a task.
changed the title [-][Feature]: Agent selection and model selection in OpenCode[/-][+][Feature]: Agent selection and model selection with OpenCode[/+]on Apr 26, 2026
Add custom TUI agent presets (#2284) #2521 adds custom TUI agent presets persisted in customTuiAgents, supports custom launch/detect commands, threads TuiAgentId through startup plans and Quick Launch/New Workspace pickers, and includes custom commands in SSH remote preflight detection.
That lets a user create selectable presets such as opencode --model anthropic/claude-sonnet-4-5 --agent build or opencode --model github-copilot/gpt-5.1 --agent plan, then choose the preset before running a task, without Orca hardcoding an OpenCode model discovery system.
I am leaving this issue open until #2521 lands and can be tested by affected OpenCode users. As of May 29, 2026, #2521 is still open and GitHub reports it as conflicting with main, so the remaining work is to resolve and merge that PR rather than add another implementation here.
Closing as a duplicate of #2284, the canonical custom-agent preset request. The OpenCode-specific model/agent choice from this issue is represented there as a preset with custom launch arguments (for example, ). This consolidates tracking only; #2284 remains open while its implementation work is pending.
Correction to the closure note: the OpenCode example is opencode --model provider/model --agent agent-name. Its selectable launch arguments are covered by custom agent presets in #2284. The issue is consolidated, not resolved; implementation remains pending.
Activity
[-][Feature]: Agent selection and model selection in OpenCode[/-][+][Feature]: Agent selection and model selection with OpenCode[/+]nwparker commentedon May 6, 2026
@davidroulier would you perhaps be happy if we solved this via the same means mentioned in #1473 ?
davidroulier commentedon May 6, 2026
Paperclip does that pretty well. Maybe you should sneak in some of their code into yours 😁
Well to answer your question, I'd need to test it out. Can't say yes or no
nwparker commentedon May 29, 2026
Confirmed this is covered by #2521 rather than needing a separate #1122-specific implementation.
Evidence:
opencode) and one command override; OpenCode startup already appends--promptfor submitted prompts.--model provider/modeland--agentflags for the TUI: https://dev.opencode.ai/docs/cli/customTuiAgents, supports custom launch/detect commands, threadsTuiAgentIdthrough startup plans and Quick Launch/New Workspace pickers, and includes custom commands in SSH remote preflight detection.opencode --model anthropic/claude-sonnet-4-5 --agent buildoropencode --model github-copilot/gpt-5.1 --agent plan, then choose the preset before running a task, without Orca hardcoding an OpenCode model discovery system.I am leaving this issue open until #2521 lands and can be tested by affected OpenCode users. As of May 29, 2026, #2521 is still open and GitHub reports it as conflicting with main, so the remaining work is to resolve and merge that PR rather than add another implementation here.
nwparker commentedon Sep 27, 2026
Closing as a duplicate of #2284, the canonical custom-agent preset request. The OpenCode-specific model/agent choice from this issue is represented there as a preset with custom launch arguments (for example, ). This consolidates tracking only; #2284 remains open while its implementation work is pending.
nwparker commentedon Sep 27, 2026
Correction to the closure note: the OpenCode example is
opencode --model provider/model --agent agent-name. Its selectable launch arguments are covered by custom agent presets in #2284. The issue is consolidated, not resolved; implementation remains pending.