Skip to content

Choose models for delegated work

Set one global route or override a single session without changing the primary model.

opencode-subagent-models adds global and per-session model selection to OpenCode subagents. Version 0.2.3 keeps the primary session model unchanged and applies a selected reasoning variant only to delegated work.

  1. A primary session delegates work to a subagent.
  2. The plugin checks the nearest session selection in that branch.
  3. Without a session selection, it uses the global selection.
  4. Default returns control to the next documented scope.
Context Result
Primary session Keeps the model selected by OpenCode.
Delegated work with a session override Uses the nearest session model and variant.
Delegated work without a session override Uses the global selection.
Global Default Uses each subagent’s configured model.

The plugin does not edit agent files, change the primary model, add telemetry, or make network requests of its own. It supports OpenCode 1.17.18; other versions require the same v1 TUI command bridge.