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]: Add a variable {CURRENT_MODEL} for commands · Issue #10247 · anomalyco/opencode

[FEATURE]: Add a variable {CURRENT_MODEL} for commands #10247

New issue
Copy link
New issue
Copy link
Closed
Closed
[FEATURE]: Add a variable {CURRENT_MODEL} for commands#10247
Copy link
Assignees
rekram1-node
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Description

@rygel
rygel
opened on Jan 23, 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 would like to write a command which commits the changes to git and also adds the name of the model to the commit message. I would like to know which commit has been authored by which model, as I am experimenting a lot with different models. Therefore a variable {CURRENT_MODEL} is very useful for a command.

I can currently workaround by using command parameters, but then I need to check and remember the name of the model and write it properly.

Activity

  1. rygel
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 23, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 23, 2026
  3. github-actions commented on Jan 23, 2026

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

    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: {env:MY_VAR} support in agent yaml #5054: [FEATURE]: {env:MY_VAR} support in agent yaml - requests environment variable expansion for controlling model selection in agent/command definitions
    • [FEATURE]: allow shell commands in the frontmatter #5082: [FEATURE]: allow shell commands in the frontmatter - requests ability to execute shell commands for dynamic configuration
    • [FEATURE]: add model identity info to system prompt #9065: [FEATURE]: add model identity info to system prompt - requests model identity information to be accessible
    • [FEATURE]: Dynamic model selection for subagents via Task tool #6651: [FEATURE]: Dynamic model selection for subagents via Task tool - comprehensive feature request for dynamic model selection with model tier mappings
    • [FEATURE]: Tool that lets the model switch models #8278: [FEATURE]: Tool that lets the model switch models - requests ability to control model selection dynamically

    Feel free to ignore if none of these address your specific case.

  4. bdwelle commented on Jan 24, 2026

    @bdwelle
    bdwelle
    on Jan 24, 2026
    Contributor
    More actions

    I just submitted PR 10451 - create and expose model-id environment variables for bash from CLI that would provide a solution for this feature request.

    Reacted by Alexander B
  5. github-actions commented on Mar 27, 2026

    @github-actions
    github-actionsBot
    on Mar 27, 2026 – with GitHub Actions
    Contributor
    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.

  6. github-actions
    closed this as completedon Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

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

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.