claude-code - 💡(How to fix) Fix Feature: Add chat:cycleModel action for keybinding to cycle through LLMs [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#56477Fetched 2026-05-06 06:26:59
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1

Add a chat:cycleModel bindable action that cycles through available LLMs (e.g. Haiku → Sonnet → Opus → Haiku), similar to how chat:cycleMode cycles through plan/auto modes.

Root Cause

Add a chat:cycleModel bindable action that cycles through available LLMs (e.g. Haiku → Sonnet → Opus → Haiku), similar to how chat:cycleMode cycles through plan/auto modes.

Code Example

{
  "$schema": "https://www.schemastore.org/claude-code-keybindings.json",
  "$docs": "https://code.claude.com/docs/en/keybindings",
  "bindings": [
    {
      "context": "Chat",
      "bindings": {
        "ctrl+shift+m": "chat:cycleModel"
      }
    }
  ]
}
RAW_BUFFERClick to expand / collapse

Summary

Add a chat:cycleModel bindable action that cycles through available LLMs (e.g. Haiku → Sonnet → Opus → Haiku), similar to how chat:cycleMode cycles through plan/auto modes.

Motivation

Currently, the only way to switch models via keyboard is:

  • cmd+p — opens the model picker UI, then requires additional navigation

There is no way to quickly cycle through models with a single keystroke the way shift+tab cycles through modes.

Proposed Solution

Add a new bindable action chat:cycleModel that cycles through the available LLMs in sequence. Users could then bind it to any key, for example:

{
  "$schema": "https://www.schemastore.org/claude-code-keybindings.json",
  "$docs": "https://code.claude.com/docs/en/keybindings",
  "bindings": [
    {
      "context": "Chat",
      "bindings": {
        "ctrl+shift+m": "chat:cycleModel"
      }
    }
  ]
}

Additional Context

  • shift+tab is already taken by chat:cycleMode, so a new action is needed
  • Cycle order could follow the model tier: Haiku → Sonnet → Opus → (wrap around)
  • Would be consistent with the existing pattern of chat:cycleMode

extent analysis

TL;DR

Implement the proposed chat:cycleModel bindable action to enable quick model cycling with a single keystroke.

Guidance

  • Define the chat:cycleModel action to cycle through available LLMs in a sequence, such as Haiku → Sonnet → Opus → Haiku.
  • Update the keybindings configuration to bind the new action to a desired keystroke, for example, ctrl+shift+m.
  • Ensure the cycle order follows a logical pattern, such as the model tier.
  • Verify the new action works as expected by testing the keystroke binding and model cycling.

Example

{
  "bindings": [
    {
      "context": "Chat",
      "bindings": {
        "ctrl+shift+m": "chat:cycleModel"
      }
    }
  ]
}

Notes

The implementation details of the chat:cycleModel action are not provided, so the exact steps for defining the action are unclear.

Recommendation

Apply workaround: Implement the proposed chat:cycleModel action and bind it to a keystroke, as this provides a clear solution to the problem of quickly cycling through models.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Feature: Add chat:cycleModel action for keybinding to cycle through LLMs [1 comments, 2 participants]