write-plan
Write Plan
The expensive failure in agent-assisted development is not bad code. It is confidently building the wrong thing for forty minutes. A plan costs a few minutes and makes the disagreement happen before the work instead of after it.
The reader of the plan is an AI coding agent in a fresh session told "build phase N of this plan" — not a human project manager. Every choice below follows from that.
When to plan
Plan when: more than two files change, the request names a feature rather than a change, there are multiple viable approaches, or the work touches saved data, networking, or anything with a migration cost.
Skip the plan when: the fix is localized, the user already specified the approach, or the whole task is smaller than the plan would be. Announcing a plan for a one-line change is theatre.