[PR #6805] feat: add --variant flag to run command #12121

Closed
opened 2026-02-16 18:17:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6805

State: closed
Merged: Yes


Added --variant CLI option to opencode run command to specify provider-specific model reasoning effort levels (e.g., high, max, minimal). The implementation passes variant through both command and prompt execution paths, storing it in user messages where it's later merged into model options during LLM streaming. Includes comprehensive unit tests covering both execution paths and backwards compatibility.

closes: #6706

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6805 **State:** closed **Merged:** Yes --- Added --variant CLI option to opencode run command to specify provider-specific model reasoning effort levels (e.g., high, max, minimal). The implementation passes variant through both command and prompt execution paths, storing it in user messages where it's later merged into model options during LLM streaming. Includes comprehensive unit tests covering both execution paths and backwards compatibility. closes: #6706
yindo added the pull-request label 2026-02-16 18:17:03 -05:00
yindo closed this issue 2026-02-16 18:17:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12121