fix: skip plan workflow for simple Q&A in plan mode (#531)#631
Open
MrRealORG wants to merge 1 commit into
Open
fix: skip plan workflow for simple Q&A in plan mode (#531)#631MrRealORG wants to merge 1 commit into
MrRealORG wants to merge 1 commit into
Conversation
When in plan mode, even simple questions like 'what is X?' triggered the full 5-phase plan workflow: creating a plan file, launching explore agents, and asking to execute. This is unnecessary overhead for non-coding questions. Added a 'Simple questions' bypass instruction to the plan mode system-reminder that tells the agent to answer directly as text when the user's message doesn't require code changes or implementation planning. Fixes XiaomiMiMo#531
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When in plan mode, even simple questions like "what is X?" or "how does Y work?" triggered the full 5-phase plan workflow: creating a plan file, launching explore subagents, designing implementation, and asking the user whether to execute. This is unnecessary and annoying for non-coding questions.
Root Cause
The plan mode
<system-reminder>injected on the first user message unconditionally mandates the full 5-phase workflow with no escape hatch for simple Q&A.Fix
Added a "Simple questions" bypass instruction to the plan mode system-reminder. When the user's message is a simple question that doesn't require code changes, the agent is instructed to answer directly as text without creating a plan file, launching subagents, or calling plan_exit.
Before vs After
Before: Simple question in plan mode → creates plan file → launches explore agents → asks to execute
After: Simple question in plan mode → answers directly as text
Fixes #531