Skip to content

[FEATURE]: model fallback in specific agents #9575

Closed as not planned
Closed as not planned

Description

@kobi2187

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

Can you please add a model fallback in the yaml part of the specific_agent.md file?

---
description: ...
mode: primary
model: [ 'anthropic/claude-sonnet-4-5', 'opencode/grok-4' , 'google/gemini-3-pro', 'openai/gpt-5-turbo' ]

expected behaviour: if a model is unavailable or out of tokens, it will use the next one automatically (or ask the user according to pref).

syntax - for example as a yaml list.
should let user know if file has a parsing issue (wrong syntax) or model unavailable (not connected).

Activity

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

    @github-actions
    Contributor

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

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

  3. farukg commented on Feb 16, 2026

    @farukg

    Strong +1 for this. My concrete use case: I have subagents pinned to cheap/free models (e.g. opencode/grok-code for shell-exec, opencode/gpt-5-nano for general) to avoid burning expensive tokens on trivial tasks. But free models occasionally hit rate limits or produce weak results for complex subagent work.

    A fallback array like model: ['opencode/gpt-5-nano', 'openai/gpt-5-nano', 'google/gemini-2.5-flash-lite'] would let me tier: free → ultra-cheap paid → cheap paid, with automatic failover. Right now the only workaround is running a LiteLLM proxy as a custom provider, which adds unnecessary infrastructure for what should be a native config option.

  4. dhruvkej9 commented on Feb 17, 2026

    @dhruvkej9

    A much needed feature so that no human intervention is needed to switch models, also can be useful in opencode github agent (We can set 2-3 models and automatic fallback handles whichever is possible)
    @rekram1-node

  5. marcodiniz commented on Feb 27, 2026

    @marcodiniz

    Extremely useful for me as well.
    I have a sub agent set to Claude Models, would be great to switch to Gemini when I run out of tokens.
    Right noew the subagent just get stuck and I don't even notice it

  6. github-actions commented on Apr 29, 2026

    @github-actions
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions