Specifically, what was Agent Smith's plan after defeating Neo? For example, when Neo meets the source and says to that Agent Smith will dominate the matrix, Agent Smith shot himself in the foot here. Wouldn't it have been wiser for Agent Smith to allow the machines to destroy zion rather than giving Neo a bargaining chip to offer freedom to Zion? I don't understand Agent Smith's rationale.
Why would he continue replicating himself? Why was he trying to control the matrix? Also, why would the machines possibly allow Zion to exist, and unbelievably accept Neo's offer, considering the fact that technically Neo didn't even keep his end of the bargain and lost, then needed the help of the machines to finally destroy Agent Smith. Why would the machines agree to this when they could have obviously carried it out themselves?