Skip to content

Model override in command mode #309

Description

@shellicar

I switch models mid-session depending on the task: Haiku for code investigation, Opus for design work. Right now the only way to change the model is editing the config file, which breaks flow.

I want to override the model from command mode without leaving the CLI. Ctrl+/ m opens an inline model editor where I type the full API model ID, press Enter, and the override takes effect immediately for the next turn.

The editor shows auto-complete from the known model list (pricing table keys). Dimmed completion text after the cursor for the longest matching model, Tab to accept. Colour feedback while typing: bright white on exact match, normal white on partial match, red when nothing matches. Unknown model IDs are accepted on Enter (for new models the CLI hasn't been updated for).

Enter on empty input clears an existing override, reverting to the config file value. Escape cancels without changes.

The override persists across new conversations and is only changed by explicit user action or exiting the CLI.

The status bar should always show the model family with its version number (Opus 4.7, Sonnet 4.6) rather than just the family name. When overridden, an * indicator appears (Opus 4.7*).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions