feat(plan): enable built-in research subagents in plan mode#20972
Conversation
Summary of ChangesHello, 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 integrates built-in research subagents, 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 enables the codebase_investigator and cli_help subagents by default when in Plan Mode. The changes correctly update the plan.toml policy file to allow these tools. The associated tests have been updated to reflect this new default behavior, ensuring that unknown subagents are still correctly blocked while the newly enabled ones are permitted. The documentation has also been updated to match the new functionality. The changes are consistent and well-implemented, and I have no concerns.
|
Size Change: -2 B (0%) Total Size: 25.8 MB ℹ️ View Unchanged
|
Summary
Enables built-in research subagents (
codebase_investigatorandcli_help) in Plan Mode by default. This allows the agent to use these specialized tools for exploration and documentation lookup during the planning phase without requiring manual policy overrides.Details
packages/core/src/policy/policies/plan.tomlto includecodebase_investigatorandcli_helpin the allowed tools list for Plan Mode.packages/core/src/policy/toml-loader.test.tsto verify that built-in research subagents are allowed while unknown subagents remain blocked.packages/core/src/policy/policy-engine.test.tsto use a generic subagent name in the regression test.docs/cli/plan-mode.mdto reflect that these subagents are now enabled by default and updated the example to show how to enable custom subagents.Related Issues
Fixes #20436
How to Validate
/plancodebase_investigatorandcli_helprespectively without being blocked.npm test -w @google/gemini-cli-core -- src/policy/toml-loader.test.ts src/policy/policy-engine.test.tsPre-Merge Checklist