Under the agreement , Labor leader Shimon Peres will become second-in-command to Prime Minister Ariel Sharon .