Introduce a /model command to be able to select between Gemini models
What would you like to be added?
A slash command named /model. On executing this the 2 models i.e. Gemini 2.5 Flash and Pro are listed and one can select them as per their choice dynamically.
Why is this needed?
Currently by default you get Gemini 2.5 pro and sometimes you don't pay attention and execute some lighter tasks which would have been nice to do in Flash. Doing this you unintentionally burn out your context for Pro and don't have it when you need it.
Additional context
I am partially aware that their are some ways to choose the model by maybe env variables or something but this is not dynamic at all and not good UX.
I would love to help implement this if it seems like a good idea.
Thanks for raising the issue @devpool007 👏
This definitely sounds like a valuable feature request.
We are definitely open to community contributions if you would like to take a pass at it 😄
Hi @jackwotherspoon glad that you liked this feature idea. I think I can start working on this and formulating an idea around it.
Also @abhipatel12 mentioned to me that there is refactor around slash commands in progress right now but I think I can start with the idea slowly and changes can be made later according to the refactor.
Thanks @devpool007! Yes we are looking at pausing adding new slash commands in the short-term while we let things settle.
I think this is essentially a duplicate of https://github.com/google-gemini/gemini-cli/issues/1505
So if you do work on a first draft of a PR let's attach it to that parent bug 👍
Hi @jackwotherspoon , thanks for letting me know! I see there is already a big PR #1694 for it.
Will it be ok if I try to work on this issue too and create a draft PR. I want to know what the best practice is when someone is already working on a big PR on the same issue but I would also like to formulate a PR to propose like my idea of the solution.
Will it be ok if I try to work on this issue too and create a draft PR. I want to know what the best practice is when someone is already working on a big PR on the same issue but I would also like to formulate a PR to propose like my idea of the solution.
@devpool007 If you have a differing idea than the already open PR then by all means go for it!
It may be worth starting a dialog with the other PR contributor first to see if you can both agree on the implementation 😄