IMO, the most under-appreciated trick when working with these coding agents is to give them an automatic way to check their work.