Yemen reached an agreement with Shiite rebels, who have been protesting for weeks in Sanaa, to end the country's latest political impasse, a source close to the presidency said Thursday.