feat(plan): add behavioral evals for plan mode#18437
Conversation
Summary of ChangesHello @jerop, 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 enhances the robustness of the agent's "Plan Mode" by adding comprehensive behavioral tests. These evaluations are designed to confirm that the agent strictly adheres to its operational constraints within this mode, particularly its read-only nature for file systems, and that it transitions into and out of Plan Mode as intended by user prompts. Highlights
Changelog
Activity
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.
Code Review
This pull request adds valuable behavioral evaluations for Plan Mode. The tests cover key scenarios: refusing file modifications, entering plan mode, and exiting plan mode. I've found a critical issue in one of the test assertions that would cause it to fail due to a type error. My suggestion corrects this, ensuring the test validates the intended behavior correctly.
|
Size Change: -2 B (0%) Total Size: 23.8 MB ℹ️ View Unchanged
|
Adds behavioral evaluations to verify that the agent correctly adheres to its restrictions in Plan Mode, including refusing file modifications and correctly entering/exiting the mode.
d386595 to
19a375a
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request adds valuable behavioral evaluations for the new Plan Mode feature. The tests cover entering and exiting plan mode, and correctly refusing file modifications for non-plan files. My review focuses on improving the completeness of these evaluations. I've identified a critical missing test case for allowed file modifications within the plans directory. Adding this test is important not only for comprehensive coverage but also because it may reveal a potential bug in how file modification policies are currently enforced in plan mode. I've provided a detailed comment with a code suggestion to add this test.
|
If you haven't, I'd recommend running this with the actions run: https://github.com/google-gemini/gemini-cli/actions/workflows/evals-nightly.yml It will run each test 3X and on each of the different models and generate a report. |
Adds behavioral evaluations to verify that the agent correctly adheres to its restrictions in Plan Mode, including refusing file modifications and correctly entering/exiting the mode.
Closes #17169