I find it's really nice to just have Claude run the compilers and linters when it's done making a change, as it often has some mistakes and will catch them at this step. It lets me step in for review after some trivially stupid thing is fixed up, rather than wasting my own time.
I'm starting to believe other people have a very different experience from me. I use AI to write Terraform. It "fixes" things I don't want "fixed", changes the functionality I wanted, disobeys restrictions I gave it, etc. About half of the time, my time is wasted.
Yeah, I haven't used it to write Terraform yet and am not surprised that it would trip on itself with it. However, I did do a major refactor to AWS CDK using TypeScript and Claude worked really well. I treat it as a pair programmer, have it work really atomically, and always question it's work. I find scoping things down really helps with the quality of it's output.