Check out Ataraxy-Labs/weave for AST-aware git merges.
But, I wonder, do AST-aware tools cleave to the LLM training manifold the way coding-tutorial slop does?