upvote
This is a skill issue. If you know best practices for software engineering, you can make your AI follow them. If you tell a model to reimplement Google Earth make no mistakes, yeah, it's not going to write high quality code. If you have a workflow for generating spec documents that you actually review before telling your agent to implement them, you'll get high quality, well specified code out.
reply