I also share this experience/concern.
Yet, it could be as easy as having a specialised model which is a code quality checker, refactor-er or QA tester.
Also, claimify (MS research) could be interesting for isolating claims about what the code should do, and then following up on writing granular unit test coverage.