For a change I want to think through first, I want a plan before any file is touched. You don’t have to press Shift+Tab until the status bar says plan mode.
Type /plan followed by what you want done:
/plan fix the login redirect bug when the session cookie has expired
The session goes into plan mode and starts on that task right away. In plan mode Claude reads files and proposes a plan but makes no edits until you approve it. The status bar shows that plan mode is on.
Without a description, /plan only switches the mode, and your next message is the task.
From the shell, the plan permission mode starts a whole session that way.
I like it for anything that touches more than a couple of files, or where I’m not sure about the approach yet. Reading a plan takes a minute, and rejecting it is cheaper than undoing edits.
The plan is only as good as the task you give it. A vague description gets a vague plan, so mention the symptom, where you suspect the cause and what must not change. Plan mode limits edits, but reading files still happens, so it is no protection for secrets in the repository. That is what deny rules in your permissions are for.
Further reading: Commands (Claude Code docs), Permission modes (Claude Code docs)