Feature hasn't been suggested before.
Describe the enhancement you want to request
I’d like OpenCode to support an explicit per-subtask model override when invoking subagents, via @agent:provider/model syntax (example: @explore:openai/gpt-5.2).
What I want to add:
- Allow users to specify the model for a specific subagent invocation inline, without changing global defaults.
- Ideally this is supported anywhere
@agent invocations are supported (at least TUI first), with autocomplete for available providers/models.
- The chosen model should be stored on the message/subtask metadata so it’s visible/auditable and can be surfaced in the UI.
Benefits:
- Lets users pick a faster/cheaper model for simple subtasks and a stronger model for harder ones, per call.
- Avoids needing multiple nearly-identical agents just to switch models.
- Makes model selection explicit and reproducible when reviewing a session history.
Feature hasn't been suggested before.
Describe the enhancement you want to request
I’d like OpenCode to support an explicit per-subtask model override when invoking subagents, via
@agent:provider/modelsyntax (example:@explore:openai/gpt-5.2).What I want to add:
@agentinvocations are supported (at least TUI first), with autocomplete for available providers/models.Benefits: