Lesson 054: Phased Autonomous Execution Plans

Lesson 054: Phased Autonomous Execution Plans

The Lesson

Breaking large projects into numbered, independently shippable phases — each with explicit entry criteria, exit criteria, and a commit checkpoint — transforms ambitious multi-session work from a coordination problem into a queue of self-contained tasks. The plan file is both the work instruction and the progress tracker.

Context

Over 64 Claude Code sessions spanning one month, a developer completed 150 commits across five major projects: a Telegram RPG bot (20 phases), an image selection pipeline (11 phases), a certification quiz site (multi-file redesigns), and more. The consistent pattern: write a phased plan, execute sequentially with commits at each milestone, and track progress in the plan file itself. This pattern powered deliverables that would otherwise require careful coordination across many sessions.

What Happened

  1. Early sessions used ad-hoc instructions: "build X, then Y, then Z." This worked for small tasks but failed for multi-day projects. Context was lost between sessions, work was duplicated, and it was unclear what had been done vs. what remained.

  2. Adopted a structured plan format: numbered phases, each with a goal, dependencies, task rows (status, timestamps), and a summary block. The plan file lives in docs/ and is committed alongside the code.

  3. Each phase follows a strict cycle: mark rows as Started → do the work → run tests → mark as Completed → write Phase Summary → commit. The commit message references the phase number and scope.

  4. When a session ends mid-plan, the plan file itself records exactly where work stopped. The next session reads the plan, finds the first Open row, and continues. No verbal handoff needed — the artifact is the handoff.

  5. Over 150 commits, this pattern produced zero cases of "what was I working on?" confusion. Rollback was always possible to the last phase commit. Reviewers could trace the commit history against the plan phases 1:1.

  6. The pattern scaled from 3-phase plans (simple feature additions) to 20-phase plans (full RPG bot implementation) without modification. The overhead of writing the plan (15-30 minutes) was recovered many times over by eliminating coordination friction.

Key Insights

Applicability

This pattern applies to any multi-step implementation where:

Does NOT apply when:

Related Lessons