Structure AI-assisted TDD with a plan-apply-unify loop for clearer tests, tighter context, and steady code progress