Claude CodeBasicClaude Code
Plan mode: have Claude Code explore before touching anything
If the code is unfamiliar or the change is delicate, leave Claude Code in plan mode and you avoid edits you did not ask for.
Claude Code first explores, then builds a plan, and only with your approval does it start writing. In plan mode it stays in the exploration phase: it does not edit files or run shell commands until you approve the plan. It suits repos you do not know or high-risk tasks. It does not suit a task that needs to write an output.
Example
Prompt: "Explore src/auth and propose a plan to migrate to the new token service. Do not edit anything until I approve."
Or as the default mode in .claude/settings.json:
{ "permissions": { "defaultMode": "plan" } }