claude-code - 💡(How to fix) Fix [FEATURE] /clear and specify model for next session at once, e.g., "/clear -m sonnet"

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…

Code Example

/clear --model sonnet
/clear -m sonnet
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

I want to /clear and specify the model for the next session at once, so I don't have to run /model immediately after.

For efficient token use, the decision about the model for next task is better to be made the instant I start the session for that task. After all, command "/clear" is roughly a soft restart of claude, while "claude.exe" does have a "--model" option.

I can just run /model immediately after /clear in the new session, but if I had the option, I could be well reminded of the fact that launching a new session is a proper opportunity to consider switching model: tasks are different in complexity.

Proposed Solution

Something like

/clear --model sonnet
/clear -m sonnet

Alternative Solutions

Run /model in the new session immediatley after /clear.

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

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