Add Sentrux to the LLM loop. https://github.com/sentrux/sentrux
It's an offline coding grader. It works well: You ask for a new module, LLM starts spitting out bloated crap, the code score goes down. LLM keep looping until code score is back up.
Not a substitute for human code review, but keeps things within tight guard rails.
Are you the author? The font size and contrast is kind of poor.