I did write the spec first — data model, algorithm, etc. That may have helped the agents get traction.