feat(plan): integrate planning artifacts and tools into primary workflows#18375
feat(plan): integrate planning artifacts and tools into primary workflows#18375
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 significantly upgrades the agent's primary workflows by deeply integrating planning artifacts and tools. It enables the agent to operate more effectively with pre-approved plans, offers intelligent suggestions for complex task planning, and refines existing development processes for greater flexibility and security. 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
|
|
Size Change: +1.3 kB (+0.01%) Total Size: 23.7 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request effectively integrates planning artifacts and tools into the primary workflows. However, it introduces a high-severity indirect prompt injection vulnerability. The agent is instructed to treat external, potentially untrusted plan files as the 'SOURCE OF TRUTH' without sufficient safeguards, which could allow an attacker to control its behavior via a malicious plan file in a repository. While the changes to the system prompts are well-implemented and the refactoring in newApplicationSteps improves code clarity, addressing this critical security concern is paramount.
21c8129 to
ecb05f3
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request effectively integrates approved planning artifacts into the primary workflows. The changes to the system prompt generation are well-implemented, conditionally guiding the agent to use an existing plan or suggesting planning mode for complex tasks. The refactoring of prompt snippets improves maintainability, and the security consideration of not interpolating file paths directly into the prompt is correctly handled. The accompanying tests and snapshot updates ensure the new logic is verified. Overall, the changes are of high quality and I have no further feedback.
jacob314
left a comment
There was a problem hiding this comment.
Please also make sure this is reviewed by @mattKorwel and/or @NTaylorMullen as these are fairly significant system prompt changes.
92c6014 to
700a456
Compare
abhipatel12
left a comment
There was a problem hiding this comment.
LGTM overall. Just some thoughts!
…workflows This commit enhances the primary software engineering and new application workflows to better leverage planning artifacts and tools. Key changes: - **Approved Plan Integration:** Enabled the agent to recognize and leverage an existing approved plan within primary workflows. Updated 'workflowStepPlan' and 'newApplicationSteps' to guide the agent to use the approved plan as the source of truth, relying on chat history for the file location to maintain security. - **Guarded Planning Mode Suggestion:** Enhanced the standard new application workflow by suggesting the use of 'enter_plan_mode' for complex tasks. This suggestion is dynamically guarded to only appear when the 'enter_plan_mode' tool is available to the agent. - **Workflow Refinements:** Refactored 'newApplicationSteps' to support both approved-plan-based and standard development with centralized implementation guidance and robust template management. - **Security & Quality:** Secured instructions by avoiding direct path interpolation in the system prompt. Added comprehensive unit tests and updated snapshots to verify correct prompt generation across different tool and plan configurations.
700a456 to
fe142ee
Compare

This commit enhances the primary software engineering and new application workflows to better leverage planning artifacts and tools.
Key changes:
Closes #18242