feat(plan): support project exploration without planning when in plan mode - #18992
Conversation
Summary of ChangesHello @Adib234, 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 refines the agent's 'Plan Mode' by introducing a clear differentiation between informational inquiries and actionable directives. This enhancement allows the agent to respond directly to read-only requests without engaging in a formal planning process, thereby streamlining interactions and improving efficiency for non-modifying tasks, while ensuring that code-changing operations still adhere to rigorous planning and approval protocols. 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 introduces an excellent optimization to Plan Mode by distinguishing between 'Inquiries' and 'Directives'. The changes allow the agent to handle informational requests more efficiently by answering them directly with read-only tools, without needing to generate a formal plan. The prompt updates in snippets.ts and snippets.legacy.ts are clear and consistent, and the corresponding tests and snapshots have been correctly updated. The implementation is solid and aligns perfectly with the goals outlined in the description.
|
Size Change: +479 B (0%) Total Size: 24.4 MB ℹ️ View Unchanged
|
…ying the rule declared for inquiries and directives in system prompt
Summary
This PR updates the Plan Mode instructions to distinguish between Inquiries and Directives. It enables the agent to answer informational requests (Inquiries) directly using read-only tools without requiring a formal implementation plan or approval. This improves efficiency by reducing unnecessary overhead for non-modifying tasks while maintaining strict planning workflows for code-changing actions (Directives).
Details
Related Issues
Fixes #18913
How to Validate
In this branch the CLI should be able to tell the difference between a directive and an inquiry. For an inquiry it should never start creating a plan or call
ExitPlanModetool or a directive it should begin creating the plan or clarify.Pre-Merge Checklist