If a human spent the upfront effort to create and refine the right abstractions, the code would almost always be easier to reason about, test, and extend for agents. I pretty much never see AI doing this on its own—things like proposing to split the 1400 line class into 5 classes, make major changes to the data model, etc. It will most often just make the existing code a little bit worse to answer your prompts and move along.
So I think that the most valuable time spent when working with agents is to ensure that good abstractions are being created, and often this can involve doing this part by hand and asking it to fill out the skeleton. Then you end up with a better codebase that is easier for both humans and agents to work in.
By this I mean concrete code design decisions, not just deciding what functional requirements need to be met.