GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Commands Model Variant Specification · Issue #7713 · anomalyco/opencode

[FEATURE]: Commands Model Variant Specification #7713

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Commands Model Variant Specification#7713
Copy link
Assignees
thdxr

Description

@koichiio
koichiio
opened on Jan 10, 2026
Issue body actions

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'm willing to implement this, but since it involves some design decisions, I wanted to open an issue first.

Summary

Add a variant field to the commands feature. Currently, command definitions in command/*.md or opencode.json(c) only allow selecting the model or agent, but not the model variant.

Motivation

While variants can be applied globally or per-agent, it is useful to bake specific reasoning efforts into commands. For example, a command designed for complex planning or code review might always want to use a high thinking variant of a lightweight model, even if the user's global preference is set to minimal. This ensures specific tasks have the reasoning budget they need without requiring the user to manually switch variants before running the command.

The precedence has been reconsidered. Check #7907

Proposed Priority

If implemented, I suggest the following priority for variant resolution:

  1. Explicit runtime selection (CLI --variant flag or TUI ctrl+t)
  2. Command definition variant (The new field)
  3. Agent default variant (as implemented in Add default variant config per agent #7140)
  4. None (Model default)
Reacted by franz-toptal, Lucas, Sergey Kostrukov and Nikolai Perlt

Activity

  1. koichiio
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 10, 2026
  2. github-actions commented on Jan 10, 2026

    @github-actions
    github-actionsBot
    on Jan 10, 2026 – with GitHub Actions
    Contributor
    More actions

    This feature request is related to several existing issues that address variant and model configuration:

    • [FEATURE] Support default variant configuration per agent (#7156) #7138: Support default variant configuration per agent - Implements agent-level variant defaults, which is part of the variant resolution priority chain mentioned in this issue
    • [FEATURE]: Add --variant flag to root opencode command #7354: Add --variant flag to root opencode command - Related to variant handling via CLI
    • [FEATURE]: allow shell commands in the frontmatter #5082: Allow shell commands in the frontmatter - Related request for dynamic configuration in command definitions
    • Server API ignores agent's configured model when only agent parameter is passed #7099: Server API ignores agent's configured model when only agent parameter is passed - Related to model/agent configuration propagation
    • [FEATURE]: Allow skills and commands to define scoped permission overrides #7407: Allow skills and commands to define scoped permission overrides - Shows precedent for adding configuration fields to command frontmatter

    You may want to cross-reference these issues, particularly #7138 which implements the agent-level variant configuration that would complement your proposed command-level variant specification.

  3. github-actions
    assigned
    thdxr
    on Jan 10, 2026
  4. CasualDeveloper commented on Jan 11, 2026

    @CasualDeveloper
    CasualDeveloper
    on Jan 11, 2026
    Contributor
    More actions

    @koichincom Nakayamada-san, this is similar to what I was interested in with my issue #7138 / pr #7156 for variant support in agents - try taking a look and see if maybe commands can be extended similarly :P

  5. koichiio commented on Jan 11, 2026

    @koichiio
    koichiio
    on Jan 11, 2026
    ContributorAuthor
    More actions

    @koichincom Nakayamada-san, this is similar to what I was interested in with my issue #7138 / pr #7156 for variant support in agents - try taking a look and see if maybe commands can be extended similarly :P

    @CasualDeveloper Thanks! I'll look into it and probably make a PR for the commands feature!

    Reacted by Bala Bosch
  6. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  8. rekram1-node
    closed this as not plannedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.