The most difficult part of building software with agents is to get them to write what you actually want.
This is because, unless the problem you are trying to solve is very simple, you don't really know what you want.
Software factories are the latest incarnation of waterfall development. They are predicated on the illusion that, once you have fully specified your program (UML, anyone?), someone else can do the essentially mundane task of implementing it.
The reality of software development is that your specification moves with your understanding of the solution, which tends to move with your understanding of the problem. It is an iterative process.
For as long as the problem you are trying to solve is a human problem, it will require humans to be involved and guiding.
If the above is true, your best bet is to focus on the primitives that will let your setup adapt. Err on the side of making it cheap to take the wrong turn, make it easy to experiment.
We used to say "writing the code really isn't the time consuming part."
Now everyone can find that out for themselves