-
Notifications
You must be signed in to change notification settings - Fork 182
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem / Use case
The OpenCode CLI supports a --variant flag for controlling model reasoning effort (e.g., --variant high, --variant max, --variant minimal), but Ralph TUI's OpenCode plugin does not currently expose this option.
Current state
- Ralph TUI can set provider/model and agent type for OpenCode
- The
--variantflag is not passed through to the CLI - No configuration option for variants
Desired state
- Support
--variantflag via config file:[agents.options] variant = "high" - Support
--variantvia CLI:--model anthropic/claude-4-5-sonnet --variant high - Pass
--varianttoopencode runcommand when configured
Example usage
Config
[agents.options]
provider = "anthropic"
model = "claude-4-5-sonnet"
variant = "high"CLI
ralph-tui run --agent opencode --model anthropic/claude-4-5-sonnet --variant highProposed solution
Config Format
[agents.options]
provider = "anthropic"
model = "claude-4-5-sonnet"
variant = "high"
CLI Usage
ralph-tui run --agent opencode --model anthropic/claude-4-5-sonnet --variant high
Implementation
1. Add variant property to OpenCodeAgentPlugin class
2. Initialize from config in initialize() method
3. Pass --variant flag in buildArgs() when configured
Example
# Config: variant = "high"
# CLI: --model anthropic/claude-4-5-sonnet
# Result: opencode run --model anthropic/claude-4-5-sonnet --variant highAlternatives considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request