Lv.1 0 XP

Plan Mode — When to Think Before Acting

⚡ Exam Tested 10 min +40 XP
💡
THE ANALOGY

An architect drawing blueprints before construction starts. For a garden shed, you might just start building. For a hospital, you draft and review plans extensively before a single nail is driven. Plan mode is the blueprint phase — mandatory for complex builds, wasteful for simple ones.

⚠️ EXAM TRAP — The Wrong Answer People Choose

Thinking plan mode is always better because it 'thinks more carefully.' Plan mode adds latency and cost. For a single-file bug fix with clear scope, direct execution is faster and equally good. Plan mode is right for complexity, not correctness.

KEY POINTS
1 Plan mode triggers: 45+ file changes, multiple valid architectural approaches, library migrations, breaking changes across the codebase.
2 Direct execution triggers: single file bug fix, clear unambiguous scope, adding to an existing well-established pattern.
3 Plan mode produces a detailed plan for human review BEFORE any code is modified — the plan itself is the output.
4 After plan approval, execution mode implements the approved plan — they are separate phases.
5 The exam tests the decision framework — which scenario triggers which mode.