Agent
Agents Window plan mode
Plan Mode works the same way in both surfaces and differs only in its UI. This page covers the Agents Window first, then the Terminal UI. The Terminal UI page is Plan Mode.
Plan Mode creates detailed implementation plans before writing any code. Agent researches your codebase, asks clarifying questions, and generates a reviewable plan you can edit before building.
Press Shift+Tab from the chat input to rotate to Plan Mode. Grok Build also suggests it automatically when you type keywords that indicate complex tasks.
Plan mode in the Agents Window
How it works
- Agent asks clarifying questions to understand your requirements
- Researches your codebase to gather relevant context
- Creates a comprehensive implementation plan
- You review and edit the plan through chat or markdown files
- Click to build the plan when ready
Plans are saved by default in your home directory. Click "Save to workspace" to move it to your workspace for future reference, team sharing, and documentation.
When to use plan mode
Plan Mode works best for:
- Complex features with multiple valid approaches
- Tasks that touch many files or systems
- Unclear requirements where you need to explore before understanding scope
- Architectural decisions where you want to review the approach first
For quick changes or tasks you've done many times before, jumping straight to Agent mode is fine.
Starting over from a plan
Sometimes Agent builds something that doesn't match what you wanted. Instead of trying to fix it through follow-up prompts, go back to the plan.
Revert the changes, refine the plan to be more specific about what you need, and run it again. This is often faster than fixing an in-progress agent, and produces cleaner results.
For larger changes, spend extra time creating a precise, well-scoped plan. The hard part is often figuring out what change should be made. With the right instructions, delegate implementation to Agent.
Switching modes
- Use the mode picker dropdown in Agent
- Press Shift+Tab for quick switching
Plan mode in the Terminal UI
The Terminal UI enters Plan Mode the same way, with Shift+Tab, and the agent can also enter it on its own when a task looks ambiguous. The differences are in the interface:
- Enter it with the
/plancommand as well as the shortcut./plan <description>enters Plan Mode and starts a turn. - When planning finishes, the TUI opens an approval screen. Auto and always-approve do not skip that review.
- Reopen a saved plan with
/view-plan. - Only the session plan file may be edited until you approve the plan, so plans are not edited as free markdown the way they are in the Agents Window.
- Leave Plan Mode with Shift+Tab when idle, or with
qon the approval screen.
For the full Terminal UI behavior, including its caveats, see Plan Mode.
Related
Last updated: November 23, 2026