Skip to content

feat(plan): update planning workflow to encourage multi-select with descriptions of options#20491

Merged
jerop merged 10 commits intomainfrom
adibakm/multi-select-ask-user
Feb 27, 2026
Merged

feat(plan): update planning workflow to encourage multi-select with descriptions of options#20491
jerop merged 10 commits intomainfrom
adibakm/multi-select-ask-user

Conversation

@Adib234
Copy link
Contributor

@Adib234 Adib234 commented Feb 26, 2026

Summary

Update the planning workflow and ask_user tool to favor multi-select options with descriptive context, improving user decision-making during implementation planning.

Details

  • Enhanced Planning Workflow: Updated the Consult step in the Plan mode instructions (within packages/core/src/prompts/snippets.ts) to explicitly guide the agent to use multi-select and provide detailed descriptions for each option when presenting implementation approaches via ask_user.
  • Improved Tool Description: Refined the description of the ask_user tool in the Gemini 3 model family set to prioritize multiple-choice options with detailed descriptions and multi-select capability.

Related Issues

Fixes #18920

How to Validate

Model should ask multi-select questions more often

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

@Adib234 Adib234 requested a review from a team as a code owner February 26, 2026 21:11
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @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 planning workflow by guiding it to offer more comprehensive and flexible interaction options to users. By promoting multi-select questions with detailed descriptions, the changes aim to enhance user understanding and decision-making during the planning phase, particularly for agents operating in 'Plan Mode'.

Highlights

  • Enhanced Planning Workflow: The planning workflow has been updated to encourage the use of multi-select options with detailed descriptions when the agent consults the user, improving clarity and flexibility.
  • Updated System Prompt: The system prompt for preview models in 'Plan Mode' now includes explicit instructions for leveraging multi-select and detailed descriptions with the ask_user tool.
  • Ask User Tool Description: The ask_user tool's description has been modified to emphasize the preference for providing multiple-choice options with detailed descriptions and enabling multi-select.
  • New Test Coverage: A new test case was added to ensure that the modern PLAN mode instructions are correctly included in the system prompt for preview models.
Changelog
  • packages/core/src/core/snapshots/prompts.test.ts.snap
    • Updated the snapshot to reflect the new PLAN mode instructions for preview models.
  • packages/core/src/core/prompts.test.ts
    • Added a new test case to verify that modern PLAN mode instructions are included in the system prompt for preview models.
  • packages/core/src/prompts/snippets.ts
    • Modified the 'Consult' step in the planning workflow to explicitly encourage multi-select with detailed descriptions for options presented to the user.
  • packages/core/src/tools/ask-user.test.ts
    • Updated the test for the ask_user tool's metadata to include an assertion for its enhanced description.
  • packages/core/src/tools/definitions/coreTools.ts
    • Modified the description of the ask_user tool to recommend providing multiple-choice options with detailed descriptions and enabling multi-select.
Activity
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 updates the planning workflow and the ask_user tool to encourage the model to propose multi-select questions with detailed descriptions. The changes modify the system prompt for "Plan Mode" and update the description of the ask_user tool itself. The modifications are well-supported by new tests and snapshot updates, ensuring the prompt generation behaves as expected. The implementation is clear, focused, and correctly addresses the intended feature enhancement. I have not found any issues with the changes.

@github-actions
Copy link

github-actions bot commented Feb 26, 2026

Size Change: +312 B (0%)

Total Size: 25.7 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 25.2 MB +312 B (0%)
./bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js 221 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js 227 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js 11.5 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js 132 B 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B
./bundle/sandbox-macos-strict-open.sb 4.82 kB 0 B
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB 0 B

compressed-size-action

Copy link
Contributor

@jerop jerop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's wait to merge this after #20465 is merged, maybe you can rebase on that for now?

@gemini-cli gemini-cli bot added area/core Issues related to User Interface, OS Support, Core Functionality area/agent Issues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Quality 🔒 maintainer only ⛔ Do not contribute. Internal roadmap item. labels Feb 26, 2026
@Adib234 Adib234 changed the base branch from main to feat/complexity-adaptive-plan-mode February 26, 2026 21:52
Base automatically changed from feat/complexity-adaptive-plan-mode to main February 26, 2026 23:16
@Adib234 Adib234 force-pushed the adibakm/multi-select-ask-user branch from 76bebe8 to f712d6d Compare February 27, 2026 14:17
@jerop jerop enabled auto-merge February 27, 2026 14:21
@jerop jerop added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@jerop jerop added this pull request to the merge queue Feb 27, 2026
Merged via the queue into main with commit 25ade7b Feb 27, 2026
27 checks passed
@jerop jerop deleted the adibakm/multi-select-ask-user branch February 27, 2026 15:53
@jerop jerop added the release/patch-to-preview PR needs to be patch to preview release label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/agent Issues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Quality area/core Issues related to User Interface, OS Support, Core Functionality 🔒 maintainer only ⛔ Do not contribute. Internal roadmap item. release/patch-to-preview PR needs to be patch to preview release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Agent] Update planning workflow to encourage multi-select with descriptions of options

2 participants