The agent input has a mode picker — press Shift+Tab to rotate between Agent, Plan, and Ask, or use the dropdown / Ctrl+. menu. Choosing the right mode is the difference between a surgical change and an expensive wrong turn.
In Plan Mode, the agent doesn't write code. Instead it:
Plans are saved to your home directory by default, with a "Save to workspace" option to keep them in the repo. Once you approve the plan, the agent executes it step by step.
Ask Mode is read-only: the agent can search and read your codebase but cannot modify files or run state-changing commands. It's the safe mode for onboarding onto an unfamiliar codebase, architecture discussions, and code archaeology.
| Situation | Mode | Why |
|---|---|---|
| Small, well-defined change | Agent | Just do it — checkpoints have your back |
| Large feature or refactor | Plan | Align on approach before spending compute |
| "How does X work?" | Ask | Zero risk of accidental modifications |