Skip to content

[FEATURE]: @agent:provider/model syntax to override subagent model on the fly #11215

@adambiggs

Description

@adambiggs

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions