Repository navigation
Conversation
added 2 commits
November 24, 2025 20:12
- Add path validation to prevent errors from invalid characters - Implement automatic cleanup on server startup - Add spawn validation to prevent cd errors - Create manual cleanup API endpoint - Filter invalid projects during getProjects calls
- Add 'auto' model option to UI settings (Smart Routing) - Update default model from gemini-2.5-flash to auto across all components - Auto mode dynamically selects Flash or Pro based on task complexity - Update ToolsSettings.jsx to include auto option with description - Update ChatInterface.jsx to use auto as default - Update server/gemini-cli.js to pass auto model to Gemini CLI The auto mode leverages Gemini CLI v0.11.2+'s intelligent routing feature that analyzes task complexity and automatically selects the optimal model (Flash for simple tasks, Pro for complex ones). References: - Gemini CLI Discussion #12375 - https://medium.com/google-cloud/practical-gemini-cli-intelligent-model-router-e01e543ec438
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for Gemini CLI's intelligent model routing feature, allowing users to select "Auto" mode which dynamically chooses between Flash and Pro models based on task complexity.
Changes
gemini-2.5-flashtoautoacross all componentsChatInterface.jsxandToolsSettings.jsxto support auto modeserver/gemini-cli.jsto pass--model autoto Gemini CLIFeatures
Model Options
Users can now choose from:
How It Works
The Auto mode leverages Gemini CLI v0.11.2+'s built-in intelligent routing:
gemini-2.5-flash(faster, cheaper)gemini-2.5-pro(more capable)Benefits
Files Modified
src/components/ToolsSettings.jsx- Added auto option to model dropdownsrc/components/ChatInterface.jsx- Updated default model to autoserver/gemini-cli.js- Pass auto model flag to CLITesting
--model auto) works correctlyScreenshots
Settings - Model Selection
The new Auto mode appears as the first and default option in Settings > Tools > Gemini Model:
References
Related PRs