Isn't coding the act of specificying the work to a processor? And AI agents are supposed to bridge the gap with intelligence from less specificed to more specified or possibly even more intelligent and alternate implementations?
An agent can help you create the specification, but it's up to you to know whether it's correctly testing that you got the result you wanted.