I share the same experience that the quality of code output from agents is highly dependent on their ability to simply follow high quality abstractions already laid out. Putting in a lot of work there pays off dividends later.
By this I mean concrete code design decisions, not just deciding what functional requirements need to be met.