Plan mode

Look around and propose a plan first; change nothing until it's approved.

What it is
A read-only phase: the agent explores, then writes a plan (files to touch, approach, tests). A person approves or edits it before any edit happens.
When to use it
  • Anything bigger than a small fix
  • Unfamiliar code
When to skip it
  • Typos and one-liners: approval costs more than it saves
Why (the trade-off)
Catching a wrong approach in a five-line plan is much cheaper than in a 400-line diff.
Where it sits
Control layer, before the edit loop.
What it needs first
What can be added to it
  • pairs withDiff reviewthe plan sets what the diff should contain
Effect of adding it
  • cost —
  • latency ↑
  • reliability ↑
  • safety ↑
Risks it handles
  • Rewrites far more than asked · full
  • Fixes the wrong thing · partial
Learn first (AI Engineering)