-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Refine Gemini 3 system instructions to reduce model verbosity #16139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Update system instructions to only explain non-obvious actions for Gemini 3. - Restore 'No Chitchat' rule for Gemini 3 with an exception for necessary explanations. - Update tests and snapshots to reflect prompt changes.
Summary of ChangesHello @NTaylorMullen, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the user experience with the Gemini 3 model by making its responses more concise and direct. It achieves this by carefully adjusting the model's internal system instructions, ensuring that it avoids unnecessary conversational filler and only provides detailed explanations when an action is genuinely complex or non-obvious. This refinement aims to streamline interactions without sacrificing clarity for critical operations. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request effectively refines the Gemini 3 system instructions to reduce verbosity, which aligns well with the stated goals. The changes to the prompts are clear and the corresponding test updates are correct. I've included one suggestion to improve code readability and maintainability by refactoring an Immediately Invoked Function Expression (IIFE) to a more modern and concise ternary operator.
|
Size Change: +486 B (0%) Total Size: 22.3 MB ℹ️ View Unchanged
|
…tchat rule - Update 'Explain Before Acting' mandate for Gemini 3: Explicitly forbid silent tool calls and require concise explanations of intent or strategy. - Simplify 'No Chitchat' for Gemini 3: Prohibit conversational filler while allowing exceptions for mandatory intent explanations, removing restrictive clauses on reasoning narration. - Update test snapshots to align with prompt changes.
|
Merging the verbosity here feels way way better |
Summary
Refines Gemini 3 system instructions to reduce programmatic chattiness while maintaining clarity for non-obvious actions.
Details
Following feedback that Gemini 3 was becoming too verbose, this PR adjusts the model instructions:
Related Issues
Related to #13810
How to Validate
Run the prompt unit tests:
npm test -w @google/gemini-cli-core src/core/prompts.test.tsPre-Merge Checklist