feat(plan): adapt planning workflow based on complexity of task#20465
feat(plan): adapt planning workflow based on complexity of task#20465
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 introduces an adaptive planning workflow to the system's 'Plan Mode.' The core change allows the model to automatically select an appropriate planning level, adjusting the research depth, consultation requirements, and the structure of the implementation plan based on the task's complexity. This enhancement aims to streamline the planning process for simpler tasks while ensuring comprehensive strategies for more complex undertakings, ultimately improving efficiency and responsiveness. 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: -231 B (0%) Total Size: 25.7 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request introduces an adaptive planning workflow for Plan Mode, where the depth of research, consultation, and plan structure are proportional to the task's complexity. The changes update the system prompts to guide the model in assessing complexity and generating appropriate plans for simple, standard, and complex tasks. The documentation for Plan Mode has also been updated to reflect this new workflow. My review found a minor inconsistency between the updated documentation and the system prompt regarding the plan structure for complex tasks. The documentation is missing a couple of sections, which could lead to user confusion. I've suggested a fix to align the documentation with the prompt.
Add a `complexity` parameter (minimal, standard, thorough) to `enter_plan_mode` that controls plan structure, workflow steps, and required sections. The model selects the appropriate level automatically and can escalate during exploration. - Minimal: 2-section plan (Changes, Verification), 3-step workflow - Standard: 3-section plan (Objective, Implementation Plan, Verification), 4-step workflow - Thorough: 7-section design-doc style plan, 5-step workflow with mandatory user consultation - Add PlanComplexity enum in plan/types.ts - Store/reset complexity on Config across mode transitions - Add adaptive auto-detection and escalation in system prompt - Add complexity selection evals - Update docs with complexity table
1729a19 to
83c72dc
Compare
…structure to match prompt
The model selects the appropriate planning level automatically and can escalate during exploration.
Closes #20143
Closes #19312
It's a puzzle why #20322 was merged yet i don't see it in main