feat(cli): Add the '/model set' command, enabling users to choose their model and more granularly manage their quotas.
What would you like to be added?
Add the '/model set' command, to enable users to directly manage their model choice and allow them to better manage their model quota. Note, this does not disrupt current auto fallback from pro to flash.
Why is this needed?
Gives users more control of their model selection and enable better management of quotas
Additional context
Add the '/model set' command, gives users a list of available model for them to select ('set').
@momoadeli I'd like to add my strong support for this /model command proposal and expand on it with a few suggestions. The ability to dynamically control the model's behavior during a session would be a massive productivity and cost-management boost for users.
Here is a proposed structure for the command:
Proposed /model Sub-commands
-
/model list- Description: Displays a list of available models (e.g.,
gemini-2.5-pro,gemini-2.5-flash), with an indicator to show which model is currently active. - Example:
> /model list
- Description: Displays a list of available models (e.g.,
-
/model set <model_name>- Description: Switches the active AI model for the remainder of the session. This allows users to choose the best model for the current task.
- Example:
> /model set gemini-2.5-flash
-
/model temperature <value>- Description: Adjusts the model's temperature (creativity/randomness) on a scale from 0.0 to 2.0. Lower values are better for precise, deterministic tasks like code generation, while higher values are suited for brainstorming.
- Example:
> /model temperature 0.2
-
/model budget <value>- Description: Sets the "thinking budget" to guide how many reasoning tokens the model should use. This is crucial for balancing response quality with latency.
- A higher token count allows for more detailed reasoning on complex tasks.
- Setting the budget to
0disables thinking, prioritizing latency. - Setting the budget to
-1enables dynamic thinking, where the model adjusts the budget based on the request's complexity.
- Example:
> /model budget 8192or> /model budget -1
- Description: Sets the "thinking budget" to guide how many reasoning tokens the model should use. This is crucial for balancing response quality with latency.
Overall, this feature would provide users with granular, on-the-fly control, transforming the CLI into a much more versatile, powerful, and cost-effective development partner. I believe this would be a fantastic addition.
@samucodesh I was thinking along these lines. I'll let the cli itself suggest/vet the best way with as little 'steering' from me. I'll be surprised if it'll differ much. Note, the key is to conform with cli's current 'UI' and engagement patterns and not to stand out like a sore thumb.
Hi @momoadeli thank you for your contribution, but right now we are planning to add an intent based model router into gemini cli which means that we don't want to add a /model command. It is our belief that we can better serve our use cases with more intelligent routing between the available models to optimize for the user experience and the complexity of the query coming in. I'm going to close this PR as a result.
See #6064 for continued conversation.