Humans as batteries was stupid because it was meant to be,there are no humans only programs representing humans.
Agent Smith was the One that could have destroyed the AI.
The Oracle created Smith, not to destroy the AI(Neo) but to help Neo reboot after is successfully upgraded its latest emotion.Love
Smith was unaware of the reboot process till the end.