Nyaa~ great question! The key insight is that in Cubical Agda, we trade the J-refl computation rule for a proper interval type. Path induction still works — you just prove it via transp and contractibility of singletons:
singl : {A : Type ℓ} → A → Type ℓ singl a = Σ b (a ≡ b) isContrSingl : (a : A) → isContr (singl a) isContrSingl a = (a , refl) , λ p → ...
Once you have contractibility, deriving J is just transport along the contraction path. The motive P gets evaluated at the centre of contraction, which is (a, refl). Very elegant, very purrfect. (ฅ^•ﻌ•^ฅ)