Claude Code Plan Mode Lifecycle

Claude Code Plan Mode Lifecycle A lifecycle diagram generated by Archify. 01 / Plan Mode Phases 02 / Human Approval Gates 03 / Terminal Outcomes Spec Intake · read spec.md & repo · Plan Mode Phases · read-only 01 Spec Intake read spec.md & repo read-only Interview · clarify risks & options · Plan Mode Phases · interview 02 Interview clarify risks & options interview Plan Draft · write plan.md · Plan Mode Phases · gate 1 wait 03 Plan Draft write plan.md gate 1 wait Implementation · auto mode execution · Plan Mode Phases · agent diff 04 Implementation auto mode execution agent diff Verification · test proofs & evidence · Plan Mode Phases · gate 2 wait 05 Verification test proofs & evidence gate 2 wait Gate 1: Approve Plan · engineer signs off plan.md · Human Approval Gates · gate 1 Gate 1: Approve Plan engineer signs off plan.md gate 1 Gate 2: Accept Verify · review diff & proofs · Human Approval Gates · gate 2 Gate 2: Accept Verify review diff & proofs gate 2 Aborted · plan not approved · Terminal Outcomes · terminal Aborted plan not approved terminal Committed & PR · clean diff landed · Terminal Outcomes · terminal Committed & PR clean diff landed terminal Legend start active state waiting decision terminal success failure / exit

Two-Gate Protocol

  • • Gate 1: Duyệt plan.md và file changes trước khi cho phép AI sửa mã nguồn
  • • Gate 2: Nghiệm thu evidence xác thực trước khi merge PR

Autonomous Execution Between Gates

  • • AI hoạt động tự chủ trong giai đoạn Implementation (Auto mode)
  • • Không làm phiền con người bằng các vi tương tác không cần thiết