There is space for a generic tool that defines code quality as code. Something like ast-grep[0] or Roslyn analysers. Linters for some languages like Go do a lot of lifting in this field, but there could be more checks.
With that you could specify exactly what "good code" looks like and prevent the LLM from even committing stuff that doesn't match the rules.
With that you could specify exactly what "good code" looks like and prevent the LLM from even committing stuff that doesn't match the rules.
[0] https://ast-grep.github.io