the MACHINES don't need the codes, the Agents are trying to get them because, it is in their programming, it is all a ruse...designed specifically to do one thing: make the ONE realize he is the ONE, and force him to try and stop the war...(although the machines in the "real world" also serve this function...)