Home › Claude Code lesson 3: Plan mode, scripts

Claude Code lesson 3: Plan mode, scripts

Last checked

For bigger changes, plan mode makes Claude read and propose a plan with no edits until you approve. Once you trust a task, -p runs Claude Code from scripts and CI.

Step by step

  1. Start in plan mode with claude --permission-mode plan, or press Shift+Tab mid-session until the status bar shows “⏸ plan mode on”.
  2. Describe the change and read the proposed plan.
  3. Approve it (or edit it) before any file changes.
  4. For research-heavy questions, ask it to use a subagent so only the findings come back.
  5. In scripts, pipe text in and use -p, for example: git log --oneline -20 | claude -p "summarize these recent commits"

Try it: examples

Good to know

Sources (official pages, read Nov 8, 2026)

Written from Anthropic's official documentation and product pages; we don't run hands-on tests. Features and limits vary by plan and country.

Report an error on this page