Hamas agreed in principle to a US proposal for peace, including the release of remaining Israeli hostages and passage of control of Gaza Strip to new leaders.