claude-code - 💡(How to fix) Fix [Feature Request] Add planModel setting to automatically switch models between plan and execute modes [1 comments, 1 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#47985Fetched 2026-04-15 06:36:40
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
1
Author
Participants
Timeline (top)
labeled ×2commented ×1

Fix Action

Fix / Workaround

Bug Description I want to plan in Opus (deep reasoning) but execute in Sonnet (faster, cheaper).
Today the only workaround is manually running /model sonnet after exiting plan mode, but the switch is noticeably delayed and easy to forget — so I end up burning Opus tokens on mechanical edits.

Code Example

{                                                             
    "model": "claude-sonnet-4-6",
    "planModel": "claude-opus-4-6",
    "effortLevel": "high"                                                                      
  }
RAW_BUFFERClick to expand / collapse

Bug Description I want to plan in Opus (deep reasoning) but execute in Sonnet (faster, cheaper).
Today the only workaround is manually running /model sonnet after exiting plan mode, but the switch is noticeably delayed and easy to forget — so I end up burning Opus tokens on mechanical edits.

Proposed: A planModel key in settings.json that overrides model while plan mode is active and automatically reverts on exit. Example:

  {                                                             
    "model": "claude-sonnet-4-6",
    "planModel": "claude-opus-4-6",
    "effortLevel": "high"                                                                      
  }

Why it matters: Plan mode and execution mode have genuinely different cost/quality tradeoffs. Planning benefits from the strongest reasoning model; execution benefits from speed and throughput. A native split would make the Opus → Sonnet handoff zero-friction and let teams
standardize the pattern across a project without relying on each user to remember /model toggles.

Bonus: a matching planEffortLevel would let people pair opus + high for planning with sonnet

  • medium for execution.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.105
  • Feedback ID: 7d533c5b-0dd3-41c1-a8b9-7f2c80b5c5fe

extent analysis

TL;DR

Implement a planModel key in settings.json to override the model during plan mode and automatically revert on exit.

Guidance

  • Add a planModel key to settings.json with the desired planning model, such as "planModel": "claude-opus-4-6", to enable automatic model switching during plan mode.
  • Consider adding a planEffortLevel key to pair with the planning model, allowing for customized effort levels during planning and execution.
  • Verify that the planModel override is correctly applied by checking the model in use during plan mode and ensuring it reverts to the default model on exit.
  • Test the new configuration with different planning and execution models to ensure seamless handoffs between Opus and Sonnet.

Example

{
  "model": "claude-sonnet-4-6",
  "planModel": "claude-opus-4-6",
  "effortLevel": "high"
}

Notes

The proposed solution relies on the assumption that the settings.json file is properly read and applied by the application. Additionally, the exact behavior of the planModel key and its interaction with the model key may require further clarification or testing.

Recommendation

Apply workaround: Implement the proposed planModel key in settings.json to achieve the desired model switching behavior, as it provides a straightforward solution to the problem.

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