Skip to content

fix: skip plan workflow for simple Q&A in plan mode (#531)#631

Open
MrRealORG wants to merge 1 commit into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-202606150300-plan-mode-qa
Open

fix: skip plan workflow for simple Q&A in plan mode (#531)#631
MrRealORG wants to merge 1 commit into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-202606150300-plan-mode-qa

Conversation

@MrRealORG

Copy link
Copy Markdown

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plan模式即使是一个简答的问答,也生成plan文件并询问是否需要执行

1 participant